コード例 #1
0
        /// <summary>
        /// 添加/编辑
        /// </summary>
        /// <param name="isEdit"></param>
        /// <param name="p_AdvertisingInfo"></param>
        public void AEAdvertisingInfo(DealMvc.ControllerBase _CB, bool isEdit, ref Model.AdvertisingInfo p_ai)
        {
            Model.AdvertisingInfo m_ai = null;

            if (isEdit)
            {
                m_ai = DealMvc.Model.AdvertisingInfo.GetModel(p_ai.id ?? 0);
            }
            else
            {
                m_ai = new Model.AdvertisingInfo();
            }

            if (!isEdit)
            {
                if (Orm.EntityCore <Model.AdvertisingInfo> .Exists("=id", new object[] { p_ai.id }))
                {
                    throw new ExceptionEx.MyExceptionMessageBox("已经存在此记录");
                }
                m_ai.AI_AdLocation  = p_ai.AI_AdLocation;       //AI_AdLocation[Type=string] - 广告位置
                m_ai.AI_AdPicWidth  = p_ai.AI_AdPicWidth ?? 0;  //AI_AdPicWidth[Type= int?] - 像素宽
                m_ai.AI_AdPicHeight = p_ai.AI_AdPicHeight ?? 0; //AI_AdPicHeight[Type= int?] - 像素高
            }
            else
            {
            }

            m_ai.AI_AdTitle  = p_ai.AI_AdTitle;                                                     //AI_AdTitle[Type=string] - 广告语
            m_ai.AI_AdPic    = string.IsNullOrEmpty(p_ai.AI_AdPic) ? m_ai.AI_AdPic : p_ai.AI_AdPic; //AI_AdPic[Type=string] - 广告图片
            m_ai.AI_LinkUrl  = p_ai.AI_LinkUrl;                                                     //AI_LinkUrl[Type=string] - 链接地址
            m_ai.AI_Remarks  = p_ai.AI_Remarks;                                                     //AI_Remarks[Type=string] - 广告备注
            m_ai.AI_IsTarget = p_ai.AI_IsTarget;                                                    //AI_IsTarget[Type=bool] - 是否新窗口打开
            m_ai.AI_Time     = p_ai.AI_Time ?? DateTime.Now;                                        //AI_Time[Type=DateTime?] - 操作时间
            m_ai.A           = p_ai.A;                                                              //A[Type=string] - 扩展A字段
            m_ai.B           = p_ai.B;                                                              //B[Type=string] - 扩展B字段
            m_ai.C           = p_ai.C;                                                              //C[Type=string] - 扩展C字段
            m_ai.D           = p_ai.D;                                                              //D[Type=string] - 扩展D字段
            m_ai.E           = p_ai.E;                                                              //E[Type=string] - 扩展E字段


            p_ai = m_ai;
            if (isEdit)
            {
                m_ai.Update();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "编辑成功");
                _CB.IsSaveForm = true;
            }
            else
            {
                m_ai.Add();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "添加成功", true);
            }
        }
コード例 #2
0
        /// <summary>
        /// 添加/编辑
        /// </summary>
        /// <param name="isEdit"></param>
        /// <param name="p_PointsSet"></param>
        public void AEPointsSet(DealMvc.ControllerBase _CB, bool isEdit, ref Model.PointsSet p_ps)
        {
            Model.PointsSet m_ps = null;

            if (isEdit)
            {
                m_ps = DealMvc.Model.PointsSet.GetModel(p_ps.id ?? 0);
            }
            else
            {
                m_ps = new Model.PointsSet();
            }

            if (!isEdit)
            {
                if (Orm.EntityCore <Model.PointsSet> .Exists("=id", new object[] { p_ps.id }))
                {
                    throw new ExceptionEx.MyExceptionMessageBox("已经存在此记录");
                }
            }
            else
            {
            }

            m_ps.PS_ConsumerPoints    = p_ps.PS_ConsumerPoints ?? 0;    //PS_Cate[Type= int?] - 完成消费送积分
            m_ps.PS_RegPoints         = p_ps.PS_RegPoints ?? 0;         //PS_RegPoints[Type= int?] - 完成注册送积分
            m_ps.PS_PhoneVerifyPoints = p_ps.PS_PhoneVerifyPoints ?? 0; //PS_PhoneVerifyPoints[Type= int?] - 验证手机送积分
            m_ps.PS_EmailVerifyPoints = p_ps.PS_EmailVerifyPoints ?? 0; //PS_EmailVerifyPoints[Type= int?] - 验证邮箱送积分
            m_ps.PS_Time = p_ps.PS_Time ?? DateTime.Now;                //PS_Time[Type=DateTime?] - 更新时间
            m_ps.A       = p_ps.A;                                      //A[Type=string] - 扩展A字段
            m_ps.B       = p_ps.B;                                      //B[Type=string] - 扩展B字段
            m_ps.C       = p_ps.C;                                      //C[Type=string] - 扩展C字段
            m_ps.D       = p_ps.D;                                      //D[Type=string] - 扩展D字段
            m_ps.E       = p_ps.E;                                      //E[Type=string] - 扩展E字段


            p_ps = m_ps;
            if (isEdit)
            {
                m_ps.Update();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "编辑成功");
                _CB.IsSaveForm = true;
            }
            else
            {
                m_ps.Add();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "添加成功", true);
            }
        }
