Пример #1
0
 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);
 }
Пример #2
0
 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);
     }
 }
Пример #3
0
        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);
            }
        }