public void GetPraise(IGetReport getReport) { var praises = _Schemas.Praises; praises.Entity.id = getReport.PraiseId; getReport.Details = praises.Select.Entity; }
public void saveInvoke(IGetReport igp, string idCardNo, string no) { Thread.Sleep(300); Action <IGetReport, String, String> tt = new Action <IGetReport, String, String>(SaveTo); this.Dispatcher.BeginInvoke(tt, igp, idCardNo, no); }
public void saveInvoke(IGetReport igp, string idCardNo, string no, int sortNo) { Thread.Sleep(300); Action <IGetReport, String, String, int> tt = new Action <IGetReport, String, String, int>(SaveTo); IsHaveReport = true; this.Dispatcher.BeginInvoke(tt, igp, idCardNo, no, sortNo); }
public ValidationResult ValidatePraiseId(IGetReport getReport) { var praises = _Schemas.Praises; praises.Entity.id = getReport.PraiseId; if (praises.Count == 0) { return(TfValidationResult.Compose( "DataNotFound", nameof(getReport.PraiseId))); } return(null); }
public void saveInvoke(IGetReport igp, string idCardNo, string no) { try { Thread.Sleep(300); Action <IGetReport, String, String> tt = new Action <IGetReport, String, String>(SaveTo); IsHaveReport = true; this.Dispatcher.BeginInvoke(tt, igp, idCardNo, no); } catch (Exception ex) { throw ex; } }
public void SaveTo(IGetReport igp, string idCardNo, string no, int sortNo) { igp.BaseModel = new RecordsBaseInfoBLL().GetModel(idCardNo); igp.CardID = idCardNo; if (igp.hasData()) { this.setMsg("正在处理:" + igp.PrintName); DrawItems.SaveReport(Path + no + sortNo.ToString() + igp.PrintName.Replace(".xps", "") + idCardNo + ".xps", igp.getReport()); } if (frmShowSave.count < 50) { this.setProcess(frmShowSave.count); frmShowSave.count += 2; } }
public void SaveTo(IGetReport igp, string idCardNo) { igp.BaseModel = new RecordsBaseInfoBLL().GetModel(idCardNo); igp.CardID = idCardNo; //if (igp.hasData()) //{ setMsg("正在处理:" + igp.PrintName); DrawItems.SaveReport(Path + igp.PrintName.Replace(".xps", "") + idCardNo + ".xps", igp.getReport()); //} if (count < 50) { setProcess(count); count = count + 2; } }
public void SaveTo(IGetReport igp, string idCardNo, string no) { if (igp != null) { igp.BaseModel = new RecordsBaseInfoBLL().GetModel(idCardNo); igp.CardID = idCardNo; if (igp.hasData()) { IsHaveReport = true; setMsg("正在处理:" + igp.PrintName); no = Convert.ToInt32(no).ToString("000000"); DrawItems.SaveReport("printtemp\\" + no + igp.PrintName.Replace(".xps", "") + idCardNo + ".xps", igp.getReport()); } } if (count < 50) { setProcess(count); count = count + 2; } }
public ReportsController(IGetReport getReport, IPostReport postReport) { _getReport = getReport; _postReport = postReport; }