Example #1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        string storeID = txtStoreId.Text.Trim();

        //保存店编号
        //Session["StoreID"] = storeID;
        if (DisplaceGoodBrowseBLL.CheckStoreId(storeID))
        {
            StoreInfoModel storeInfo = new ReturnedGoodsBLL().GetStorInfoByStoreid(storeID);

            if (storeInfo != null)
            {
                this.lblShopName.Text = Encryption.Encryption.GetDecipherName(storeInfo.StoreName);
                txtAddress.Text       = storeInfo.City.Country + storeInfo.City.Province + storeInfo.City.City + Encryption.Encryption.GetDecipherAddress(storeInfo.StoreAddress); //绑定  收货地址
                txtpostalcode.Text    = storeInfo.PostalCode.ToString();                                                                                                           //绑定  邮编
                txtTele.Text          = Encryption.Encryption.GetDecipherTele(storeInfo.HomeTele) + "   " + Encryption.Encryption.GetDecipherTele(storeInfo.MobileTele);           //绑定  电话(负责人的电话)
                txtInceptMan.Text     = Encryption.Encryption.GetDecipherName(storeInfo.Name);
                GetStore(storeID);
                btnSaveOrder.Visible = true;
                btnViewTotal.Visible = true;
                //this.LabCurrency.Text = CommonData.getD_Currency(storeID);
            }
        }
        else
        {
            ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + GetTran("002019", "找不到店信息!请联系管理员") + "!');</script>");
        }
    }
Example #2
0
    /// <summary>
    /// 根据输入的店铺编号绑定店铺信息
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btnBindStore_Click(object sender, EventArgs e)
    {
        string storeID = txtStoreId.Text.Trim();

        if (DisplaceGoodBrowseBLL.CheckStoreId(storeID))
        {
            StoreInfoModel storeinfo = new StoreInfoModel();
            storeinfo = returnedGoodsBLL.GetStorInfoByStoreid(storeID);
            if (storeinfo != null)
            {
                lblShopName.Text   = Encryption.Encryption.GetDecipherName(storeinfo.StoreName);                                                                                //店铺名称
                lbladdress.Text    = storeinfo.City.Country + storeinfo.City.Province + storeinfo.City.City + Encryption.Encryption.GetDecipherAddress(storeinfo.StoreAddress); //收货地址
                lblpostalcode.Text = storeinfo.PostalCode;                                                                                                                      //邮编
                lbltele.Text       = Encryption.Encryption.GetDecipherTele(storeinfo.HomeTele) + "   " + Encryption.Encryption.GetDecipherTele(storeinfo.MobileTele);           //电话(负责人的电话)
                lblinceptman.Text  = Encryption.Encryption.GetDecipherName(storeinfo.Name);                                                                                     //店长姓名
                //绑定店铺仓库里的产品信息
                BindGridViewList(this.txtStoreId.Text.Trim().ToString());
                Session["storeid"]    = txtStoreId.Text.Trim();
                btnSaveOrder.Visible  = true;
                btnSearch.Visible     = true;
                ViewState["currency"] = ReturnedGoodsBLL.GetStoreCurrency(txtStoreId.Text);
            }
        }
        else
        {
            //msg = Transforms.ReturnAlert("找不到店信息!请联系管理员!");
            ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + GetTran("001779", "找不到店信息!请联系管理员!") + "')</script>");
            //Response.Write(msg);
            txtStoreId.Text = string.Empty;
            txtStoreId.Focus();
        }
        if (GetOrderInfo())
        {
            lblTotalMoney.Text    = ((ViewState["zongPrice"] != null) ? ViewState["zongPrice"].ToString() : "0");
            lblTotalIntegral.Text = ((ViewState["zongPv"] != null) ? ViewState["zongPv"].ToString() : "0");
        }
    }