コード例 #1
0
 private void SetUStoreInfo()
 {
     ustore               = new UnauditedStoreInfoModel();
     ustore.PhotoPath     = photo;
     ustore.StoreId       = sid;
     ustore.Number        = number;
     ustore.StoreName     = sname;
     ustore.StoreAddress  = address;
     ustore.PostalCode    = pcode;
     ustore.HomeTele      = homeTel;
     ustore.OfficeTele    = officetel;
     ustore.MobileTele    = mobiletel;
     ustore.FaxTele       = faxtel;
     ustore.Bank          = b;
     ustore.BankCard      = bcard;
     ustore.Email         = e;
     ustore.NetAddress    = naddress;
     ustore.Remark        = r;
     ustore.Currency      = Convert.ToInt32(CurrencyCode);
     ustore.StoreLevelInt = sint;
     ustore.OperateNum    = Session["Company"].ToString();
     try
     {
         ustore.FareArea = Convert.ToDecimal(farea);
     }
     catch (Exception)
     {
         BLL.CommonClass.Transforms.JSAlert(GetTran("000279", "输入的格式不对"));
         return;
     }
     ustore.FareBreed = fbreed;
     try
     {
         if (stouzi.ToString().Length > 0)
         {
             ustore.TotalinvestMoney = Convert.ToDecimal(stouzi);
         }
         else
         {
             ustore.TotalaccountMoney = 0;
         }
     }
     catch (Exception)
     {
         BLL.CommonClass.Transforms.JSAlert(GetTran("000279", "输入的格式不对"));
         return;
     }
     ustore.Direct    = DisposeString.DisString(txtDirect.Text);
     ustore.Name      = name;
     ustore.ExpectNum = CommonDataBLL.getMaxqishu();
     ustore.LoginPass = password;
     ustore.Language  = Convert.ToInt32(ddlLanaguage.SelectedItem.Value);
     ustore.OperateIp = HttpContext.Current.Request.UserHostAddress;
     ustore.SCPCCode  = scpp;
 }
