protected void Page_Load(object sender, EventArgs e)
    {
        standardComment        = new OrgStandardComment();
        utility                = new MaintenanceUtility();
        connectionString       = PFC.Intranet.MaintenanceApps.MaintenanceUtility.GetConnectionString();
        ViewState["Operation"] = "";
        lblMessage.Text        = "";
        lnkCode.Attributes.Add("onclick", "Javascript:ShowDetail(this.id);return false;");
        //Session["UserName"] = "******";

        if (!Page.IsPostBack)
        {
            txtCustNo.Text             = Request.QueryString["CustNumber"].ToString().Trim();
            code                       = txtCustNo.Text.ToString();
            Session["CommentSecurity"] = null;
            Session["CommentSecurity"] = utility.GetSecurityCode(Session["UserName"].ToString(), MaintenaceTable.OrganisationComments);

            ViewState["Mode"] = "Add";
            btncheck();
            GetSearch();
        }
        code = txtCustNo.Text.ToString();

        if (CommentSecurity == "")
        {
            EnableQueryMode();
        }
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        standardComment        = new OrgStandardComment();
        utility                = new MaintenanceUtility();
        connectionString       = ConfigurationManager.AppSettings["PFCERPConnectionString"].ToString();
        ViewState["Operation"] = "";
        lblMessage.Text        = "";
        lnkCode.Attributes.Add("onclick", "Javascript:ShowDetail(this.id);return false;");
        //Session["UserName"] = "******";
        code = txtCode.Text.ToString();
        if (!Page.IsPostBack)
        {
            if (Request.QueryString["Mode"] != null && Request.QueryString["Mode"].ToString() == "POE")
            {
                Session["UserName"]   = Request.QueryString["UserName"].ToString();
                Session["UserID"]     = Request.QueryString["UserID"].ToString();
                ddlType.SelectedValue = "Vend";
            }

            BindTypes();
            SetTabIndex();
            Session["CountrySecurity"] = null;
            Session["CountrySecurity"] = utility.GetSecurityCode(Session["UserName"].ToString(), MaintenaceTable.OrganisationComments);

            ViewState["Mode"] = "Add";
            btncheck();

            if (Request.QueryString["Mode"] != null && Request.QueryString["Mode"].ToString() == "POE")
            {
                if (Request.QueryString["VendorNo"].ToString() != "")
                {
                    txtCode.Text = Request.QueryString["VendorNo"].ToString();
                    code         = txtCode.Text;
                    btnSearch_Click(txtCode, new ImageClickEventArgs(0, 0));
                }
            }
        }

        if (CountrySecurity == "")
        {
            EnableQueryMode();
        }
    }
Example #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        service          = new OrgStandardComment();
        connectionString = ConfigurationManager.AppSettings["PFCERPConnectionString"].ToString();
        try
        {
            type     = Request.QueryString["Type"].ToString();
            customer = Request.QueryString["Customer"].ToString();
            if (Request.QueryString["ctrlName"] != null)
            {
                hidfname.Value = Request.QueryString["ctrlName"].ToString();
            }

            if (!IsPostBack)
            {
                BindCustomer();
            }
        }
        catch (Exception ex)
        {
        }
    }
Example #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        service          = new OrgStandardComment();
        connectionString = PFC.Intranet.MaintenanceApps.MaintenanceUtility.GetConnectionString();
        try
        {
            type     = Request.QueryString["Type"].ToString();
            customer = PFC.SOE.Securitylayer.Cryptor.Decrypt(Request.QueryString["Customer"].ToString());
            if (Request.QueryString["ctrlName"] != null)
            {
                hidfname.Value = Request.QueryString["ctrlName"].ToString();
            }

            if (!IsPostBack)
            {
                BindCustomer();
            }
        }
        catch (Exception ex)
        {
        }
    }