Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            mpPageTitle      = (Label)Page.Master.FindControl("lblPageTitle");
            mpPageTitle.Text = strPagetitle;
            mpMessage        = (Label)Page.Master.FindControl("lblMessage");
            mpMessage.Text   = "...";
            if (!IsPostBack)
            {
                CommonCodes.gLog.logEvent("Opening " + strPagetitle);
                FillControls();
            }
            hideEditForm();


            if (Request.QueryString[strQueryKey] != null)
            {
                string strID = Request.QueryString[strQueryKey];
                if (!"".Equals(strID))
                {
                    JEVATCode vatCode = new JEVATCode(strID, CommonCodes.gVATCodeDatafile, "id");
                    //mpPageTitle.Text = strPagetitle + " / user: "******" : " + str;
                    getVATCodeData(vatCode);
                }
            }
        }
Exemplo n.º 2
0
 protected void getVATCodeData(JEVATCode rJEVatCode)
 {
     if (rJEVatCode != null)
     {
         displayEditForm(rJEVatCode.id + ": " + rJEVatCode.code, true, true, true, true, true);
         txtID.Text            = rJEVatCode.id;
         txtStatus.Text        = rJEVatCode.status;
         txtVATCode.Text       = rJEVatCode.code;
         txtDescription.Text   = rJEVatCode.description;
         txtVATPercentage.Text = rJEVatCode.percentage;
         //radiobutton
         if ("input".Equals(rJEVatCode.inputoutput))
         {
             rbInput.Checked  = true;
             rbOutput.Checked = false;
         }
         if ("output".Equals(rJEVatCode.inputoutput))
         {
             rbInput.Checked  = false;
             rbOutput.Checked = true;
         }
     }
 }