Exemplo n.º 1
0
        /// <summary>
        /// init edit info
        /// </summary>
        void InitEditInfo()
        {
            if (string.IsNullOrEmpty(AnLiId))
            {
                return;
            }

            var info = new EyouSoft.BLL.YlStructure.BWz().GetHuiYiAnLiInfo(AnLiId);

            if (info == null)
            {
                return;
            }

            txtMingCheng.Value = info.MingCheng;
            txtShiJian1.Value  = info.ShiJian1.ToString("yyyy-MM-dd");
            txtShiJian2.Value  = info.ShiJian2.ToString("yyyy-MM-dd");
            LeiXing            = ((int)info.LeiXing).ToString();

            MFileInfo file = new MFileInfo();

            file.FilePath = info.Filepath;
            var items = new List <MFileInfo>();

            items.Add(file);
            upload1.YuanFiles = items;
        }
Exemplo n.º 2
0
        /// <summary>
        /// init edit info
        /// </summary>
        void InitEditInfo()
        {
            if (string.IsNullOrEmpty(LianJieId))
            {
                return;
            }

            var info = new EyouSoft.BLL.YlStructure.BWz().GetYouQingLianJieInfo(LianJieId);

            if (info == null)
            {
                return;
            }

            txtMingCheng.Value = info.MingCheng;
            txtUrl.Value       = info.Url;

            MFileInfo file = new MFileInfo();

            file.FilePath = info.Filepath;
            var items = new List <MFileInfo>();

            items.Add(file);
            upload1.YuanFiles = items;
        }
Exemplo n.º 3
0
        /// <summary>
        /// init edit info
        /// </summary>
        void InitEditInfo()
        {
            if (string.IsNullOrEmpty(ShangPinId))
            {
                return;
            }

            var info = new EyouSoft.BLL.YlStructure.BDuiHuan().GetJiFenShangPinInfo(ShangPinId);

            if (info == null)
            {
                return;
            }

            txtMingCheng.Value        = info.MingCheng;
            txtShuLiang.Value         = info.ShuLiang.ToString();
            txtShuoMing.Value         = info.ShuoMing;
            txtXuZhi.Value            = info.XuZhi;
            txtPeiSongFangShi.Value   = info.PeiSongFangShi;
            txtFaPiaoKuaiDiJinE.Value = info.FaPiaoKuaiDiJinE.ToString("F2");
            Status = ((int)info.Status).ToString();
            txtShangPinJinE.Value = info.ShangPinJinE.ToString("F2");

            var items = new List <MFileInfo>();

            if (info.FuJians != null && info.FuJians.Count > 0)
            {
                foreach (var item in info.FuJians)
                {
                    MFileInfo file = new MFileInfo();
                    file.FilePath = item.Filepath;
                    items.Add(file);
                }
            }

            upload1.YuanFiles = items;

            if (info.FangShis != null && info.FangShis.Count > 0)
            {
                foreach (var item in info.FangShis)
                {
                    switch (item.FangShi)
                    {
                    case EyouSoft.Model.EnumType.YlStructure.JiFenDuiHuanFangShi.积分:
                        txtJiFen1.Value = item.JiFen.ToString("F2");
                        break;

                    case EyouSoft.Model.EnumType.YlStructure.JiFenDuiHuanFangShi.积分礼品卡:
                        //txtJiFen2.Value = item.JiFen.ToString("F2");
                        //txtJinE2.Value = item.JinE.ToString("F2");
                        break;

                    case EyouSoft.Model.EnumType.YlStructure.JiFenDuiHuanFangShi.积分现金:
                        txtJiFen3.Value = item.JiFen.ToString("F2");
                        txtJinE3.Value  = item.JinE.ToString("F2");
                        break;
                    }
                }
            }
        }
Exemplo n.º 4
0
        void InitPage()
        {
            var m = new BLL.YlStructure.BWz().GetWZYiJianFanKui(Common.Utils.GetQueryStringValue("editid"));

            if (m == null)
            {
                return;
            }
            this.LeiXing = m.LeiXing.Value;

            MFileInfo file = new MFileInfo();

            file.FilePath = m.FilePath;
            var items = new List <MFileInfo>();

            items.Add(file);
            this.upload1.YuanFiles = items;

            this.txtMiaoShu.Value  = m.MiaoShu;
            this.litRemoteIP.Text  = m.RemoteIP;
            this.litIssueTime.Text = m.IssueTime.ToString();
            if (!string.IsNullOrEmpty(m.OperatorId))
            {
                var p = new BLL.YlStructure.BHuiYuan().GetHuiYuanInfo(m.OperatorId);
                if (p != null)
                {
                    this.litOperator.Text = p.XingMing;
                }
            }
        }
