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); } } }
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(); } }