コード例 #3
0
        /// <summary>
        /// 添加/编辑
        /// </summary>
        /// <param name="isEdit"></param>
        /// <param name="p_SiteEmail"></param>
        public void AESiteEmail(DealMvc.ControllerBase _CB, bool isEdit, ref Model.SiteEmail p_se)
        {
            Model.SiteEmail m_se = null;

            if (isEdit)
            {
                m_se = DealMvc.Model.SiteEmail.GetModel(p_se.id ?? 0);
            }
            else
            {
                m_se = new Model.SiteEmail();
            }

            if (!isEdit)
            {
                if (Orm.EntityCore <Model.SiteEmail> .Exists("=id", new object[] { p_se.id }))
                {
                    throw new ExceptionEx.MyExceptionMessageBox("已经存在此记录");
                }
            }
            else
            {
            }
            m_se.Smtp           = p_se.Smtp;                   //Smtp[Type=string] - 邮箱SMTP
            m_se.Emailname      = p_se.Emailname;              //Emailname[Type=string] - 用户帐号
            m_se.Email          = p_se.Email;                  //Email[Type=string] - 邮箱地址
            m_se.Emailpwd       = p_se.Emailpwd;               //Emailpwd[Type=string] - 邮箱密码
            m_se.Port           = p_se.Port ?? 0;              //Port[Type= int?] - 邮箱发送端口
            m_se.IsRegSendEmail = p_se.IsRegSendEmail;         //IsRegSendEmail[Type=bool] - 是否开启
            m_se.UpTime         = p_se.UpTime ?? DateTime.Now; //UpTime[Type=DateTime?] - 更新时间


            p_se = m_se;
            if (isEdit)
            {
                m_se.Update();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "修改网站邮箱信息成功");
                _CB.IsSaveForm = true;
            }
            else
            {
                m_se.Add();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "添加成功", true);
            }
        }
コード例 #4
0
        /// <summary>
        /// 添加/编辑
        /// </summary>
        /// <param name="isEdit"></param>
        /// <param name="p_SiteLoginAPI"></param>
        public void AESiteLoginAPI(DealMvc.ControllerBase _CB, bool isEdit, ref Model.SiteLoginAPI p_slapi)
        {
            Model.SiteLoginAPI m_slapi = null;

            if (isEdit)
            {
                m_slapi = DealMvc.Model.SiteLoginAPI.GetModel(p_slapi.id ?? 0);
            }
            else
            {
                m_slapi = new Model.SiteLoginAPI();
            }

            if (!isEdit)
            {
                if (Orm.EntityCore <Model.SiteLoginAPI> .Exists("=id", new object[] { p_slapi.id }))
                {
                    throw new ExceptionEx.MyExceptionMessageBox("已经存在此记录");
                }
            }
            else
            {
            }

            m_slapi.ApiType      = p_slapi.ApiType;                //ApiType[Type=string] - API类型
            m_slapi.App_key      = p_slapi.App_key;                //App_key[Type=string] - App_key
            m_slapi.App_secret   = p_slapi.App_secret;             //App_secret[Type=string] - App_secret
            m_slapi.MetaProperty = p_slapi.MetaProperty;           //MetaProperty[Type=string] - MetaProperty
            m_slapi.UpTime       = p_slapi.UpTime ?? DateTime.Now; //UpTime[Type=DateTime?] - 更新时间


            p_slapi = m_slapi;
            if (isEdit)
            {
                m_slapi.Update();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "编辑成功");
                _CB.IsSaveForm = true;
            }
            else
            {
                m_slapi.Add();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "添加成功", true);
            }
        }