Exemplo n.º 5
0
        /// <summary>
        /// init edit info
        /// </summary>
        void InitEditInfo()
        {
            if (string.IsNullOrEmpty(LiPinKaId))
            {
                return;
            }

            var info = new EyouSoft.BLL.YlStructure.BLiPinKa().GetLiPinKaInfo(LiPinKaId);

            if (info == null)
            {
                return;
            }

            txtMingCheng.Value        = info.MingCheng;
            txtJinE.Value             = info.JinE.ToString("F2");
            txtJinE1.Value            = info.JinE1.ToString("F2");
            txtMiaoShu.Value          = info.MiaoShu;
            txtFaPiaoKuaiDiJinE.Value = info.FaPiaoKuaiDiJinE.ToString("F2");
            LeiXing        = ((int)info.LeiXing).ToString();
            txtXuZhi.Value = info.XuZhi;

            MFileInfo file = new MFileInfo();

            file.FilePath = info.FengMian;
            var items = new List <MFileInfo>();

            items.Add(file);
            upload1.YuanFiles = items;
        }
Exemplo n.º 6
0
        public int insert(MFileInfo fi)
        {
            int i = 0;

            lock (fi)
            {
                DataTable dt = GetNewDataTable(loadData);
                if (!IsColumnIncludeData(dt, fi.FileName, fi.LastModified, fi.Size))
                {
                    //string sql = "insert into Monitor (FileName, Size, LastModified, MonitorName, BucketName,Status) values(@FileName,@Size,@LastModified, @MonitorName,@BucketName,@Status)";
                    //SQLiteParameter[] sqllite = new SQLiteParameter[]{
                    //          CreateParameter("@FileName",DbType.String,fi.FileName),
                    //          CreateParameter("@Size",DbType.String,fi.Size),
                    //          CreateParameter("@LastModified",DbType.DateTime,fi.LastModified),
                    //          CreateParameter("@MonitorName",DbType.String,fi.MonitorName),
                    //          CreateParameter("@BucketName",DbType.String, fi.BucketName),
                    //          CreateParameter("@Status",DbType.String, "Y")
                    //          };

                    //i = sqlLiteHelper.ExecuteNonQuery(sql, sqllite);
                    //if (i > 0)
                    //{

                    //    string s1 = queryMaxId("SeqNo", fi.MonitorName, fi.BucketName);
                    //    if (!string.IsNullOrEmpty(s1))
                    //    {
                    loadData.Rows.Add(new object[] { fi.SeqNo, fi.FileName, fi.Size, fi.LastModified, fi.MonitorName, fi.BucketName, "Y" });

                    //}
                    //}
                }
            }
            return(i);
        }
Exemplo n.º 7
0
        /// <summary>
        /// upload
        /// </summary>
        /// <param name="file"></param>
        /// <returns></returns>
        MFileInfo upload(HttpPostedFile file)
        {
            var info = new MFileInfo();

            info.FileName = file.FileName;

            if (file.ContentLength < 1 || string.IsNullOrEmpty(info.FileName))
            {
                info.RetCode = "-1";
                info.XiaoXi  = "上传文件错误";

                return(info);
            }

            if (file.ContentLength > 2097152)
            {
                info.RetCode = "-1";
                info.XiaoXi  = "上传文件错误(文件大小不能超过2M)";

                return(info);
            }

            string filePath = string.Empty;
            //获取文件扩展名
            string fielExtension = Path.GetExtension(file.FileName);

            string[] fileTypeList = Utils.GetUploadFileExtensions();
            if (!fileTypeList.Contains(fielExtension))
            {
                info.RetCode = "-1";
                info.XiaoXi  = "上传文件错误(不允许的文件扩展名)";

                return(info);
            }

            //设置文件名
            Random rnd          = new Random();
            string saveFileName = DateTime.Now.ToFileTime().ToString() + rnd.Next(1000, 99999).ToString() + fielExtension;

            rnd = null;

            //保存文件
            string dPath = System.Web.HttpContext.Current.Server.MapPath(UploadFilepath);

            if (!Directory.Exists(dPath))
            {
                Directory.CreateDirectory(dPath);
            }

            string fPath = dPath + saveFileName;

            file.SaveAs(fPath);

            filePath = UploadFilepath + saveFileName;

            info.RetCode  = "0";
            info.Filepath = filePath;

            return(info);
        }
