Exemplo n.º 1
0
 /// <summary>
 /// 有害生物页面-三维
 /// </summary>
 /// <returns></returns>
 public ActionResult PEST_3D()
 {
     ViewBag.StartTime = DateTime.Now.AddMonths(-1).ToString("yyyy-MM-dd");
     ViewBag.EndTime   = DateTime.Now.ToString("yyyy-MM-dd");
     ViewBag.vdOrg     = T_SYS_ORGCls.getSelectOption(new T_SYS_ORGSW {
         TopORGNO = SystemCls.getCurUserOrgNo(), SYSFLAG = ConfigCls.getSystemFlag(), CurORGNO = SystemCls.getCurUserOrgNo()
     });
     ViewBag.SEARCHTYPE = T_SYS_DICTCls.getSelectOption(new T_SYS_DICTSW {
         DICTTYPEID = "123", isShowAll = "1"
     });
     ViewBag.SEARCHTYPEAdd = T_SYS_DICTCls.getSelectOption(new T_SYS_DICTSW {
         DICTTYPEID = "123"
     });
     ViewBag.HARMPOSITIONAdd = T_SYS_DICTCls.getSelectOption(new T_SYS_DICTSW {
         DICTTYPEID = "102"
     });
     ViewBag.HARMLEVELAdd = T_SYS_DICTCls.getSelectOption(new T_SYS_DICTSW {
         DICTTYPEID = "103"
     });
     ViewBag.MANSTATEAdd = T_SYS_DICTCls.getSelectOption(new T_SYS_DICTSW {
         DICTTYPEID = "104"
     });
     ViewBag.OrgNo = SystemCls.getCurUserOrgNo();
     return(View());
 }
Exemplo n.º 2
0
 /// <summary>
 /// 护林员统计Echarts
 /// </summary>
 /// <returns></returns>
 public ActionResult HUCountMan()
 {
     pubViewBag("004001", "004001", "");
     if (ViewBag.isPageRight == false)
     {
         return(View());
     }
     ViewBag.vdOrg = T_SYS_ORGCls.getSelectOption(new T_SYS_ORGSW {
         SYSFLAG = ConfigCls.getSystemFlag(), TopORGNO = SystemCls.getCurUserOrgNo()
     });
     return(View());
 }
Exemplo n.º 3
0
 /// <summary>
 /// 野生植物页面-三维
 /// </summary>
 /// <returns></returns>
 public ActionResult WILD_BOTANY_3D()
 {
     ViewBag.vdOrg = T_SYS_ORGCls.getSelectOption(new T_SYS_ORGSW {
         TopORGNO = SystemCls.getCurUserOrgNo(), SYSFLAG = ConfigCls.getSystemFlag(), CurORGNO = SystemCls.getCurUserOrgNo()
     });
     ViewBag.POPULATIONTYPE = T_SYS_DICTCls.getSelectOption(new T_SYS_DICTSW {
         DICTTYPEID = "55", isShowAll = "1"
     });
     ViewBag.BOTANY = WILD_BOTANYDISTRIBUTECls.getSelectOption(new WILD_LOCALBOTANY_SW {
         isShowAll = "1"
     });
     return(View());
 }
Exemplo n.º 4
0
 /// <summary>
 /// 巡检路线Echarts
 /// </summary>
 /// <returns></returns>
 public ActionResult PatrolRouteStatMan()
 {
     pubViewBag("004002", "004002", "");
     if (ViewBag.isPageRight == false)
     {
         return(View());
     }
     ViewBag.TIMEBegin = DateTime.Now.ToString("yyyy-MM-01");
     ViewBag.TIMEEnd   = DateTime.Now.ToString("yyyy-MM-dd");
     ViewBag.vdOrg     = T_SYS_ORGCls.getSelectOption(new T_SYS_ORGSW {
         SYSFLAG = ConfigCls.getSystemFlag(), TopORGNO = SystemCls.getCurUserOrgNo()
     });
     return(View());
 }
        /// <summary>
        /// 生成地图图片
        /// </summary>
        /// <returns></returns>
        public ActionResult GenerateImages()
        {
            CookieModel cookieInfo = SystemCls.getCookieInfo();
            var         model      = T_SYSSEC_IPSUSERCls.getModel(new T_SYSSEC_IPSUSER_SW {
                USERID = cookieInfo.UID
            });
            var modelOrg = T_SYS_ORGCls.getModel(new T_SYS_ORGSW {
                ORGNO = model.ORGNO
            });

            ViewBag.DEPT = modelOrg.ORGNAME + modelOrg.COMMANDNAME;
            ViewBag.NAME = cookieInfo.trueName;
            ViewBag.TIME = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            return(View());
        }
