private void Insert() { if (_trahanginfo == null) { _trahanginfo = new DMLyDoTraHangInfo(); _trahanginfo.MaLyDo = View.Ma; _trahanginfo.Ten = View.Ten; _trahanginfo.GhiChu = View.GhiChu; _trahanginfo.SuDung = View.SuDung; _trahanginfo.IdLyDoTH = DmLyDoTraHangDAO.Instance.Insert(_trahanginfo); ((List <DMLyDoTraHangInfo>)DSLyDoTraHangView.Instance.DataSource).Add(_trahanginfo); DSLyDoTraHangView.Instance.RefreshDataSource(); } }
private void GetData() { _trahanginfo = View.lydotrahanginfo; }
internal List <DMLyDoTraHangInfo> Search(DMLyDoTraHangInfo dmLyDoTraHangInfo) { return(GetListCommand <DMLyDoTraHangInfo>(Declare.StoreProcedureNamespace.spLyDoTraHangSearch, dmLyDoTraHangInfo.MaLyDo, dmLyDoTraHangInfo.Ten)); }
public bool Exist(DMLyDoTraHangInfo dmLyDoTraHangInfo) { ExecuteCommand(Declare.StoreProcedureNamespace.spLyDoTraHangExist, dmLyDoTraHangInfo.IdLyDoTH, dmLyDoTraHangInfo.MaLyDo); return(Convert.ToInt32(Parameters["p_Count"].Value) == 1); }
internal void Delete(DMLyDoTraHangInfo dmLyDoTraHangInfo) { ExecuteCommand(Declare.StoreProcedureNamespace.spLyDoTraHangDelete, dmLyDoTraHangInfo.IdLyDoTH); }
internal int Insert(DMLyDoTraHangInfo dmLyDoTraHangInfo) { ExecuteCommand(Declare.StoreProcedureNamespace.spLyDoTraHangInsert, ParseToParams(dmLyDoTraHangInfo)); return(Convert.ToInt32(Parameters["p_IdLyDoTH"].Value.ToString())); }
internal void Update(DMLyDoTraHangInfo dmLyDoTraHangInfo) { ExecuteCommand(Declare.StoreProcedureNamespace.spLyDoTraHangUpdate, ParseToParams(dmLyDoTraHangInfo)); }