Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         hfdperid.Value = Request.QueryString[0].ToString();
         Utilities_Licensing.BindDropdown(ddl_status1, 53);
         Utilities_Licensing.BindDropdown(ddlnewappstatus, 24);
         Utilities_Licensing.BindDropdown(ddlappreason, 28);
         Utilities_Licensing.BindDropdown(ddlmailorderstatus, 53);
         Utilities_Licensing.BindCheckboxlist1(chkschedules, 68);
         Utilities_Licensing.Bind_LicenseTypes_Business(ddl_buslictypes);
         Utilities_Licensing.BindLicType(ddllictype, Convert.ToInt32(hfdperid.Value));
         Utilities_Licensing.BindLicType(ddl_licensetype, Convert.ToInt32(hfdperid.Value));
         Utilities_Licensing.BindLicType(ddl_schedulelicensetype, Convert.ToInt32(hfdperid.Value));
         Person_Details.tbl_PersonDetail objtype = Person_Details.Licensing_Details.get_PersonsData(Convert.ToInt32(hfdperid.Value));
         hfdobjtype.Value = objtype.object_type.ToString();
         //if(hfdobjtype.Value=="1")
         //mailorder.Attributes.Add("style","display:none");
         Utilities_Licensing.BindDropdown(ddlnewstatus, 14);
         txtDateOfChange.Text = DateTime.Now.ToShortDateString();
         txtappdt.Text        = DateTime.Now.ToShortDateString();
         Utilities_Licensing.BindStatusChange(ddlReason);
         ddlcmp.DataSource     = ComplaintsTabLinq.ClsComplaints.GetComplaints("0", Convert.ToInt32(hfdperid.Value));
         ddlcmp.DataTextField  = "Complaint_Number";
         ddlcmp.DataValueField = "Complaint_Number";
         ddlcmp.DataBind();
         ddlcmp.Items.Insert(0, new ListItem("", ""));
         //BindLicenseData();
         Utilities_Licensing.BindLicenseTypeByPersonID(chklictypes, Convert.ToInt32(hfdperid.Value));
         foreach (ListItem li in chklictypes.Items)
         {
             li.Attributes.Add("App_ID", li.Value);
         }
     }
 }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                hfdperid.Value = Request.QueryString[0].ToString();
                List <tbl_lkp_data> cablst = Person_Details.Licensing_Details.Get_Lkp_tablesdata(39);

                if (Request.QueryString["type"] == null)
                {
                    hfdutype.Value = "1";
                    cablst         = cablst.Where(c => c.Lkp_data_ID != 1071 && c.Lkp_data_ID != 1072 && c.Lkp_data_ID != 1075 && c.Lkp_data_ID != 1076 && c.Lkp_data_ID != 1077 && c.Lkp_data_ID != 1085).ToList();
                    Utilities_Licensing.BindDropdown(ddl_doctype, 41);
                    btndownloadall.Visible = false;
                    chklictypes.Visible    = true;
                    Utilities_Licensing.BindLicType(ddl_lictypeedit, Convert.ToInt32(hfdperid.Value));
                }
                else
                {
                    hfdutype.Value = Request.QueryString["type"].ToString();
                    if (hfdutype.Value == "2")
                    {
                        cablst = cablst.Where(c => c.Lkp_data_ID == 1071 || c.Lkp_data_ID == 1072).ToList();
                        Utilities_Licensing.BindDropdown(ddl_doctype, 57);
                        btndownloadall.Visible = true;
                        chklictypes.Visible    = false;
                        Utilities_Licensing.BindLicType(ddl_lictypeedit, Convert.ToInt32(Request.QueryString[1].ToString()));
                    }
                }
                //BindDocumnetDetails();
                // Utilities_Licensing.BindDropdown(ddl_cabinet, 39);
                if (hfdutype.Value == "1")
                {
                    lictype.Visible = true;
                }
                else
                {
                    lictype.Visible = false;
                }
                ddl_cabinet.DataSource     = cablst;
                ddl_cabinet.DataValueField = "Lkp_data_ID";
                ddl_cabinet.DataTextField  = "Values";
                ddl_cabinet.DataBind();
                ddl_cabinet.Items.Insert(0, new ListItem("Select", "-1"));
                Utilities_Licensing.BindDropdown(ddl_folder, 40);
                Utilities_Licensing.BindLicType(ddl_licensetype, Convert.ToInt32(hfdperid.Value));
                foreach (ListItem li in ddl_doctype.Items)
                {
                    ddl_doctypeedit.Items.Add(li);
                }
                Utilities_Licensing.BindLicenseTypeByPersonID(chklictypes, Convert.ToInt32(hfdperid.Value));
                foreach (ListItem li in chklictypes.Items)
                {
                    li.Attributes.Add("App_ID", li.Value);
                }
                txt_date.Text = DateTime.Now.ToShortDateString();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                hfdperid.Value = Request.QueryString[0].ToString();
                List <tbl_lkp_data> cablst = Person_Details.Licensing_Details.Get_Lkp_tablesdata(39);

                if (Request.QueryString["type"] == null)
                {
                    hfdutype.Value = "1";
                    cablst         = cablst.Where(c => c.Lkp_data_ID != 1071 && c.Lkp_data_ID != 1072 && c.Lkp_data_ID != 1075 && c.Lkp_data_ID != 1076 && c.Lkp_data_ID != 1077 && c.Lkp_data_ID != 1085).ToList();
                    Utilities_Licensing.BindDropdown(ddldoctypeedit, 41);
                    btndownloadall.Visible = false;

                    Utilities_Licensing.BindLicType(ddl_lictypeedit, Convert.ToInt32(hfdperid.Value));
                }
                else
                {
                    hfdutype.Value = Request.QueryString["type"].ToString();
                    if (hfdutype.Value == "2")
                    {
                        cablst = cablst.Where(c => c.Lkp_data_ID == 1071 || c.Lkp_data_ID == 1072).ToList();
                        Utilities_Licensing.BindDropdown(ddldoctypeedit, 57);
                        btndownloadall.Visible = true;

                        Utilities_Licensing.BindLicType(ddl_lictypeedit, Convert.ToInt32(Request.QueryString[1].ToString()));
                    }
                }
                //BindDocumnetDetails();
                // Utilities_Licensing.BindDropdown(ddl_cabinet, 39);
                if (hfdutype.Value == "1")
                {
                    lictype.Visible = true;
                }
                else
                {
                    lictype.Visible = false;
                }
                //ddl_cabinet.DataSource = cablst;
                //ddl_cabinet.DataValueField = "Lkp_data_ID";
                //ddl_cabinet.DataTextField = "Values";
                //ddl_cabinet.DataBind();
                //ddl_cabinet.Items.Insert(0, new ListItem("Select", "-1"));
                //Utilities_Licensing.BindDropdown(ddl_folder, 40);
                Utilities_Licensing.BindLicType(ddl_licensetype, Convert.ToInt32(hfdperid.Value));

                var currentYear = DateTime.Today.Year;
                for (int i = 2; i >= 0; i--)
                {
                    // Now just add an entry that's the current year minus the counter
                    ddl_year.Items.Add((currentYear - i).ToString());
                }
                ddl_year.SelectedValue = currentYear.ToString();
                txt_date.Text          = DateTime.Now.ToShortDateString();
            }
        }