コード例 #5
0
        /// <summary>
        /// 添加/编辑
        /// </summary>
        /// <param name="isEdit"></param>
        /// <param name="p_SitePayAPI"></param>
        public void AESitePayAPI(DealMvc.ControllerBase _CB, bool isEdit, ref Model.SitePayAPI p_spapi)
        {
            Model.SitePayAPI m_spapi = null;

            if (isEdit)
            {
                m_spapi = DealMvc.Model.SitePayAPI.GetModel(p_spapi.id ?? 0);
            }
            else
            {
                m_spapi = new Model.SitePayAPI();
            }

            if (!isEdit)
            {
                if (Orm.EntityCore <Model.SitePayAPI> .Exists("=id", new object[] { p_spapi.id }))
                {
                    throw new ExceptionEx.MyExceptionMessageBox("已经存在此记录");
                }
            }
            else
            {
            }

            m_spapi.ApiType     = p_spapi.ApiType;                //ApiType[Type=string] - API类型
            m_spapi.Account     = p_spapi.Account;                //Account[Type=string] - 签约账号
            m_spapi.AppIdentity = p_spapi.AppIdentity;            //AppIdentity[Type=string] - 合作者身份
            m_spapi.AppKey      = p_spapi.AppKey;                 //AppKey[Type=string] - 密钥
            m_spapi.UpTime      = p_spapi.UpTime ?? DateTime.Now; //UpTime[Type=DateTime?] - 更新时间


            p_spapi = m_spapi;
            if (isEdit)
            {
                m_spapi.Update();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "修改网站支付信息成功");
                _CB.IsSaveForm = true;
            }
            else
            {
                m_spapi.Add();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "添加成功", true);
            }
        }
コード例 #6
0
        /// <summary>
        /// 添加/编辑
        /// </summary>
        /// <param name="isEdit"></param>
        /// <param name="p_SiteUpLoad"></param>
        public void AESiteUpLoad(DealMvc.ControllerBase _CB, bool isEdit, ref Model.SiteUpLoad p_sul)
        {
            Model.SiteUpLoad m_sul = null;

            if (isEdit)
            {
                m_sul = DealMvc.Model.SiteUpLoad.GetModel(p_sul.id ?? 0);
            }
            else
            {
                m_sul = new Model.SiteUpLoad();
            }

            if (!isEdit)
            {
                if (Orm.EntityCore <Model.SiteUpLoad> .Exists("=id", new object[] { p_sul.id }))
                {
                    throw new ExceptionEx.MyExceptionMessageBox("已经存在此记录");
                }
            }
            else
            {
            }

            //m_sul.UploadFolder = p_sul.UploadFolder;        //UploadFolder[Type=string] - 上传文件夹
            m_sul.UploadExtension = p_sul.UploadExtension;        //UploadExtension[Type=string] - 文件后缀名
            m_sul.UploadSize      = p_sul.UploadSize ?? 0;        //UploadSize[Type=double?] - 文件大小
            m_sul.DefaultImg      = p_sul.DefaultImg;             //DefaultImg[Type=string] - 默认图片
            m_sul.UpTime          = p_sul.UpTime ?? DateTime.Now; //UpTime[Type=DateTime?] - 更新时间


            p_sul = m_sul;
            if (isEdit)
            {
                m_sul.Update();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "修改网站上传信息成功");
                _CB.IsSaveForm = true;
            }
            else
            {
                m_sul.Add();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "添加成功", true);
            }
        }
コード例 #7
0
        /// <summary>
        /// 添加/编辑
        /// </summary>
        /// <param name="isEdit"></param>
        /// <param name="p_SiteMessage"></param>
        public void AESiteMessage(DealMvc.ControllerBase _CB, bool isEdit, ref Model.SiteMessage p_sm)
        {
            Model.SiteMessage m_sm = null;

            if (isEdit)
            {
                m_sm = DealMvc.Model.SiteMessage.GetModel(p_sm.id ?? 0);
            }
            else
            {
                m_sm = new Model.SiteMessage();
            }

            if (!isEdit)
            {
                if (Orm.EntityCore <Model.SiteMessage> .Exists("=id", new object[] { p_sm.id }))
                {
                    throw new ExceptionEx.MyExceptionMessageBox("已经存在此记录");
                }
            }
            else
            {
            }

            m_sm.UserName = p_sm.UserName;               //UserName[Type=string] - 账号
            m_sm.UserPwd  = p_sm.UserPwd;                //UserPwd[Type=string] - 密码
            m_sm.UpTime   = p_sm.UpTime ?? DateTime.Now; //UpTime[Type=DateTime?] - 更新时间


            p_sm = m_sm;
            if (isEdit)
            {
                m_sm.Update();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "修改网站短信信息成功");
                _CB.IsSaveForm = true;
            }
            else
            {
                m_sm.Add();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "添加成功", true);
            }
        }
