BKI_DichVuMatDat.US.US_RPT_CHOT_BANG_LUONG.LockBangLuongThang C# (CSharp) Method

LockBangLuongThang() public method

public LockBangLuongThang ( decimal ip_dc_thang, decimal ip_dc_nam, string ip_str_nguoi_chot ) : void
ip_dc_thang decimal
ip_dc_nam decimal
ip_str_nguoi_chot string
return void
        public void LockBangLuongThang(decimal ip_dc_thang, decimal ip_dc_nam, string ip_str_nguoi_chot)
        {
            CStoredProc v_pr = new CStoredProc("pr_TL_bang_luong_LOCK");
            v_pr.addDecimalInputParam("@ip_dc_thang", ip_dc_thang);
            v_pr.addDecimalInputParam("@ip_dc_nam", ip_dc_nam);
            v_pr.addNVarcharInputParam("@ip_str_nguoi_chot", ip_str_nguoi_chot);

            v_pr.ExecuteCommand(this);
        }

Usage Example

 public void ChotBangLuongThang(decimal ip_dc_thang, decimal ip_dc_nam)
 {
     //var v_dlg = XtraMessageBox.Show("Bạn có muốn chốt các dữ liệu lương tháng này?", "THÔNG BÁO", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
     //if(v_dlg == DialogResult.No)
     //{
     //    //XtraMessageBox.Show("Bạn đã hủy thao tác!", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Information);
     //    return;
     //}
     US_RPT_CHOT_BANG_LUONG v_us_rpt_chot_bang_luong = new US_RPT_CHOT_BANG_LUONG();
     if(v_us_rpt_chot_bang_luong.IsLockBangLuong(ip_dc_thang, ip_dc_nam))
     {
         XtraMessageBox.Show("Bảng lương đã được chốt!", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     v_us_rpt_chot_bang_luong.LockBangLuongThang(ip_dc_thang, ip_dc_nam, CAppContext_201.getCurrentUserName());
     XtraMessageBox.Show("Đã chốt bảng lương tháng thành công! ", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Information);
 }
US_RPT_CHOT_BANG_LUONG