Exemplo n.º 8
0
        /// <summary>
        /// 初始化
        /// </summary>
        void initPage()
        {
            var model = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetXiLieInfo(Utils.GetQueryStringValue("id"));

            if (model != null)
            {
                YLCompanySelect1.CompName = model.GongSiMingCheng; //游轮公司
                YLCompanySelect1.ComPid   = model.GongSiId;        //游轮公司ID
                txtXiLie.Text             = model.MingCheng;
                txtJieShao.Text           = model.JianYaoJieShao;  //介绍
                txtXXJieShao.Text         = model.XiangXiJieShao;  //详细介绍

                var items = new List <MFileInfo>();

                if (model.FuJians != null && model.FuJians.Count > 0)
                {
                    foreach (var item in model.FuJians)
                    {
                        MFileInfo file = new MFileInfo();
                        file.FilePath = item.Filepath;
                        items.Add(file);
                    }
                }
                upload1.YuanFiles = items;

                txtPaiXuId.Text = model.PaiXuId.ToString();
            }
        }
Exemplo n.º 9
0
        /// <summary>
        /// init edit info
        /// </summary>
        void InitEditInfo()
        {
            if (string.IsNullOrEmpty(GuangGaoId))
            {
                return;
            }

            var info = new EyouSoft.BLL.YlStructure.BWz().GetGuangGaoInfo(GuangGaoId);

            if (info == null)
            {
                return;
            }

            txtMingCheng.Value = info.MingCheng;
            txtUrl.Value       = info.Url;
            WeiZhi             = ((int)info.WeiZhi).ToString();

            MFileInfo file = new MFileInfo();

            file.FilePath = info.Filepath;
            var items = new List <MFileInfo>();

            items.Add(file);
            upload1.YuanFiles = items;

            txtPaiXuId.Value = info.PaiXuId.ToString();
        }
Exemplo n.º 10
0
 private void setDateTable(MFileInfo fi)
 {
     if (InvokeRequired && this.IsDisposed && !this.IsHandleCreated)
     {
         Invoke(new setGridView(setDateTable), new object[] { fi });
     }
     else
     {
         loadData.Rows.Add(new object[] { fi.SeqNo, fi.FileName, fi.Size, fi.LastModified, fi.MonitorName, fi.BucketName, "Y" });
     }
 }
Exemplo n.º 11
0
        private void requestOssClient()
        {
            ObjectListing olist = null;

            if (ossClient == null)
            {
                ossClient = new OssClient(id, key);
            }
            ListObjectsRequest request = new ListObjectsRequest(bucketName);

            request.MaxKeys   = 1000;
            request.Delimiter = "/";
            request.Prefix    = MonitorFolder + "/";
            do
            {
                olist = ossClient.ListObjects(request);
                IEnumerable <OssObjectSummary> ossSumm = olist.ObjectSummaries;
                if (ossSumm.Count() > 0)
                {
                    foreach (OssObjectSummary obj in ossSumm)
                    {
                        //if (obj.Key.Contains(MonitorFolder))
                        {
                            MFileInfo fi      = new MFileInfo();
                            string    keyName = obj.Key;
                            if (keyName.IndexOf('/') > 0)
                            {
                                string[] str = keyName.Split('/');
                                fi.FileName = str[str.Length - 1];
                                fi.Size     = toSize(obj.Size);
                                DateTime time = obj.LastModified;
                                time            = time.AddHours(8);
                                fi.LastModified = time;
                                fi.MonitorName  = MonitorFolder;
                                fi.BucketName   = bucketName;
                                setDateTable(fi);
                            }
                        }
                    }
                    if (olist.IsTrunked)
                    {
                        request.Marker = olist.NextMarker;
                    }
                }
            } while (olist.IsTrunked);
            // loadData = filesHelper.select();
            textChanged();
        }
