private void IntitalData() { SysUserPrinter objSysUserPrinter = SysUserPrinter.FetchByID(globalVariables.UserName); if (objSysUserPrinter != null) { txtQuantity.Value = Utility.Int32Dbnull(objSysUserPrinter.PagerCopy, 1); txtLapBangKe.Text = objSysUserPrinter.CreatedBy; txtGiamdinhbaohiem.Text = objSysUserPrinter.InsuranceBy; txtDaidienkhamchuabenh.Text = objSysUserPrinter.HospitalBy; txtKetoan.Text = objSysUserPrinter.InsuranceBy; cboListPrint.SelectedIndex = Utility.GetSelectedIndex(cboListPrint, objSysUserPrinter.PrinterName); } }
public void Insert(string SysUserName,int? PagerCopy,string PrinterName,string AccountName,string CreatedBy,string InsuranceBy,string HospitalBy) { SysUserPrinter item = new SysUserPrinter(); item.SysUserName = SysUserName; item.PagerCopy = PagerCopy; item.PrinterName = PrinterName; item.AccountName = AccountName; item.CreatedBy = CreatedBy; item.InsuranceBy = InsuranceBy; item.HospitalBy = HospitalBy; item.Save(UserName); }