Esempio n. 1
0
        public EyouSoft.Model.ResultStructure.UserResultInfo CreatCompany(string CompanyName,
                                                                          EyouSoft.Model.CompanyStructure.CompanyType[] CompanyTypes, string License, string CompanyBrand, int ProvinceId, int CityId,
                                                                          string AdminUser, string AdminPWD, string AdminName, string AdminTel, string AdminMobile, string Email)
        {
            if (!soapHeader.IsSafeCall)
            {
                throw new Exception("对不起,您没有权限调用此服务!");
            }

            EyouSoft.Model.ResultStructure.UserResultInfo      Result = new EyouSoft.Model.ResultStructure.UserResultInfo();
            EyouSoft.Model.CompanyStructure.CompanyArchiveInfo model  = new EyouSoft.Model.CompanyStructure.CompanyArchiveInfo();

            /*公司信息*/
            model.CompanyName  = Utils.InputText(CompanyName);
            model.ProvinceId   = ProvinceId;
            model.CityId       = CityId;
            model.CompanyBrand = Utils.InputText(CompanyBrand);
            model.License      = Utils.InputText(License);


            /*用户信息*/
            EyouSoft.Model.CompanyStructure.UserAccount UserModel = new EyouSoft.Model.CompanyStructure.UserAccount();
            UserModel.UserName = Utils.InputText(AdminUser);
            UserModel.PassWordInfo.NoEncryptPassword = Utils.InputText(AdminPWD);
            model.AdminAccount = UserModel;

            /* 公司联系人信息 */
            EyouSoft.Model.CompanyStructure.ContactPersonInfo ContactModel = new EyouSoft.Model.CompanyStructure.ContactPersonInfo();
            ContactModel.ContactName = Utils.InputText(AdminName);
            ContactModel.Tel         = Utils.InputText(AdminTel);
            ContactModel.Mobile      = Utils.InputText(AdminMobile);
            ContactModel.Email       = Utils.InputText(Email);
            model.ContactInfo        = ContactModel;

            /* 公司身份 */
            EyouSoft.Model.CompanyStructure.CompanyRole RoleMode = new EyouSoft.Model.CompanyStructure.CompanyRole();
            if (CompanyTypes != null && CompanyTypes.Length > 0)
            {
                foreach (EyouSoft.Model.CompanyStructure.CompanyType tmp in CompanyTypes)
                {
                    RoleMode.SetRole(tmp);
                }
            }
            model.CompanyRole = RoleMode;

            Result       = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().Add(model, string.Empty);
            model        = null;
            UserModel    = null;
            ContactModel = null;
            RoleMode     = null;

            return(Result);
        }