Exemplo n.º 12
0
        /// <summary>
        /// 初始化
        /// </summary>
        void initPage()
        {
            this.ddlGSType.DataTextField  = "Text";
            this.ddlGSType.DataValueField = "Value";
            this.ddlGSType.DataSource     = EyouSoft.Common.EnumObj.GetList(typeof(EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing));
            this.ddlGSType.DataBind();

            var model = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetGongSiInfo(Utils.GetQueryStringValue("id"));

            if (model != null)
            {
                txtMingCheng.Text = model.MingCheng;
                if (ddlGSType.Items.FindByValue(((int)model.LeiXing).ToString()) != null)
                {
                    ddlGSType.Items.FindByValue(((int)model.LeiXing).ToString()).Selected = true;
                }
                txtJieShao.Text   = model.JianYaoJieShao;
                txtXXJieShao.Text = model.XiangXiJieShao;

                #region logo
                MFileInfo file = new MFileInfo();
                file.FilePath = model.Logo;
                var items = new List <MFileInfo>();
                items.Add(file);
                upload1.YuanFiles = items;
                #endregion

                #region fujians
                var items1 = new List <MFileInfo>();
                if (model.FuJians != null && model.FuJians.Count > 0)
                {
                    foreach (var item in model.FuJians)
                    {
                        MFileInfo file1 = new MFileInfo();
                        file1.FilePath = item.Filepath;
                        items1.Add(file1);
                    }
                }
                upload2.YuanFiles = items1;
                #endregion

                txtPaiXuId.Text = model.PaiXuId.ToString();

                txtYouShi.Text = model.YouShi;
                txtRongYu.Text = model.RongYu;
            }
        }
Exemplo n.º 13
0
        /// <summary>
        /// init edit info
        /// </summary>
        void InitEditInfo()
        {
            if (string.IsNullOrEmpty(TuanGouId))
            {
                return;
            }

            var info = new EyouSoft.BLL.YlStructure.BHangQi().GetTuanGouInfo(TuanGouId);

            if (info == null)
            {
                return;
            }

            HangQiId               = info.HangQiId;
            HangQiMingCheng        = info.HangQiMingCheng;
            RiQiId                 = info.RiQiId;
            FangXingId             = info.FangXingId.ToString();
            GuoJiId                = info.GuoJiId.ToString();
            txtMingCheng.Value     = info.MingCheng;
            txtYuanJia.Value       = info.YuanJia.ToString("F2");
            txtXianJia.Value       = info.XianJia.ToString("F2");
            txtJieZhiShiJian.Value = info.JieZhiShiJian.ToString("yyyy-MM-dd");
            txtBKLX.Value          = info.BinKeLeiXing;
            txtTuanGouShu.Value    = info.TuanGouShu.ToString();

            MFileInfo file = new MFileInfo();

            file.FilePath = info.FengMian;
            var items = new List <MFileInfo>();

            items.Add(file);
            upload1.YuanFiles = items;

            if (info.JiaGes != null && info.JiaGes.Count > 0)
            {
                rpt.DataSource = info.JiaGes;
                rpt.DataBind();

                phJiaGe.Visible = false;
            }
        }
Exemplo n.º 14
0
        /// <summary>
        /// 初始化
        /// </summary>
        void initPage()
        {
            var model = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetShiPinInfo(Utils.GetQueryStringValue("id"));

            if (model != null)
            {
                YLCompanySelect1.ComPid   = model.GongSiId;
                YLCompanySelect1.CompName = model.GongSiMingCheng;
                txtSPName.Text            = model.MingCheng; //视频名称
                txtURL.Text     = model.Filepath;            //地址
                txtMiaoShu.Text = model.XiangXiJieShao;      //详细介绍
                ChuanZhiId      = model.ChuanZhiId;
                XiLieId         = model.XiLieId;

                MFileInfo file = new MFileInfo();
                file.FilePath = model.ShiPinIMG;
                var items = new List <MFileInfo>();
                items.Add(file);
                upload1.YuanFiles = items;
            }
        }
Exemplo n.º 15
0
        public MFileInfo FileUpload(string fPath)
        {
            var list = System.Web.HttpContext.Current.Request.Files;

            if (list.Count == 0)
            {
                return(null);
            }
            var httpfile = list[0];

            if (httpfile == null || httpfile.ContentLength == 0)
            {
                return(null);
            }
            if (!Directory.Exists(System.Web.HttpContext.Current.Server.MapPath(fPath)))
            {
                FileHelper.CreateDirectory(System.Web.HttpContext.Current.Server.MapPath(fPath));
            }
            var uploadsPath = Path.Combine(fPath, CombHelper.GenerateNumber());

            string extraName = httpfile.FileName.Substring(httpfile.FileName.LastIndexOf(".") + 1);
            string fName     = httpfile.FileName;
            string filepath  = uploadsPath + "." + extraName;

            httpfile.SaveAs(System.Web.HttpContext.Current.Server.MapPath(filepath));
            string    path = filepath;
            string    type = extraName;
            MFileInfo mf   = new MFileInfo
            {
                Name      = fName,
                extraName = extraName,
                Path      = filepath,
                Size      = httpfile.ContentLength
            };

            return(mf);
        }
