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); }
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); }
public override void UpdateXepLoaiNhom(XepLoaiNhomInfo _XepLoaiNhomInfo) { SqlHelper.ExecuteNonQuery(this.ConnectionString, "XepLoaiNhom_Update", _XepLoaiNhomInfo.ID, _XepLoaiNhomInfo.IDNhomNhanVien, _XepLoaiNhomInfo.IDXepLoai, _XepLoaiNhomInfo.Min, _XepLoaiNhomInfo.Max); }
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)); }
public abstract void UpdateXepLoaiNhom(XepLoaiNhomInfo _XepLoaiNhomInfo);
public abstract int InsertXepLoaiNhom(XepLoaiNhomInfo _XepLoaiNhomInfo);