コード例 #8
0
        /// <summary>
        /// 添加/编辑
        /// </summary>
        /// <param name="isEdit"></param>
        /// <param name="p_HelpCenterInfo"></param>
        public void AEHelpCenterInfo(DealMvc.ControllerBase _CB, bool isEdit, ref Model.HelpCenterInfo p_hci)
        {
            Model.HelpCenterInfo m_hci = null;

            if (isEdit)
            {
                m_hci = DealMvc.Model.HelpCenterInfo.GetModel(p_hci.id ?? 0);
            }
            else
            {
                m_hci = new Model.HelpCenterInfo();
            }

            if (!isEdit)
            {
                if (Orm.EntityCore <Model.HelpCenterInfo> .Exists("=id", new object[] { p_hci.id }))
                {
                    throw new ExceptionEx.MyExceptionMessageBox("已经存在此记录");
                }
                //if (Orm.EntityCore<Model.HelpCenterInfo>.Exists("=HCI_LittleTitle", new object[] { p_hci.HCI_LittleTitle }))
                //{
                //    throw new ExceptionEx.MyExceptionMessageBox("已经存在此记录");
                //}
                if (Orm.EntityCore <Model.HelpCenterInfo> .Exists("=HCI_Title", new object[] { p_hci.HCI_Title }))
                {
                    throw new ExceptionEx.MyExceptionMessageBox("已经存在此记录");
                }
            }
            else
            {
            }


            m_hci.HelpCateID1     = p_hci.HelpCateID1 ?? 0; //HelpCateID1[Type= int?] - 帮助中心一级分类
            m_hci.HelpCateID2     = p_hci.HelpCateID2 ?? 0; //HelpCateID2[Type= int?] - 帮助中心二级分类
            m_hci.HCI_LittleTitle = p_hci.HCI_LittleTitle;  //HCI_LittleTitle[Type=string] - 小标题
            m_hci.HCI_Title       = p_hci.HCI_Title;        //HCI_Title[Type=string] - 详细标题
            m_hci.HCI_Content     = p_hci.HCI_Content;      //HCI_Content[Type=string] - 信息内容
            m_hci.HCI_IsDefault   = p_hci.HCI_IsDefault;    //HCI_IsDefault[Type=bool] - 是否默认展示
            if (p_hci.HCI_IsDefault == true)
            {
                List <Model.HelpCenterInfo> collection = Model.HelpCenterInfo.GetModelList(t => t.HCI_IsDefault == true).List;
                foreach (Model.HelpCenterInfo item in collection)
                {
                    item.HCI_IsDefault = false;
                    item.Update();
                }
            }
            m_hci.HCI_Sort = p_hci.HCI_Sort ?? 0;            //HCI_Sort[Type= int?] - 排序
            m_hci.HCI_Time = p_hci.HCI_Time ?? DateTime.Now; //HCI_Time[Type=DateTime?] - 操作时间
            m_hci.A        = p_hci.A;                        //A[Type=string] - 扩展A字段
            m_hci.B        = p_hci.B;                        //B[Type=string] - 扩展B字段
            m_hci.C        = p_hci.C;                        //C[Type=string] - 扩展C字段
            m_hci.D        = p_hci.D;                        //D[Type=string] - 扩展D字段
            m_hci.E        = p_hci.E;                        //E[Type=string] - 扩展E字段


            p_hci = m_hci;
            if (isEdit)
            {
                m_hci.Update();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "编辑成功");
                _CB.IsSaveForm = true;
            }
            else
            {
                m_hci.Add();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "添加成功", true);
            }
        }