Exemplo n.º 16
0
        /// <summary>
        /// 初始化
        /// </summary>
        void initPage()
        {
            initDDL();
            var model = new EyouSoft.BLL.YlStructure.BHangQi().GetHangQiInfo(Utils.GetQueryStringValue("id"));

            if (model != null)
            {
                txtSeoTitle.Text       = model.SeoTitle;
                txtSeoKeyword.Text     = model.SeoKeyword;
                txtSeoDescription.Text = model.SeoDescription;

                txtchanpinmingcheng.Text  = model.MingCheng;
                txtchanpinbainhao.Text    = model.BianHao;
                txtqishijiage.Text        = model.QiShiJiaGe1.ToString("F2");
                SupplierControl1.HideID   = model.GysId;
                SupplierControl1.Name     = model.GysName;
                YLCompanySelect1.ComPid   = model.GongSiId;
                YLCompanySelect1.CompName = model.GongSiName;

                //if (ddlxilie.Items.FindByValue(model.XiLieId) != null)
                //    ddlxilie.Items.FindByValue(model.XiLieId).Selected = true;
                //if (ddlchuanzhi.Items.FindByValue(model.ChuanZhiId) != null)
                //    ddlchuanzhi.Items.FindByValue(model.ChuanZhiId).Selected = true;
                xlbh.Value = model.XiLieId;
                czbh.Value = model.ChuanZhiId;


                if (ddlhangxian.Items.FindByValue(model.HangXianId.ToString()) != null)
                {
                    ddlhangxian.Items.FindByValue(model.HangXianId.ToString()).Selected = true;
                }
                if (ddlchufagangkou.Items.FindByValue(model.ChuFaGangKouId.ToString()) != null)
                {
                    ddlchufagangkou.Items.FindByValue(model.ChuFaGangKouId.ToString()).Selected = true;
                }
                if (ddldidagangkou.Items.FindByValue(model.DiDaGangKouId.ToString()) != null)
                {
                    ddldidagangkou.Items.FindByValue(model.DiDaGangKouId.ToString()).Selected = true;
                }


                txtxingchengtian.Text  = model.TianShu1.ToString();
                txtxingchengwan.Text   = model.TianShu2.ToString();
                txttujingchengshi.Text = model.TuJingChengShi;

                txtlvyougonglve.Text       = model.GongLue;
                txtqishijiageshuoming.Text = model.QiShiJiaGeShuoMing;
                txtchanpintese.Text        = model.ChanPinTeSe;
                txtyouhuixinxi.Text        = model.YouHuiXinXi;
                txtfeiyongshuoming.Text    = model.FeiYongShuoMing;
                txtyudingxuzhi.Text        = model.YuDingXuZhi;
                txtyouqingtishi.Text       = model.YouQingTiShi;
                txtzuiduojifen.Text        = model.KeDiKouJinFen.ToString();
                txtjifenbili.Text          = (model.JiFenDuiHuanBiLi * 100).ToString("F2");
                txtleijibili.Text          = (model.JiFenLeiJiBiLi * 100).ToString("F2");

                qianzhengqianzhu.Text = model.QianZhengQianZhu;
                hangxianxingzhi.Text  = model.HangXianXingZhi;

                kuaidifei.Text = model.FaPiaoKuaiDiJinE.ToString("F2");

                txtXiaoLiang.Text = model.XiaoLiang1.ToString();
                txtHaoPing.Text   = model.HaoPing.ToString("F2");
                txtpaixuid.Text   = model.PaiXuId.ToString();

                #region fujians
                var items = new List <MFileInfo>();

                if (model.FuJians != null && model.FuJians.Count > 0)
                {
                    foreach (var item in model.FuJians)
                    {
                        MFileInfo file = new MFileInfo();
                        file.FilePath = item.Filepath;
                        items.Add(file);
                    }
                }
                upload1.YuanFiles = items;
                #endregion


                YLXingCheng1.SetPlanList = model.XingChengs;
                if (model.FuJiaChanPins != null && model.FuJiaChanPins.Count > 0)
                {
                    PlaceHolder1.Visible = false;
                    rptlist.DataSource   = model.FuJiaChanPins;
                    rptlist.DataBind();
                }
            }
        }
