示例#1
0
        protected void cboChargeType_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            if (cboChargeType.Items.Count != 0)
            {
                ChargeType        clsChargeType = new ChargeType();
                ChargeTypeDetails clsDetails    = clsChargeType.Details(Convert.ToInt32(cboChargeType.SelectedItem.Value));
                clsChargeType.CommitAndDispose();

                txtChargeAmount.Text = clsDetails.ChargeAmount.ToString("#,##0.#0");
                chkInPercent.Checked = Convert.ToBoolean(clsDetails.InPercent);
            }
        }
示例#2
0
        private void LoadRecord()
        {
            Int32             iID           = Convert.ToInt32(Common.Decrypt(Request.QueryString["id"], Session.SessionID));
            ChargeType        clsChargeType = new ChargeType();
            ChargeTypeDetails clsDetails    = clsChargeType.Details(iID);

            clsChargeType.CommitAndDispose();

            lblChargeTypeID.Text   = clsDetails.ChargeTypeID.ToString();
            txtChargeTypeCode.Text = clsDetails.ChargeTypeCode;
            txtChargeType.Text     = clsDetails.ChargeType;
            txtChargeAmount.Text   = clsDetails.ChargeAmount.ToString("#,##0.#0");
            chkInPercent.Checked   = Convert.ToBoolean(clsDetails.InPercent);
        }