コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["UserName"] == null)
            {
                Response.Redirect("FrmLogin.aspx");
            }

            if (Request.QueryString["CaseY"] != null)
            {
                txtCaseY.Text = Request.QueryString["CaseY"];
            }

            if (Request.QueryString["CaseNo"] != null)
            {
                txtCaseNo.Text = Request.QueryString["CaseNo"];
            }

            if (Request.QueryString["Edate"] != null)
            {
                ENTRYDATE = Request.QueryString["Edate"];
            }
            TxtBRCD.Text      = Session["BRCD"].ToString();
            ViewState["FLAG"] = "AD";
            //BD.BindWard(DropDownList1);
            //BD.BindDesig(ddlDesignation);
            //BD.BindRCNO(ddlRCNo);
        }
        if (ViewState["FLAG"].ToString() == "AD")
        {
            BD.BindWard(DropDownList1);
            BD.BindDesig(ddlDesignation);
            BD.BindRCNO(ddlRCNo1);
            lbl101Rc.Text  = "101 वसुली दाखलाचा क्र";
            lbl101rcd.Text = "101 वसुली दाखलाची तारीख";

            txtArrearno.Text = SRO.MarathiDefaulterNo(CASENO: txtCaseNo.Text, CASE_YEAR: txtCaseY.Text);

            BindGrdDefaulter();
            BindGrdCommitee();

            BindGrdUPSET();
            BindGrdUPSETPRIZ();
        }
    }
コード例 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (Session["UserName"] == null)
            {
                Response.Redirect("FrmLogin.aspx");
            }

            if (!IsPostBack)
            {
                string allow = com.ChkECS(Session["BRCD"].ToString());
                if (allow == "Y")
                {
                    AutoCompleteExtenderminor.ContextKey = Session["BRCD"].ToString();
                    autooffcname.ContextKey = Session["BRCD"].ToString();
                    bd.BindDesig(ddlDesig);
                    bd.BindACCTYPE(ddlCustType);
                    if (!string.IsNullOrEmpty(Request.QueryString["CUSTNO"]))
                    {
                        TxtCustno.Text = Request.QueryString["CUSTNO"].ToString();
                        CustNoChanged();
                    }
                    EmptyGridBind();
                }
                else
                {
                    Response.Redirect("~/FrmBlank.aspx?ShowMessage=true");
                }

                TxtCustno.Focus();
            }
        }
        catch (Exception ex)
        {
            ExceptionLogging.SendErrorToText(ex);
        }
    }