コード例 #9
0
        /// <summary>
        /// 添加/编辑
        /// </summary>
        /// <param name="isEdit"></param>
        /// <param name="p_HelpCenterCate"></param>
        public void AEHelpCenterCate(DealMvc.ControllerBase _CB, bool isEdit, ref Model.HelpCenterCate p_hcc)
        {
            Model.HelpCenterCate m_hcc = null;

            if (isEdit)
            {
                m_hcc = DealMvc.Model.HelpCenterCate.GetModel(p_hcc.id ?? 0);
            }
            else
            {
                m_hcc = new Model.HelpCenterCate();
            }

            if (!isEdit)
            {
                if (Orm.EntityCore <Model.HelpCenterCate> .Exists("=id", new object[] { p_hcc.id }))
                {
                    throw new ExceptionEx.MyExceptionMessageBox("已经存在此记录");
                }
                if (Orm.EntityCore <Model.HelpCenterCate> .Exists("=HCC_Name", new object[] { p_hcc.HCC_Name }))
                {
                    throw new ExceptionEx.MyExceptionMessageBox("已经存在此记录");
                }
                m_hcc.HCC_ParentID = p_hcc.HCC_ParentID ?? 0;        //IndustryCate_TopID[Type=int?] - 上级分类
                #region 判断级别

                int NewParentID = p_hcc.HCC_ParentID.ToInt32();
                if (NewParentID <= 0)
                {
                    m_hcc.HCC_Level = 1;//IC_Level[Type=int?] - 等级
                }
                else
                {
                    Model.HelpCenterCate ParentMenu = Model.HelpCenterCate.GetModel(NewParentID);
                    if (ParentMenu == null || ParentMenu.IsNull)
                    {
                        throw new ExceptionEx.MyExceptionMessageBox("您选择的上级分类不存在!");
                    }

                    m_hcc.HCC_Level = ParentMenu.HCC_Level + 1;//IC_Level[Type=int?] - 等级
                    if (m_hcc.HCC_Level > 4)
                    {
                        throw new ExceptionEx.MyExceptionMessageBox("您只能添加【两级】菜单!");
                    }
                }
                #endregion
            }
            else
            {
            }

            m_hcc.HCC_Name = p_hcc.HCC_Name;                 //HCC_Name[Type=string] - 分类名称
            m_hcc.HCC_Sort = p_hcc.HCC_Sort ?? 0;            //HCC_Sort[Type= int?] - 排序
            m_hcc.HCC_Time = p_hcc.HCC_Time ?? DateTime.Now; //HCC_Time[Type=DateTime?] - 操作时间
            m_hcc.A        = p_hcc.A;                        //A[Type=string] - 扩展A字段
            m_hcc.B        = p_hcc.B;                        //B[Type=string] - 扩展B字段
            m_hcc.C        = p_hcc.C;                        //C[Type=string] - 扩展C字段
            m_hcc.D        = p_hcc.D;                        //D[Type=string] - 扩展D字段
            m_hcc.E        = p_hcc.E;                        //E[Type=string] - 扩展E字段


            p_hcc = m_hcc;
            if (isEdit)
            {
                m_hcc.Update();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "编辑成功");
                _CB.IsSaveForm = true;
            }
            else
            {
                m_hcc.Add();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "添加成功", true);
            }
        }