Пример #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                hfdperid.Value = Request.QueryString[0].ToString();
                Utilities_Licensing.BindLicType(ddl_licensetype, Convert.ToInt32(hfdperid.Value));
                Utilities_Licensing.BindDropdown(ddl_degree, 26);
                Utilities_Licensing.BindDropdown(ddl_examtype, 54);
                Utilities_Licensing.BindLicType(ddllictype, Convert.ToInt32(hfdperid.Value));
                Utilities_Licensing.BindDropdown(ddl_Eligibletype, 69);

                // Utilities_Licensing.BindGridEducation(grdeducation, Convert.ToInt32(hfdperid.Value));
            }
        }
Пример #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         hfdpid.Value   = Request.QueryString[0].ToString();
         hfdutype.Value = Session["Utype"].ToString();
         Utilities_Licensing.BindLicType(ddl_lictype, Convert.ToInt32(hfdpid.Value));
         Utilities_Licensing.BindSubobjvalues(ddl_feetype, hfdpid.Value);
         Utilities_Licensing.BindDropdown(ddl_paymenttype, 30);
         Utilities_Licensing.BindDropdown(ddlvoidres, 31);
         ddl_days.DataSource = Enumerable.Range(1, 15);
         ddl_days.DataBind();
         ddl_days.Items.Insert(0, new ListItem("Day", "-1"));
         ddl_edit_days.DataSource = Enumerable.Range(1, 15);
         ddl_edit_days.DataBind();
         ddl_edit_days.Items.Insert(0, new ListItem("Day", "-1"));
     }
 }