Esempio n. 2
0
        /// <summary>
        /// 注册新用户
        /// </summary>
        protected int RegisterCompany(string companyId)
        {
            int AddisTrue = 0;

            if (EyouSoft.Cache.Facade.EyouSoftCache.GetCache("REG_" + Request.UserHostAddress) != null)
            {
                AddisTrue = 5; //注册太频繁
                return(AddisTrue);
            }



            string CompanyName   = Utils.InputText(Request.Form["txtCompanyName"]);   //公司名
            string UserName      = Utils.InputText(Request.Form["txtUserName"]);      //用户名
            string PassWord      = Utils.InputText(Request.Form["txtFristPassWord"]); //密码
            string LicenseNumber = Utils.InputText(Request.Form["txtLicenseNumber"]); //许可证号
            string BrandName     = Utils.InputText(Request.Form["txtBrandName"]);     //品牌名称
            //int ProvinceId = 0;//省份
            //if (Request.Form["ctl00$Main$ProvinceAndCityList1$ddl_ProvinceList"] != null)
            //    ProvinceId = Convert.ToInt32(Request.Form["ctl00$Main$ProvinceAndCityList1$ddl_ProvinceList"]);
            //else if (Request.Form["ProvinceAndCityList1$ddl_ProvinceList"] != null)
            //    ProvinceId = Convert.ToInt32(Request.Form["ProvinceAndCityList1$ddl_ProvinceList"]);

            //int CityId = 0;//城市
            //if (Request.Form["ctl00$Main$ProvinceAndCityList1$ddl_CityList"] != null)
            //    CityId = Convert.ToInt32(Request.Form["ctl00$Main$ProvinceAndCityList1$ddl_CityList"]);
            //else if (Request.Form["ProvinceAndCityList1$ddl_CityList"] != null)
            //    CityId = Convert.ToInt32(Request.Form["ProvinceAndCityList1$ddl_CityList"]); //城市

            //int CountyId = 0;//地区(县)
            //if (Request.Form["ctl00$Main$ProvinceAndCityList1$ddl_CountyList"] != null)
            //    CountyId = Convert.ToInt32(Request.Form["ctl00$Main$ProvinceAndCityList1$ddl_CountyList"]);
            //else if (Request.Form["ProvinceAndCityList1$ddl_CityList"] != null)
            //    CountyId = Convert.ToInt32(Request.Form["ProvinceAndCityList1$ddl_CountyList"]); //城市
            int ProvinceId = 0;//省份

            if (Utils.GetFormValue(ddl_ProvinceList.UniqueID) != null)
            {
                ProvinceId = Convert.ToInt32(Utils.GetFormValue(ddl_ProvinceList.UniqueID));
            }

            int CityId = 0;//城市

            if (Utils.GetFormValue(ddl_CityList.UniqueID) != null)
            {
                CityId = Convert.ToInt32(Utils.GetFormValue(ddl_CityList.UniqueID));
            }
            int CountyId = 0;//地区(县)

            if (Utils.GetFormValue(ddl_CountyList.UniqueID) != null)
            {
                CountyId = Convert.ToInt32(Utils.GetFormValue(ddl_CountyList.UniqueID));
            }
            string OfficeAddress = Utils.InputText(Request.Form["txtOfficeAddress"]);       //办公地点
            //string CommendCompany = Utils.InputText(Request.Form["txtCommendCompany"]); 引荐单位
            string CompanyType       = Utils.InputText(Request.QueryString["companytype"]); //公司类型
            string ContactName       = Utils.InputText(Request.Form["txtContactName"]);
            string ContactTel        = Utils.InputText(Request.Form["txtContactTel"]);
            string ContactMobile     = Utils.InputText(Request.Form["txtContactMobile"]);
            string ContactFax        = Utils.InputText(Request.Form["txtContactFax"]);
            string ContactEmail      = Utils.InputText(Request.Form["txtContactEmail"]);
            string ContactQQ         = Utils.GetFormValue("qq", 100); //QQ,注意可能多个用半角逗号分割的
            string ContactMSN        = Utils.InputText(Request.Form["txtMsn"]);
            string CompanyInfo       = Utils.InputText(Request.Form["txtCompanyInfo"]);
            string CompanyMainpro    = Utils.InputText(Request.Form["txtMainProduct"]);
            string CompanySimpleName = Utils.InputText(Request.Form["txtCompanySimpleName"]);

            /*公司信息*/
            EyouSoft.Model.CompanyStructure.CompanyArchiveInfo model = new EyouSoft.Model.CompanyStructure.CompanyArchiveInfo();
            /*用户信息*/
            EyouSoft.Model.CompanyStructure.UserAccount UserModel = new EyouSoft.Model.CompanyStructure.UserAccount();
            /* 公司联系人信息 */
            EyouSoft.Model.CompanyStructure.ContactPersonInfo ContactModel = new EyouSoft.Model.CompanyStructure.ContactPersonInfo();
            string OtherSaleCity = "";

            if (string.IsNullOrEmpty(CompanyType))
            {
                AddisTrue = 0;
            }
            else
            {
                if (string.IsNullOrEmpty(companyId)) //随便逛逛申请,修改
                {
                    UserModel.UserName = UserName;   /*用户信息*/
                }
                UserModel.PassWordInfo.NoEncryptPassword = PassWord;
                ContactModel.ContactName = ContactName;
                ContactModel.Mobile      = ContactMobile;
                ContactModel.Email       = ContactEmail;
                ContactModel.QQ          = ContactQQ;
                ContactModel.Fax         = ContactFax;
                ContactModel.MSN         = ContactMSN;
                ContactModel.Tel         = ContactTel;
                if (CompanyType != "-1")  //游客
                {
                    #region 非随便看看用户
                    /*公司信息*/
                    model.CompanyName    = CompanyName;
                    model.ProvinceId     = ProvinceId;
                    model.CityId         = CityId;
                    model.CountyId       = CountyId;
                    model.CompanyAddress = OfficeAddress;
                    model.CompanyBrand   = BrandName;
                    model.License        = LicenseNumber;
                    model.Introduction   = CompanySimpleName;
                    model.Remark         = CompanyInfo;
                    model.Scale          = (EyouSoft.Model.CompanyStructure.CompanyScale)Utils.GetInt(this.sltCompanySize.Value);
                    model.ProvinceId     = Utils.GetInt(Utils.GetFormValue(this.ddl_ProvinceList.UniqueID));
                    model.CityId         = Utils.GetInt(Utils.GetFormValue(this.ddl_CityList.UniqueID));
                    model.CountyId       = Utils.GetInt(Utils.GetFormValue(this.ddl_CountyList.UniqueID));
                    model.CompanyBrand   = BrandName;
                    //model.Qualification
                    //model.AdminAccount = UserModel;

                    ContactModel.Tel = ContactTel;
                    ContactModel.Fax = ContactFax;
                    //model.ContactInfo = ContactModel;
                    // model.CommendPeople = CommendCompany;
                    //旅行社资质
                    string[] lxszz = Utils.Split(Utils.GetFormValue("chxzz"), ",");
                    if (lxszz != null && lxszz.Length > 0)
                    {
                        List <EyouSoft.Model.CompanyStructure.CompanyQualification> zizi = new List <EyouSoft.Model.CompanyStructure.CompanyQualification>();
                        for (int i = 0; i < lxszz.Length; i++)
                        {
                            if (lxszz[i] == "1")
                            {
                                zizi.Add(EyouSoft.Model.CompanyStructure.CompanyQualification.出境旅游);
                            }
                            if (lxszz[i] == "2")
                            {
                                zizi.Add(EyouSoft.Model.CompanyStructure.CompanyQualification.入境旅游);
                            }
                            if (lxszz[i] == "3")
                            {
                                zizi.Add(EyouSoft.Model.CompanyStructure.CompanyQualification.台湾旅游);
                            }
                        }
                        model.Qualification = zizi;
                    }
                    /* 公司身份 */
                    EyouSoft.Model.CompanyStructure.CompanyRole RoleMode = new EyouSoft.Model.CompanyStructure.CompanyRole();
                    EyouSoft.Model.CompanyStructure.CompanyType TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.全部;

                    if (CompanyType == "0") //线路供应商(专线,地接)
                    {
                        string[] strType = Utils.Split(Utils.GetFormValue("hdfZXandDj"), ",");
                        for (int i = 0; i < strType.Length; i++)
                        {
                            //设置经营线路区域
                            string[] strAreaList = Utils.Split(Utils.GetFormValue("checkbox_Area"), ",");
                            if (strAreaList != null)
                            {
                                List <EyouSoft.Model.SystemStructure.AreaBase> AreaList = new List <EyouSoft.Model.SystemStructure.AreaBase>();
                                for (int j = 0; j < strAreaList.Length; j++)
                                {
                                    EyouSoft.Model.SystemStructure.AreaBase item = new EyouSoft.Model.SystemStructure.AreaBase();
                                    item.AreaId = Convert.ToInt32(strAreaList[j]);
                                    AreaList.Add(item);
                                    item = null;
                                }
                                model.Area = AreaList;
                                AreaList   = null;
                            }
                            if (strType[i] == "1")
                            {
                                TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.专线;
                                string[] strSalelist = Request.Form.GetValues("ckSellCity");
                                if (strSalelist != null)
                                {
                                    //设置销售城市
                                    List <EyouSoft.Model.SystemStructure.CityBase> SaleCity = new List <EyouSoft.Model.SystemStructure.CityBase>();
                                    for (int j = 0; j < strSalelist.Length; j++)
                                    {
                                        EyouSoft.Model.SystemStructure.CityBase item = new EyouSoft.Model.SystemStructure.CityBase();
                                        item.CityId = Convert.ToInt32(strSalelist[j]);
                                        SaleCity.Add(item);
                                        item = null;
                                    }
                                    model.SaleCity = SaleCity;
                                    SaleCity       = null;
                                }
                                OtherSaleCity = Utils.InputText(Request.Form["inputOtherSaleCity"]);
                            }
                            if (strType[i] == "3")
                            {
                                TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.地接;
                            }
                            RoleMode.SetRole(TypeEmnu);
                            model.CompanyRole = RoleMode;
                        }
                    }
                    else
                    {
                        switch (CompanyType)
                        {
                        case "2":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.组团;
                            break;

                        case "4":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.景区;
                            break;

                        case "5":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.酒店;
                            break;

                        case "6":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.车队;
                            break;

                        case "7":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.旅游用品店;
                            break;

                        case "8":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.购物店;
                            break;

                        case "9":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.机票供应商;
                            //机票
                            ContactModel.QQ  = Utils.InputText(Request.Form["txtContactQQ"]);
                            ContactModel.MSN = Utils.InputText(Request.Form["txtContactMSN"]);
                            EyouSoft.Model.TicketStructure.TicketWholesalersInfo ticketinfo = new EyouSoft.Model.TicketStructure.TicketWholesalersInfo();
                            ticketinfo.ProxyLev      = Utils.InputText(Request.Form["txtDlNumber"]);
                            ticketinfo.WorkStartTime = Utils.InputText(Request.Form["WorkStartTime"]);     //上下班时间
                            ticketinfo.WorkEndTime   = Utils.InputText(Request.Form["WorkEndTime"]);
                            ticketinfo.OfficeNumber  = Utils.InputText(Request.Form["txtOffice"]);
                            if (!string.IsNullOrEmpty(companyId))     //随便逛逛申请,修改
                            {
                                ticketinfo.CompanyId = companyId;
                            }
                            model.TicketSupplierInfo = ticketinfo;
                            // model.License
                            break;

                        case "10":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.其他采购商;
                            break;

                        case "11":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.随便逛逛;
                            break;
                        }
                        RoleMode.SetRole(TypeEmnu);
                        model.CompanyRole = RoleMode;
                    }
                    #endregion
                }
                model.AdminAccount = UserModel;
                model.ContactInfo  = ContactModel;
                if (!string.IsNullOrEmpty(companyId)) //随便逛逛申请,修改
                {
                    model.ID  = companyId;
                    AddisTrue = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().ToCompany(model, OtherSaleCity) == true ? 1 : 0;
                }
                else    //注册添加
                {
                    EyouSoft.Model.ResultStructure.UserResultInfo Result = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().Add(model, OtherSaleCity);
                    switch (Result)
                    {
                    case EyouSoft.Model.ResultStructure.UserResultInfo.Succeed:
                        AddisTrue = 1;
                        EyouSoft.Cache.Facade.EyouSoftCache.Add("REG_" + Request.UserHostAddress, DateTime.Now, DateTime.Now.AddMinutes(5));
                        break;

                    case EyouSoft.Model.ResultStructure.UserResultInfo.ExistsEmail:
                        AddisTrue = 2;
                        break;

                    case EyouSoft.Model.ResultStructure.UserResultInfo.ExistsUserName:
                        AddisTrue = 3;
                        break;

                    case EyouSoft.Model.ResultStructure.UserResultInfo.Error:
                        AddisTrue = 0;
                        break;
                    }
                }
            }
            return(AddisTrue);
        }
