Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                object objReceiptID = Request.QueryString["id"];

                int receiptID;
                if (objReceiptID == null || !int.TryParse(objReceiptID.ToString(), out receiptID))
                {
                    ClientScript.RegisterClientScriptBlock(this.GetType(), "page", "alert('参数错误');self.location.href='../FundsAllocation.aspx';", true);
                    return;
                }

                string strAmount = To_CollectingManager.GetAmount(receiptID);

                if (strAmount != string.Empty)
                {
                    LtrAmount.Text         = double.Parse(strAmount).ToString("C2");
                    HidReceiptAmount.Value = strAmount;
                }

                LoadStep1Info();
            }
        }