Exemplo n.º 6
0
        /// <summary>
        /// 考勤统计
        /// </summary>
        /// <returns>参见模型</returns>
        public ActionResult HUCheckINCount()
        {
            pubViewBag("005001", "005001", "");
            if (ViewBag.isPageRight == false)
            {
                return(View());
            }
            ViewBag.TIMEEnd   = DateTime.Now.ToString("yyyy-MM-dd");
            ViewBag.TIMEBegin = DateTime.Now.AddDays(-6).ToString("yyyy-MM-dd");
            ViewBag.vdOrg     = T_SYS_ORGCls.getSelectOption(new T_SYS_ORGSW {
                SYSFLAG = ConfigCls.getSystemFlag(), TopORGNO = SystemCls.getCurUserOrgNo()
            });

            return(View());
        }
Exemplo n.º 7
0
        /// <summary>
        ///异步获取json字符串(车辆)
        /// </summary>
        /// <param name="orgno">当前用户机构码</param>
        /// <param name="idorgno">选择机构码</param>
        /// <returns></returns>
        public static string GetJsonStrCar(string orgno, string idorgno)
        {
            DataTable dtCar    = BaseDT.DC_CAR.getDT(new DC_CAR_SW());
            JArray    jObjects = new JArray();

            if (string.IsNullOrEmpty(idorgno))
            {
                List <T_SYS_ORGModel> orgList = T_SYS_ORGCls.getListModel(new T_SYS_ORGSW {
                    ORGNO = orgno
                }).ToList();                                                                                         //获取机构
                if (orgList.Any())
                {
                    var bo = PublicCls.OrgIsShi(orgno);
                    if (bo)
                    {
                        List <T_SYS_ORGModel> citylist = orgList.Where(p => p.ORGNO.EndsWith("00000")).ToList();//市级别
                        foreach (var city in citylist)
                        {
                            var root = getJobejctCar(dtCar, city);
                            jObjects.Add(root);
                        }
                    }

                    var bb = PublicCls.OrgIsXian(orgno);
                    if (bb)
                    {
                        List <T_SYS_ORGModel> countylist = orgList.Where(p => p.ORGNO.EndsWith("000")).ToList();//县级别
                        foreach (var county in countylist)
                        {
                            var root = getJobejctCar(dtCar, county);
                            jObjects.Add(root);
                        }
                    }
                    var bx = PublicCls.OrgIsZhen(orgno);
                    if (bx)
                    {
                        List <T_SYS_ORGModel> towerlist = orgList.Where(p => !p.ORGNO.EndsWith("000")).ToList();//乡镇级别
                        foreach (var tower in towerlist)
                        {
                            var root = getJobejctCar(dtCar, tower);
                            jObjects.Add(root);
                        }
                    }
                }
            }
            else
            {
                List <T_SYS_ORGModel> orgList = T_SYS_ORGCls.getListModel(new T_SYS_ORGSW {
                    TopORGNO = idorgno
                }).ToList();                          //获取机构
                var bo = PublicCls.OrgIsShi(idorgno); //如果选择市,则列出所有县
                if (bo)
                {
                    List <T_SYS_ORGModel> countylist = orgList.Where(p => p.ORGNO.EndsWith("000000000") && p.ORGNO != idorgno).ToList();
                    foreach (var county in countylist)
                    {
                        var root = getJobejctCar(dtCar, county);
                        jObjects.Add(root);
                    }
                    List <DC_CAR_Model> citycarlist = DC_CARCls.getModelList(new DC_CAR_SW {
                        BYORGNO = idorgno
                    }).Where(p => p.BYORGNO == idorgno).ToList();                                                                                          //市(车辆)
                    if (citycarlist.Any())
                    {
                        foreach (var car in citycarlist)
                        {
                            var obj = getLastJobjectCar(car);
                            jObjects.Add(obj);
                        }
                    }
                }
                var bb = PublicCls.OrgIsXian(idorgno);//如果选择县,则列出所有乡镇
                if (bb)
                {
                    List <T_SYS_ORGModel> towerlist = orgList.Where(p => p.ORGNO.EndsWith("000000") && p.ORGNO != idorgno).ToList();
                    foreach (var tower in towerlist)
                    {
                        var root = getJobejctCar(dtCar, tower);
                        jObjects.Add(root);
                    }
                    List <DC_CAR_Model> countycarlist = DC_CARCls.getModelList(new DC_CAR_SW {
                        BYORGNO = idorgno
                    }).Where(p => p.BYORGNO == idorgno).ToList();                                                                                            //县(车辆)
                    if (countycarlist.Any())
                    {
                        foreach (var car in countycarlist)
                        {
                            var obj = getLastJobjectCar(car);
                            jObjects.Add(obj);
                        }
                    }
                }
                var bx = PublicCls.OrgIsZhen(idorgno);//如果选择乡镇,则列出所有乡镇的车辆
                if (bx)
                {
                    List <DC_CAR_Model> towercarlist = DC_CARCls.getModelList(new DC_CAR_SW {
                        BYORGNO = idorgno
                    }).ToList();                                                                                           //乡镇(车辆)
                    if (towercarlist.Any())
                    {
                        foreach (var car in towercarlist)
                        {
                            var obj = getLastJobjectCar(car);
                            jObjects.Add(obj);
                        }
                    }
                }
            }
            return(JsonConvert.SerializeObject(jObjects));
        }