Esempio n. 3
0
        /// <summary>
        /// 新增公司信息
        /// </summary>
        /// <param name="requestInfo"></param>
        /// <returns></returns>
        private EyouSoft.OpenRelation.Model.MResponseInfo CreateCompanyInfo(EyouSoft.OpenRelation.Model.MRequestInfo requestInfo)
        {
            EyouSoft.OpenRelation.Model.MResponseInfo responseInfo = new EyouSoft.OpenRelation.Model.MResponseInfo()
            {
                IsSuccess = true
            };

            EyouSoft.OpenRelation.Model.MCUInfo middleInfo = EyouSoft.OpenRelation.Utils.InvertJSON <EyouSoft.OpenRelation.Model.MCUInfo>(requestInfo.InstructionCode);
            EyouSoft.Model.CompanyStructure.CompanyArchiveInfo companyInfo = new EyouSoft.Model.CompanyStructure.CompanyArchiveInfo();
            EyouSoft.Model.CompanyStructure.UserAccount        userInfo    = new EyouSoft.Model.CompanyStructure.UserAccount();
            EyouSoft.Model.CompanyStructure.ContactPersonInfo  contactInfo = new EyouSoft.Model.CompanyStructure.ContactPersonInfo();
            EyouSoft.Model.CompanyStructure.CompanyRole        roleInfo    = new EyouSoft.Model.CompanyStructure.CompanyRole();

            //大平台邮箱不能为空 赋值空格
            if (string.IsNullOrEmpty(middleInfo.UserInfo.Email))
            {
                middleInfo.UserInfo.Email = " ";
            }
            if (string.IsNullOrEmpty(middleInfo.CompanyInfo.ContactEmail))
            {
                middleInfo.CompanyInfo.ContactEmail = " ";
            }

            int provinceId, cityId;

            this.GetProvinceAndCityId(middleInfo.CompanyInfo.ProvinceName, middleInfo.CompanyInfo.CityName, out provinceId, out cityId);

            companyInfo.CompanyName    = middleInfo.CompanyInfo.CompanyName;
            companyInfo.CompanyAddress = middleInfo.CompanyInfo.Address;
            companyInfo.ProvinceId     = provinceId;
            companyInfo.CityId         = cityId;

            userInfo.UserName     = middleInfo.UserInfo.UserName;
            userInfo.PassWordInfo = new EyouSoft.Model.CompanyStructure.PassWord(middleInfo.UserInfo.Password);

            contactInfo.ContactName = middleInfo.CompanyInfo.ContactName;
            contactInfo.Email       = middleInfo.CompanyInfo.ContactEmail;
            contactInfo.Fax         = middleInfo.CompanyInfo.ContactFax;
            contactInfo.Mobile      = middleInfo.CompanyInfo.ContactMobile;
            contactInfo.MSN         = middleInfo.CompanyInfo.ContactMSN;
            contactInfo.QQ          = middleInfo.CompanyInfo.ContactQQ;
            contactInfo.Tel         = middleInfo.CompanyInfo.ContactTelephone;
            contactInfo.ContactSex  = GetGender(middleInfo.CompanyInfo.ContactGender);

            if (middleInfo.CompanyInfo.PlatformCompanyType == EyouSoft.OpenRelation.Model.PlatformCompanyType.ZT)
            {
                roleInfo.SetRole(EyouSoft.Model.CompanyStructure.CompanyType.组团);
            }
            else if (middleInfo.CompanyInfo.PlatformCompanyType == EyouSoft.OpenRelation.Model.PlatformCompanyType.ZX)
            {
                roleInfo.SetRole(EyouSoft.Model.CompanyStructure.CompanyType.专线);
            }

            companyInfo.AdminAccount = userInfo;
            companyInfo.CompanyRole  = roleInfo;
            companyInfo.ContactInfo  = contactInfo;

            try
            {
                EyouSoft.Model.ResultStructure.UserResultInfo resultInfo = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().Add(companyInfo, string.Empty);
                if (resultInfo == EyouSoft.Model.ResultStructure.UserResultInfo.Succeed)
                {
                    responseInfo.IsSuccess = true;
                    responseInfo.Desc      = "创建公司成功!";
                    EyouSoft.OpenRelation.Model.MRCreateUserInfo rInfo = new EyouSoft.OpenRelation.Model.MRCreateUserInfo()
                    {
                        PlatformCompanyId = companyInfo.ID,
                        PlatformUserId    = companyInfo.AdminAccount.ID
                    };
                    responseInfo.InstructionCode = EyouSoft.OpenRelation.Utils.ConvertJSON <EyouSoft.OpenRelation.Model.MRCreateUserInfo>(rInfo);

                    EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().PassRegister(companyInfo.ID);
                }
                else
                {
                    responseInfo.IsSuccess = false;
                    responseInfo.Desc      = "创建公司失败,业务逻辑层返回失败信息!";
                }
            }
            catch (Exception e)
            {
                responseInfo.IsSuccess = false;
                responseInfo.Desc      = "创建公司失败,捕获到异常!";
                responseInfo.ErrorCode = e.Message + e.StackTrace;
            }

            return(responseInfo);
        }
