Exemplo n.º 1
0
    protected void btnSaveOrder_Click(object sender, EventArgs e)
    {
        //读取订货信息
        if (Page.IsValid)
        {
            if (GetOrderInfo())
            {
                if (TuiTotalCount == 0)
                {
                    ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + GetTran("002008", "对不起,请注意输入退货信息") + "!');</script>");
                    return;
                }

                if (TotalCount == 0)
                {
                    ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + GetTran("002011", "对不起,请注意输入换货信息") + "!');</script>");
                    return;
                }
                displaceGoodBrowseBLL.ADDReplacement(GetReplacementModel(), (ArrayList)ViewState["list"]);
                ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + GetTran("002012", "添加成功,等待审核") + "!');location.href='DisplaceGoodsBrowse.aspx';</script>");
            }
            else
            {
                ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + GetTran("002014", "对不起,请注意输入正确的换货信息") + "!');</script>");
            }
        }
    }