コード例 #10
0
        /// <summary>
        /// 添加/编辑
        /// </summary>
        /// <param name="isEdit"></param>
        /// <param name="p_SiteInfo"></param>
        public void AESiteInfo(DealMvc.ControllerBase _CB, bool isEdit, ref Model.SiteInfo p_si)
        {
            Model.SiteInfo m_si = null;

            if (isEdit)
            {
                m_si = DealMvc.Model.SiteInfo.GetModel(p_si.id ?? 0);
            }
            else
            {
                m_si = new Model.SiteInfo();
            }

            if (!isEdit)
            {
                if (Orm.EntityCore <Model.SiteInfo> .Exists("=id", new object[] { p_si.id }))
                {
                    throw new ExceptionEx.MyExceptionMessageBox("已经存在此记录");
                }
            }
            else
            {
            }
            m_si.WebName           = p_si.WebName;                //WebName[Type=string] - 网站名称
            m_si.WebAddress        = p_si.WebAddress;             //WebAddress[Type=string] - 网站域名
            m_si.WebTitle          = p_si.WebTitle;               //WebTitle[Type=string] - 网站标题
            m_si.WebKeyword        = p_si.WebKeyword;             //WebKeyword[Type=string] - 网站关键词
            m_si.WebDelimiter      = p_si.WebDelimiter;           //WebDelimiter[Type=string] - 网站标题分隔符
            m_si.WebCopyright      = p_si.WebCopyright;           //WebCopyright[Type=string] - 版权
            m_si.WebStatus         = p_si.WebStatus;              //WebStatus[Type=bool] - 网站状态(开启网站、关闭网站)
            m_si.WebCloseRemark    = p_si.WebCloseRemark;         //WebCloseRemark[Type=string] - 关闭网站原因
            m_si.WebCompetence     = p_si.WebCompetence;          //WebCompetence[Type=bool] - 网站后台权限
            m_si.IsOpenDataCache   = p_si.IsOpenDataCache;        //IsOpenDataCache[Type=bool] - 数据缓存  是否启用
            m_si.DataCacheTime     = p_si.DataCacheTime ?? 0;     //DataCacheTime[Type= int?] - 缓存时间(秒)
            m_si.ProportionMention = p_si.ProportionMention ?? 0; //ProportionMention[Type=double?] - 平台提拥比例
            m_si.WebBottomInfo     = p_si.WebBottomInfo;          //WebBottomInfo[Type=string] - 网站底部信息

            //WebFriendLinks[Type=string] - 友情链接
            Common.Globals.UpFileResult _UpFileResult = Common.Globals.Upload("WebFriendLinks");
            if (_UpFileResult.returnerror.Count == 0)
            {
                if (_UpFileResult.returnfilename.Count > 0)
                {
                    m_si.WebFriendLinks = _UpFileResult.returnfilename[0].ToString();
                }
            }
            else
            {
                throw new ExceptionEx.MyExceptionMessageBox(string.Join("<br/>", (string[])_UpFileResult.returnerror.ToArray(typeof(string))));
            }


            m_si.WebBottomContact = p_si.WebBottomContact;  //WebBottomContact[Type=string] - 底部联系方式
            m_si.WebBottomHours   = p_si.WebBottomHours;    //WebBottomHours[Type=string] - 营业时间
            m_si.WebRegService    = p_si.WebRegService;     //WebRegService[Type=string] - 注册条款
            //m_si.WebWeiXinImage = p_si.WebWeiXinImage;        //WebWeiXinImage[Type=string] - 微信二维码图片
            Common.Globals.UpFileResult _UpFileResultWebWeiXinImage = Common.Globals.Upload("WebWeiXinImage");
            if (_UpFileResultWebWeiXinImage.returnerror.Count == 0)
            {
                if (_UpFileResultWebWeiXinImage.returnfilename.Count > 0)
                {
                    m_si.WebWeiXinImage = _UpFileResultWebWeiXinImage.returnfilename[0].ToString();
                }
            }
            else
            {
                throw new ExceptionEx.MyExceptionMessageBox(string.Join("<br/>", (string[])_UpFileResultWebWeiXinImage.returnerror.ToArray(typeof(string))));
            }

            //m_si.WebWeiBoImage = p_si.WebWeiBoImage;        //WebWeiBoImage[Type=string] - 微博二维码图片
            Common.Globals.UpFileResult _UpFileResultWebWeiBoImage = Common.Globals.Upload("WebWeiBoImage");
            if (_UpFileResultWebWeiBoImage.returnerror.Count == 0)
            {
                if (_UpFileResultWebWeiBoImage.returnfilename.Count > 0)
                {
                    m_si.WebWeiBoImage = _UpFileResultWebWeiBoImage.returnfilename[0].ToString();
                }
            }
            else
            {
                throw new ExceptionEx.MyExceptionMessageBox(string.Join("<br/>", (string[])_UpFileResultWebWeiBoImage.returnerror.ToArray(typeof(string))));
            }
            m_si.WebContactPhone = p_si.WebContactPhone; //WebContactPhone[Type=string] - 联系电话
            m_si.WebContactEmail = p_si.WebContactEmail; //WebContactEmail[Type=string] - 联系邮箱
            m_si.KeFuQQ          = p_si.KeFuQQ;          //KeFuQQ[Type=string] - 客服QQ
            m_si.BeforeSalePhone = p_si.BeforeSalePhone; //BeforeSalePhone[Type=string] - 售前电话
            m_si.AfterSalePhone  = p_si.AfterSalePhone;  //AfterSalePhone[Type=string] - 售后电话

            p_si = m_si;
            if (isEdit)
            {
                m_si.Update();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "修改网站基本信息成功");
                _CB.IsSaveForm = true;
            }
            else
            {
                m_si.Add();
                ExceptionEx.MyExceptionLog.AlertMessage(_CB, "添加成功", true);
            }
        }