Exemple #1
0
        /// <summary>
        /// 获取反馈信息模型
        /// </summary>
        /// <param name="sw"></param>
        /// <returns></returns>
        public static IEnumerable <JC_FIRETICKLING_Model> GetModelList(JC_FIRETICKLING_SW sw)
        {
            var       result = new List <JC_FIRETICKLING_Model>();
            DataTable dt     = BaseDT.JC_FIRETICKLING.GetDT(sw);//获取反馈信息记录

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                var model = new JC_FIRETICKLING_Model();
                model.FKID           = dt.Rows[i]["FKID"].ToString();
                model.JCFID          = dt.Rows[i]["JCFID"].ToString();
                model.DL             = dt.Rows[i]["DL"].ToString();
                model.FORESTNAME     = dt.Rows[i]["FORESTNAME"].ToString();
                model.FORESTFIRETYPE = dt.Rows[i]["FORESTFIRETYPE"].ToString();
                model.FUELTYPE       = dt.Rows[i]["FUELTYPE"].ToString();
                model.HOTTYPE        = dt.Rows[i]["HOTTYPE"].ToString();
                model.CHECKTIME      = dt.Rows[i]["CHECKTIME"] == null ? "" : ClsSwitch.SwitTM(dt.Rows[i]["CHECKTIME"].ToString());
                model.YY             = dt.Rows[i]["YY"].ToString();
                model.JXHQSJ         = dt.Rows[i]["JXHQSJ"].ToString();
                model.FIREBEGINTIME  = dt.Rows[i]["FIREBEGINTIME"] == null ? "" : ClsSwitch.SwitTM(dt.Rows[i]["FIREBEGINTIME"].ToString());
                model.FIREENDTIME    = dt.Rows[i]["FIREENDTIME"] == null ? "" : ClsSwitch.SwitTM(dt.Rows[i]["FIREENDTIME"].ToString());
                model.ISOUTFIRE      = dt.Rows[i]["ISOUTFIRE"].ToString();
                model.BURNEDAREA     = dt.Rows[i]["BURNEDAREA"].ToString();
                model.OVERDOAREA     = dt.Rows[i]["OVERDOAREA"].ToString();
                model.LOSTFORESTAREA = dt.Rows[i]["LOSTFORESTAREA"].ToString();
                model.ELSELOSSINTRO  = dt.Rows[i]["ELSELOSSINTRO"].ToString();
                model.FIREINTRO      = dt.Rows[i]["FIREINTRO"].ToString();
                model.BYORGNO        = dt.Rows[i]["BYORGNO"].ToString();
                model.MANUSERID      = dt.Rows[i]["MANUSERID"].ToString();
                model.MANTIME        = dt.Rows[i]["MANTIME"].ToString();
                model.MANSTATE       = dt.Rows[i]["MANSTATE"].ToString();
                result.Add(model);
            }
            return(result);
        }
