示例#1
0
    protected void cmdMet_Click(object sender, EventArgs e)
    {
        try
        {
            Session["Show"] = "No";
            ModalPopupMethod.Show();
            if (!Helper.IsLicenced(Request.Cookies["Company"].Value))
            {
                ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), "alert('This is Trial Version, Please upgrade to Full Version of this Software. Thank You.');", true);
                return;
            }
            ModalPopupExtender2.Show();
            pnlEdit.Visible      = true;
            UpdateButton.Visible = false;
            SaveButton.Visible   = true;
            ClearPanel();

            txtTransDate.Text = DateTime.Now.ToShortDateString();

            if (optionmethod.SelectedItem.Text == "Customer")
            {
                loadSupplier("Sundry Debtors");
                Label2.Text = "Select Customer *";
            }
            else if (optionmethod.SelectedItem.Text == "Supplier")
            {
                loadSupplier("Sundry Creditors");
                Label2.Text = "Select Supplier *";
            }
        }
        catch (Exception ex)
        {
            TroyLiteExceptionManager.HandleException(ex);
        }
    }
示例#2
0
 protected void cmdCancelMet_Click(object sender, EventArgs e)
 {
     try
     {
         ModalPopupMethod.Hide();
     }
     catch (Exception ex)
     {
         TroyLiteExceptionManager.HandleException(ex);
     }
 }
示例#3
0
 protected void lnkBtnAdd_Click(object sender, EventArgs e)
 {
     try
     {
         Session["Show"] = "No";
         ModalPopupMethod.Show();
     }
     catch (Exception ex)
     {
         TroyLiteExceptionManager.HandleException(ex);
     }
 }