コード例 #2
0
ファイル: UnauditedStoreInfoDAL.cs プロジェクト: 892182825/SP
        /// <summary>
        /// 添加未注册的店铺
        /// </summary>
        /// <param name="store"></param>
        /// <returns></returns>
        public bool AddUnauditedStoreInfo(UnauditedStoreInfoModel store)
        {
            SqlParameter[] param = new SqlParameter[] {
                new SqlParameter("@AccreditExpectNum", store.AccreditExpectNum),
                new SqlParameter("@AdvPass", store.AdvPass),
                new SqlParameter("@Answer", store.Answer),
                new SqlParameter("@Bank", store.Bank),
                new SqlParameter("@BankCard", store.BankCard),
                new SqlParameter("@City", store.City),
                new SqlParameter("@Country", store.Country),
                new SqlParameter("@Currency", store.Currency),
                new SqlParameter("@DCountry", store.DCountry),
                new SqlParameter("@DianCity", store.DianCity),
                new SqlParameter("@Email", store.Email),
                new SqlParameter("@ExpectNum", store.ExpectNum),
                new SqlParameter("@FareArea", store.FareArea),
                new SqlParameter("@FareBreed", store.FareBreed),
                new SqlParameter("@FaxTele", store.FaxTele),
                new SqlParameter("@HomeTele", store.HomeTele),
                //new SqlParameter("@Level",store.Level),
                //new SqlParameter("@Level1",store.Level1),
                new SqlParameter("@Language", store.Language),
                new SqlParameter("@LoginPass", store.LoginPass),
                new SqlParameter("@Name", store.Name),
                new SqlParameter("@NetAddress", store.NetAddress),
                new SqlParameter("@Number", store.Number),
                //new SqlParameter("@OffendTimes",store.OffendTimes),
                new SqlParameter("@OfficeTele", store.OfficeTele),
                new SqlParameter("@OperateIp", store.OperateIp),
                new SqlParameter("@OperateNum", store.OperateNum),
                // new SqlParameter("@PermissionMan",store.PermissionMan),
                new SqlParameter("@PhotoH", store.PhotoH),
                new SqlParameter("@PhotoPath", store.PhotoPath),
                new SqlParameter("@PhotoW", store.PhotoW),
                new SqlParameter("@PostalCode", store.PostalCode),
                new SqlParameter("@Province", store.Province),
                new SqlParameter("@Question", store.Question),
                new SqlParameter("@Recommended", store.Direct),
                new SqlParameter("@RegisterDate", store.RegisterDate),
                //new SqlParameter("@Remark",store.Remark),
                //new SqlParameter("@StorageScalar",store.StorageScalar),
                new SqlParameter("@StoreAddress", store.StoreAddress),
                new SqlParameter("@StoreId", store.StoreId),
                new SqlParameter("@StoreLevelInt", store.StoreLevelInt),
                new SqlParameter("@StoreLevelStr", store.StoreLevelStr),
                new SqlParameter("@StoreName", store.StoreName),
                new SqlParameter("@TotalaccountMoney", store.TotalaccountMoney),
                // new SqlParameter("@TotalchangeMoney",store.TotalchangeMoney),
                //  new SqlParameter("@Totalchangepv",store.Totalchangepv),
                // new SqlParameter("@TotalcomityMoney",store.TotalcomityMoney),
                // new SqlParameter("@TotalcomityPv",store.TotalcomityPv),
                //new SqlParameter("@TotalindentMoney",store.TotalindentMoney),
                // new SqlParameter("@TotalindentPv",store.TotalindentPv),
                // new SqlParameter("@TotalinvestMoney",store.TotalinvestMoney),
                // new SqlParameter("@TotalmaxMoney",store.TotalmaxMoney),
                new SqlParameter("@TotalmemberorderMoney", store.TotalmemberorderMoney),
                new SqlParameter("@TotalordergoodsMoney", store.TotalordergoodsMoney)
            };
            int flag = DBHelper.ExecuteNonQuery("AddUnauditedStoreInfo", param, CommandType.StoredProcedure);

            if (flag > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #3
0
 private void SetUStoreInfo()
 {
     ustore = new UnauditedStoreInfoModel();
     try
     {
         ustore.FareArea = Convert.ToDecimal(fareArea);
     }
     catch (Exception)
     {
         msg = "<script language='javascript'>alert('" + GetTran("000279", "输入的格式不对") + "')</script>";
     }
     ustore.FareBreed = fareBreed;
     try
     {
         if (stouzi.Length > 0)
         {
             ustore.TotalaccountMoney = Convert.ToDecimal(stouzi);
         }
         else
         {
             ustore.TotalaccountMoney = 0;
         }
     }
     catch (Exception)
     {
         msg = "<script language='javascript'>alert('" + GetTran("000279", "输入的格式不对") + "')</script>";
     }
     ustore.Number        = number;
     ustore.StoreId       = storeid;
     ustore.Name          = Encryption.Encryption.GetEncryptionName(new AjaxClass().GetMumberName(number)); //加密店长姓名
     ustore.StoreName     = Encryption.Encryption.GetEncryptionName(storename);                             //加密店铺名称
     ustore.Country       = country;
     ustore.Province      = province;
     ustore.City          = city;
     ustore.CPCCode       = DBHelper.ExecuteScalar("select cpccode from city where country='" + this.StoreCountry.SelectedValue.ToString() + "' and province='" + this.StoreCity.SelectedValue.ToString() + "'").ToString().Substring(0, 4);
     ustore.SCPCCode      = CommonDataBLL.GetCityCode(country, province, city);
     ustore.StoreAddress  = Encryption.Encryption.GetEncryptionAddress(address); //加密地址
     ustore.HomeTele      = Encryption.Encryption.GetEncryptionTele(homeTel);    //加密家庭电话
     ustore.OfficeTele    = Encryption.Encryption.GetEncryptionTele(officetel);  //加密办公电话
     ustore.MobileTele    = Encryption.Encryption.GetEncryptionTele(mobiletel);  //加密电话
     ustore.FaxTele       = Encryption.Encryption.GetEncryptionTele(faxtel);     //加密传真
     ustore.BankCode      = bankCode;
     ustore.BankCard      = Encryption.Encryption.GetEncryptionCard(bankCard);   //加密卡号
     ustore.Email         = email;
     ustore.NetAddress    = netAddress;
     ustore.Remark        = remark;
     ustore.Direct        = DisposeString.DisString(txtDirect.Text);
     ustore.ExpectNum     = CommonDataBLL.getMaxqishu();
     ustore.RegisterDate  = DateTime.Now.ToUniversalTime();
     ustore.LoginPass     = password;
     ustore.AdvPass       = password;
     ustore.StoreLevelStr = storelevelstr;
     //ustore.FareArea = Convert.ToDecimal(fareArea);
     ustore.FareBreed = fareBreed;
     //ustore.TotalaccountMoney = 0;
     ustore.TotalinvestMoney  = decimal.Parse(stouzi);
     ustore.PostalCode        = postalcode;
     ustore.AccreditExpectNum = int.Parse(this.DropDownList1.SelectedValue);
     ustore.PermissionMan     = "";
     //ustore.Language = Convert.ToInt32(ddlLanaguage.SelectedItem.Value);
     //ustore.Currency = Convert.ToInt32(Currency.SelectedValue);
     CurrencyCode         = DBHelper.ExecuteScalar("select rateid from country where countrycode='" + ustore.CPCCode.Substring(0, 2) + "'").ToString();
     ustore.Currency      = Convert.ToInt32(CurrencyCode);
     ustore.StoreLevelInt = storelevelint;
     ustore.StoreCity     = storepriovince;
     ustore.StoreCountry  = scountry;
     ustore.OperateIp     = CommonDataBLL.OperateIP;
     ustore.OperateNum    = "";
     ustore.PhotoPath     = photo;
 }
コード例 #4
0
ファイル: StoreRegisterBLL.cs プロジェクト: 892182825/SP
 /// <summary>
 /// 添加自由注册的店铺
 /// </summary>
 /// <param name="store">店铺信息</param>
 /// <returns></returns>
 public static bool AllerRegisterStoreInfo(UnauditedStoreInfoModel ustore)
 {
     return(StoreInfoDAL.AllerRegisterStoreInfo(ustore));
 }