private void AddReport() { HIS.Model.HIS_Report Erpt = new HIS.Model.HIS_Report(); Erpt.ReportName = this.tb_RptName.Text.Trim(); Erpt.ReportPath = this.tb_rptPath.Text.Trim(); Erpt.BuildEmpCode = UserID; Erpt.BuildEmpName = UserName; Erpt.BuildDateTime = DateTime.Now; HisReport.AddReport(Erpt); }
public static void UpdateReport(HIS.Model.HIS_Report model) { try { BindEntity <HIS.Model.HIS_Report> .CreateInstanceDAL(oleDb).Update(model); } catch (System.Exception e) { throw new Exception(e.Message); } }
private void UpdateReport() { try { HIS.Model.HIS_Report Erpt = new HIS.Model.HIS_Report(); Erpt.ReportID = RptID; Erpt.ReportName = this.tb_RptName.Text.Trim(); Erpt.ReportPath = this.tb_rptPath.Text.Trim(); Erpt.BuildEmpCode = UserID; Erpt.BuildEmpName = UserName; Erpt.BuildDateTime = DateTime.Now; HisReport.UpdateReport(Erpt); } catch (System.Exception e) { throw new Exception(e.Message); } }