Exemplo n.º 1
0
        public void GetPraise(IGetReport getReport)
        {
            var praises = _Schemas.Praises;

            praises.Entity.id = getReport.PraiseId;
            getReport.Details = praises.Select.Entity;
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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;
            }
        }
Exemplo n.º 6
0
        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;
            }
        }
Exemplo n.º 7
0
        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;
            }
        }
Exemplo n.º 8
0
        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;
 }