Exemplo n.º 17
0
        private void requestOssClient()
        {
            bool status = false;

            init();
            ObjectListing olist = null;

            if (ossClient == null)
            {
                ossClient = new OssClient(id, key);
            }
            ListObjectsRequest request = new ListObjectsRequest(bucketName);

            request.MaxKeys   = 1000;
            request.Delimiter = "/";
            request.Prefix    = MonitorFolder + "/";
            do
            {
                olist = ossClient.ListObjects(request);
                IEnumerable <OssObjectSummary> ossSumm = olist.ObjectSummaries;
                if (ossSumm.Count() > 0)
                {
                    foreach (OssObjectSummary obj in ossSumm)
                    {
                        //if (obj.Key.Contains(MonitorFolder))
                        {
                            MFileInfo fi      = new MFileInfo();
                            string    keyName = obj.Key;
                            if (keyName.IndexOf('/') > 0)
                            {
                                string[] str = keyName.Split('/');
                                fi.FileName = str[str.Length - 1];
                                fi.Size     = toSize(obj.Size);
                                DateTime time = obj.LastModified;
                                time            = time.AddHours(8);
                                fi.LastModified = time;
                                fi.MonitorName  = MonitorFolder;
                                fi.BucketName   = bucketName;
                                if (!string.IsNullOrEmpty(fi.FileName))
                                {
                                    lock (fi)
                                    {
                                        if (keys.Contains(fi.FileName))
                                        {
                                        }
                                        else
                                        {
                                            status = true;
                                            keys.Add(fi.FileName);
                                            setDateTable(fi);
                                        }
                                    }
                                }
                            }
                        }
                    }
                    if (olist.IsTrunked)
                    {
                        request.Marker = olist.NextMarker;
                    }
                }
            } while (olist.IsTrunked);

            if (status)
            {
                UpdateDate = DateTime.Now;
            }
            textChanged();
        }
Exemplo n.º 18
0
        /// <summary>
        /// 初始化
        /// </summary>
        void initPage()
        {
            initDDL();
            var model = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetChuanZhiInfo(Utils.GetQueryStringValue("id"));

            if (model != null)
            {
                YLCompanySelect1.CompName = model.GongSiMingCheng;
                YLCompanySelect1.ComPid   = model.GongSiId;
                XiLieId = model.XiLieId;
                txtchuanzhimingcheng.Text = model.MingCheng;
                txtyingwenmingcheng.Text  = model.MingCheng1;
                if (ddlxingji.Items.FindByValue(((int)model.XingJi).ToString()) != null)
                {
                    ddlxingji.Items.FindByValue(((int)model.XingJi).ToString()).Selected = true;
                }
                txtdunwei.Text         = model.DunWei;
                txtxiashuiriqi.Text    = model.XiaShuiRiQi;
                txtzhuangxiuriqi.Text  = model.ZhuangXiuRiQi;
                txtzaikeliang.Text     = model.ZaiKeLiang;
                txtjiaban.Text         = model.JiaBanLouCeng;
                txtchuanyuan.Text      = model.ChuanYuan;
                txtchangdu.Text        = model.ChangDu;
                txtkuandu.Text         = model.KuangDu;
                txtchuanji.Text        = model.ChuanJi;
                txtzuigaohangsu.Text   = model.ZuiGaoHangSu;
                txtfuwutai.Text        = model.ChuanZaiDianHua;
                txtChiShui.Text        = model.ChiShui;
                txtKeFangShuLiang.Text = model.KeFangShuLiang;

                #region pingmiantus
                var items = new List <MFileInfo>();

                if (model.PingMianTus != null && model.PingMianTus.Count > 0)
                {
                    foreach (var item in model.PingMianTus)
                    {
                        MFileInfo file = new MFileInfo();
                        file.FilePath = item.Filepath;
                        items.Add(file);
                    }
                }
                upload1.YuanFiles = items;
                #endregion

                #region fujians
                var items1 = new List <MFileInfo>();
                if (model.FuJians != null && model.FuJians.Count > 0)
                {
                    foreach (var item in model.FuJians)
                    {
                        MFileInfo file = new MFileInfo();
                        file.FilePath = item.Filepath;
                        items1.Add(file);
                    }
                }
                upload2.YuanFiles = items1;
                #endregion


                txtJieShao.Text   = model.JianYaoJieShao;
                txtXXJieShao.Text = model.XiangXiJieShao;
            }
        }