Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo n.º 5
0
 public static void Update(XepLoaiNhomInfo _NhomInfo)
 {
     DataAccessProvider.Instance().UpdateXepLoaiNhom(_NhomInfo);
 }
Ejemplo n.º 6
0
 public static int Insert(XepLoaiNhomInfo _NhomInfo)
 {
     return(DataAccessProvider.Instance().InsertXepLoaiNhom(_NhomInfo));
 }
Ejemplo n.º 7
0
 public abstract void UpdateXepLoaiNhom(XepLoaiNhomInfo _XepLoaiNhomInfo);
Ejemplo n.º 8
0
 public abstract int InsertXepLoaiNhom(XepLoaiNhomInfo _XepLoaiNhomInfo);