protected void GridView_BacLuongCaoNhat_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
        {
            this.bacluongInfo = objSalary.GetBacLuongCaoNhat_ThuocNhomTheoThoiDiem(Convert.ToInt32(e.Keys[0].ToString()));
            this.objSalary.DeleteBacLuongCaoNhat(bacluongInfo);
            int idNhomChuaBac = 0;

            if (hiddenPopup_IdNhomChuaBac.Value.Trim() != "")
            {
                idNhomChuaBac = Convert.ToInt32(hiddenPopup_IdNhomChuaBac.Value);
            }
            GridView_BacLuongCaoNhat.DataSource = objSalary.GetBacLuongCaoNhat_IdNhomLuong(idNhomChuaBac);
            GridView_BacLuongCaoNhat.DataBind();
            GridView_BacLuongCaoNhat.CancelEdit();
            e.Cancel = true;
        }
        protected void GridView_BacLuongCaoNhat_RowUpdating(object sender, DevExpress.Web.Data.ASPxDataUpdatingEventArgs e)
        {
            ASPxTextBox  txtPopup_BacLuongCaoNhat = GridView_BacLuongCaoNhat.FindEditFormTemplateControl("txtPopup_BacLuongCaoNhat") as ASPxTextBox;
            ASPxDateEdit datePopup_DateEffectted  = GridView_BacLuongCaoNhat.FindEditFormTemplateControl("datePopup_DateEffectted") as ASPxDateEdit;

            this.bacluongInfo = objSalary.GetBacLuongCaoNhat_ThuocNhomTheoThoiDiem(Convert.ToInt32(e.Keys[0].ToString()));
            this.bacluongInfo.bacLuongTheoNhom = txtPopup_BacLuongCaoNhat.Text.Trim();
            this.bacluongInfo.thoiDiem         = datePopup_DateEffectted.Value != null ? datePopup_DateEffectted.Date : Convert.ToDateTime("01/01/1900");
            objSalary.UpdateBacLuongCaoNhat(bacluongInfo);
            int idNhomChuaBac = 0;

            if (hiddenPopup_IdNhomChuaBac.Value.Trim() != "")
            {
                idNhomChuaBac = Convert.ToInt32(hiddenPopup_IdNhomChuaBac.Value);
            }
            GridView_BacLuongCaoNhat.DataSource = objSalary.GetBacLuongCaoNhat_IdNhomLuong(idNhomChuaBac);
            GridView_BacLuongCaoNhat.DataBind();
            GridView_BacLuongCaoNhat.CancelEdit();
            e.Cancel = true;
        }
Example #3
0
 public abstract void DeleteBacLuongCaoNhat(BacLuongTheoNhomInfo objBacLuong);
Example #4
0
 // phan bac luong thuoc nhom luong
 public abstract void AddBacLuongCaoNhat(BacLuongTheoNhomInfo objBacLuong);
Example #5
0
 // phần bac luong cao nhat thuoc nhom luong
 public override void AddBacLuongCaoNhat(BacLuongTheoNhomInfo objbacluong)
 {
     SqlHelper.ExecuteNonQuery(ConnectionString, GetFullyQualifiedName("HRM_BacLuongCaoNhat_ThuocNhom"), objbacluong.id, objbacluong.idNhomLuong, objbacluong.kieuLuong, objbacluong.bacLuongTheoNhom, objbacluong.thoiDiem, 0);
 }
 public void DeleteBacLuongCaoNhat(BacLuongTheoNhomInfo objbacluong)
 {
     DataProvider.Instance().DeleteBacLuongCaoNhat(objbacluong);
 }