Ejemplo n.º 1
0
        public void SaveWeChatCloudOperInfoData()
        {
            OperQueryParaModel model        = new OperQueryParaModel();
            dynamic            operinfolist = WeiXinQuery.GetOperInfo(model);
            PostObject         obj          = new PostObject();

            obj.Data = JsonConvert.SerializeObject(operinfolist);;
            WebApiVisitor.PostAccessApi(webFrontEndUrl + "api/FrontEndMachine/SaveWeChatCloudOperInfoData", obj);
        }
Ejemplo n.º 2
0
        public void SaveWeChatCloudStatisticsData(OperQueryParaModel para)
        {
            List <PostObject>  list  = new List <PostObject>();  //汇总list
            OperQueryParaModel model = new OperQueryParaModel(); //工作量

            if (para.StartDate == "")
            {
                model.StartDate = WeiXinQuery.GetSysDate().ToString();
            }
            else
            {
                model.StartDate = para.StartDate.ToString();
            }
            model.TimeType = "month";
            dynamic listWorkTime = WeiXinQuery.QueryOperEChartReportForDirectionIndex(model);  //获取图标

            list.Add(GetPostObject("工作量明细", JsonConvert.SerializeObject(listWorkTime), model.StartDate));
            dynamic listWorkTimeDetail = WeiXinQuery.GetWeiXinOperInfo(model);//获取图标明细

            list.Add(GetPostObject("工作量", JsonConvert.SerializeObject(listWorkTimeDetail), model.StartDate));

            model.QueryType = "ASA";
            dynamic listASA = WeiXinQuery.QueryRightEChartReportForDirectionIndex(model);//获取ASA

            list.Add(GetPostObject("ASA分级", JsonConvert.SerializeObject(listASA), model.StartDate));
            model.QueryType = "AnesMethod";
            dynamic listMethod = WeiXinQuery.QueryRightEChartReportForDirectionIndex(model);//获取麻醉方式

            list.Add(GetPostObject("麻醉方式", JsonConvert.SerializeObject(listMethod), model.StartDate));

            try
            {
                WebApiVisitor.PostAccessApi(webFrontEndUrl + "api/FrontEndMachine/SaveWeChatCloudStatisticsData", list);
            }
            catch (Exception ex)
            {
            }
        }
Ejemplo n.º 3
0
        public void SaveWeChatCloudQuanlityData(OperQueryParaModel para)
        {
            List <MED_QC_REPORT_IND> list = WeiXinQuery.GetQuanlityControlReportInd();

            //获取服务器时间
            DateTime dt = DateTime.Now;

            if (para.StartDate == "")
            {
                dt = WeiXinQuery.GetSysDate().AddMonths(-1);
            }
            else
            {
                dt = Convert.ToDateTime(para.StartDate);
            }
            //DateTime dt = DateTime.Now.AddMonths(-3); //WeiXinQuery.GetSysDate().AddMonths(-1);

            MED_QC_REPORT_IND find = list.Find(t => t.REPORT_MONTH == (dt.ToString("yyyyMM")));

            if (find != null)
            {
                if (!string.IsNullOrEmpty(find.REPORT_NAME))
                {
                    IList <MED_QC_REPORT_LIST> reportList = WeiXinQuery.GetQuanlityControlReportBakItemList(find.REPORT_NAME);

                    find.list = reportList;
                    PostObject obj = new PostObject();
                    obj.Data        = JsonConvert.SerializeObject(find);
                    obj.ReportMonth = dt.ToString();
                    try
                    {
                        WebApiVisitor.PostAccessApi(webFrontEndUrl + "api/FrontEndMachine/SaveWeChatCloudQuanlityData", obj);
                    }
                    catch (Exception ex)
                    { }
                }
            }
        }