Esempio n. 4
0
        protected string FormSubmit()
        {
            //获得表单值
            //公司名称
            string companyName = Utils.GetFormValue("txtCompanyName");
            //用户名
            string userName = Utils.GetFormValue("u");
            //用户密码
            string userPwd = Utils.GetFormValue("p");
            //确认密码
            string userPwdTwo = Utils.GetFormValue("txtPwdTwo");
            //真实姓名
            string trueName = Utils.GetFormValue("txtTrueName");
            //手机号码
            string userMobile = Utils.GetFormValue("txtPhone");
            //邮箱
            string userEmail = Utils.GetFormValue("txtEmail");
            //用户QQ
            string userQQ = Utils.GetFormValue("txtQQ");
            //省份ID
            int provinceID = Utils.GetInt(Utils.GetFormValue("ProvinceAndCityList1$ddl_ProvinceList"));
            //城市ID
            int cityID = Utils.GetInt(Utils.GetFormValue("ProvinceAndCityList1$ddl_CityList"));

            #region 验证
            if (companyName.Trim() == "")
            {
                return("用户名不能为空");
            }

            if (userPwd.Trim() == "")
            {
                return("密码不能为空");
            }
            if (userPwd.Trim() != userPwdTwo.Trim())
            {
                return("两次密码不一致");
            }
            if (trueName.Trim() == "")
            {
                return("真实姓名不能为空");
            }
            if (userMobile.Trim() == "")
            {
                return("手机号码不能为空");
            }
            if (userEmail.Trim() == "")
            {
                return("不能为空");
            }

            if (userQQ.Trim() == "")
            {
                return("QQ不能为空");
            }
            if (provinceID <= 0)
            {
                return("请选择一个省份");
            }
            if (cityID <= 0)
            {
                return("请选择一个城市");
            }
            #endregion


            /*公司信息*/
            EyouSoft.Model.CompanyStructure.CompanyArchiveInfo model = new EyouSoft.Model.CompanyStructure.CompanyArchiveInfo();
            /*用户信息*/
            EyouSoft.Model.CompanyStructure.UserAccount UserModel = new EyouSoft.Model.CompanyStructure.UserAccount();
            /* 公司联系人信息 */
            EyouSoft.Model.CompanyStructure.ContactPersonInfo ContactModel = new EyouSoft.Model.CompanyStructure.ContactPersonInfo();
            string OtherSaleCity = "";



            UserModel.UserName = userName; /*用户信息*/

            UserModel.PassWordInfo.NoEncryptPassword = userPwd;
            ContactModel.ContactName = trueName;
            ContactModel.Mobile      = userMobile;
            ContactModel.Email       = userEmail;

            /*公司信息*/
            model.CompanyName = companyName;
            model.ProvinceId  = provinceID;
            model.CityId      = CityId;

            /* 公司身份 */
            EyouSoft.Model.CompanyStructure.CompanyRole RoleMode = new EyouSoft.Model.CompanyStructure.CompanyRole();
            EyouSoft.Model.CompanyStructure.CompanyType TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.组团;


            RoleMode.SetRole(TypeEmnu);
            model.CompanyRole = RoleMode;


            model.AdminAccount = UserModel;
            model.ContactInfo  = ContactModel;


            EyouSoft.Model.ResultStructure.UserResultInfo Result = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().Add(model, OtherSaleCity);

            if (Result == EyouSoft.Model.ResultStructure.UserResultInfo.Succeed)
            {
                return("OK");
            }
            else
            {
                return("Error");
            }
        }