Esempio n. 1
0
        protected void btnThemMoi_Click(object sender, EventArgs e)
        {
            XepLoaiNhomInfo info = new XepLoaiNhomInfo();

            info.IDNhomNhanVien = ConvertUtility.ToInt32(dropNhom.SelectedValue);
            info.IDXepLoai = ConvertUtility.ToInt32(dropXepLoai.SelectedValue);
            info.Min = ConvertUtility.ToInt32(txtMin.Text);
            info.Max = ConvertUtility.ToInt32(txtMax.Text);

            XepLoaiNhomController.Insert(info);
        }
Esempio n. 2
0
        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            int id = ConvertUtility.ToInt32(Request.QueryString["id"]);

            XepLoaiNhomInfo info = new XepLoaiNhomInfo();

            info.ID = id;
            info.IDNhomNhanVien = ConvertUtility.ToInt32(dropNhom.SelectedValue);
            info.IDXepLoai = ConvertUtility.ToInt32(dropXepLoai.SelectedValue);
            info.Min = ConvertUtility.ToInt32(txtMin.Text);
            info.Max = ConvertUtility.ToInt32(txtMax.Text);

            XepLoaiNhomController.Update(info);
        }
Esempio n. 3
0
 public override void UpdateXepLoaiNhom(XepLoaiNhomInfo _XepLoaiNhomInfo)
 {
     SqlHelper.ExecuteNonQuery(this.ConnectionString, "XepLoaiNhom_Update", _XepLoaiNhomInfo.ID, _XepLoaiNhomInfo.IDNhomNhanVien, _XepLoaiNhomInfo.IDXepLoai, _XepLoaiNhomInfo.Min, _XepLoaiNhomInfo.Max);
 }
Esempio n. 4
0
 public override int InsertXepLoaiNhom(XepLoaiNhomInfo _XepLoaiNhomInfo)
 {
     return (int)SqlHelper.ExecuteScalar(this.ConnectionString, "XepLoaiNhom_Insert", _XepLoaiNhomInfo.IDNhomNhanVien, _XepLoaiNhomInfo.IDXepLoai, _XepLoaiNhomInfo.Min, _XepLoaiNhomInfo.Max);
 }
 public static void Update(XepLoaiNhomInfo _NhomInfo)
 {
     DataAccessProvider.Instance().UpdateXepLoaiNhom(_NhomInfo);
 }
 public static int Insert(XepLoaiNhomInfo _NhomInfo)
 {
     return(DataAccessProvider.Instance().InsertXepLoaiNhom(_NhomInfo));
 }
Esempio n. 7
0
 public abstract void UpdateXepLoaiNhom(XepLoaiNhomInfo _XepLoaiNhomInfo);
Esempio n. 8
0
 public abstract int InsertXepLoaiNhom(XepLoaiNhomInfo _XepLoaiNhomInfo);