Exemple #2
0
        /// <summary>
        /// 获取最新的火情反馈信息
        /// </summary>
        /// <param name="sw"></param>
        /// <returns></returns>
        public static JC_FIRETICKLING_Model getLatestfeedback(JC_FIRETICKLING_SW sw)
        {
            DataTable dt    = BaseDT.JC_FIRETICKLING.Latestfeedback(sw);
            DataTable dtORG = BaseDT.T_SYS_ORG.getDT(new T_SYS_ORGSW {
                SYSFLAG = ConfigCls.getSystemFlag()
            });                                                                                               //获取单位
            DataTable dt7 = BaseDT.T_SYS_DICT.getDT(new T_SYS_DICTSW {
                DICTTYPEID = "7"
            });                                                                            //数据中心地类类型
            DataTable dt8 = BaseDT.T_SYS_DICT.getDT(new T_SYS_DICTSW {
                DICTTYPEID = "8"
            });                                                                            //数据中心林火类型
            DataTable dt9 = BaseDT.T_SYS_DICT.getDT(new T_SYS_DICTSW {
                DICTTYPEID = "9"
            });                                                                            //数据中心可燃物类别
            DataTable dt10 = BaseDT.T_SYS_DICT.getDT(new T_SYS_DICTSW {
                DICTTYPEID = "10"
            });                                                                              //热点类别
            JC_FIRETICKLING_Model m = new JC_FIRETICKLING_Model();

            //JCFireFKInfoModel m = new JCFireFKInfoModel();
            if (dt.Rows.Count == 1)
            {
                m.DL                 = dt.Rows[0]["DL"].ToString();
                m.DLName             = BaseDT.T_SYS_DICT.getName(dt7, m.DL);
                m.FORESTNAME         = dt.Rows[0]["FORESTNAME"].ToString();
                m.FORESTFIRETYPE     = dt.Rows[0]["FORESTFIRETYPE"].ToString();
                m.FORESTFIRETYPENAME = BaseDT.T_SYS_DICT.getName(dt8, m.FORESTFIRETYPE);
                m.FUELTYPE           = dt.Rows[0]["FUELTYPE"].ToString();
                m.FUELTYPEName       = BaseDT.T_SYS_DICT.getName(dt9, m.FUELTYPE);
                m.HOTTYPE            = dt.Rows[0]["HOTTYPE"].ToString();
                m.HOTTYPEName        = BaseDT.T_SYS_DICT.getName(dt10, m.HOTTYPE);
                m.CHECKTIME          = ClsSwitch.SwitTM(dt.Rows[0]["CHECKTIME"].ToString());
                m.YY                 = dt.Rows[0]["YY"].ToString();
                m.JXHQSJ             = dt.Rows[0]["JXHQSJ"].ToString();
                m.FIREBEGINTIME      = ClsSwitch.SwitTM(dt.Rows[0]["FIREBEGINTIME"].ToString());
                m.FIREENDTIME        = ClsSwitch.SwitTM(dt.Rows[0]["FIREENDTIME"].ToString());

                m.ISOUTFIRE      = dt.Rows[0]["ISOUTFIRE"].ToString();
                m.BURNEDAREA     = dt.Rows[0]["BURNEDAREA"].ToString();
                m.OVERDOAREA     = dt.Rows[0]["OVERDOAREA"].ToString();
                m.LOSTFORESTAREA = dt.Rows[0]["LOSTFORESTAREA"].ToString();
                m.ELSELOSSINTRO  = dt.Rows[0]["ELSELOSSINTRO"].ToString();
                m.FIREINTRO      = dt.Rows[0]["FIREINTRO"].ToString();
                m.BYORGNO        = dt.Rows[0]["BYORGNO"].ToString();
                m.MANUSERID      = dt.Rows[0]["MANUSERID"].ToString();
                m.MANSTATE       = dt.Rows[0]["MANSTATE"].ToString();
                m.MANTIME        = dt.Rows[0]["MANTIME"].ToString();
                m.AUDITREASON    = dt.Rows[0]["AUDITREASON"].ToString(); //审核不通过理由
                m.ADDRESS        = dt.Rows[0]["ADDRESS"].ToString();     //实际发生地
                m.JD             = dt.Rows[0]["JD"].ToString();
                m.WD             = dt.Rows[0]["WD"].ToString();
                m.ORGNAME        = BaseDT.T_SYS_ORG.getName(dtORG, m.BYORGNO);
                //m.JC_FireFKData.JD = string.IsNullOrEmpty(dt.Rows[0]["JD"].ToString()) ? dt.Rows[0]["JCJD"].ToString() : dt.Rows[0]["JD"].ToString();//实际发生经度
                //m.JC_FireFKData.WD = string.IsNullOrEmpty(dt.Rows[0]["WD"].ToString()) ? dt.Rows[0]["JCWD"].ToString() : dt.Rows[0]["WD"].ToString();//实际发生纬度
            }
            dt.Clear();
            dt.Dispose();
            dt7.Clear();
            dt7.Dispose();
            dt8.Clear();
            dt8.Dispose();
            dt9.Clear();
            dt9.Dispose();
            dt10.Clear();
            dt10.Dispose();
            return(m);
        }