protected void DropDownListType_SelectedIndexChanged(object sender, DropDownListEventArgs e) { int outputType = DropDownListType.SelectedIndex; PanelSMB.Visible = false; PanelFTP.Visible = false; PanelEmail.Visible = false; PanelGoogle.Visible = false; PanelS3.Visible = false; if (outputType == 1) { PanelFTP.Visible = true; } else if (outputType == 2) { PanelEmail.Visible = true; } else if (outputType == 3) { PanelGoogle.Visible = true; } else if (outputType == 4) { PanelS3.Visible = true; } else { PanelSMB.Visible = true; } }
protected void ddlMR_SelectedIndexChanged(object sender, DropDownListEventArgs e) { string mr_item = ddlMR.SelectedValue; if (mr_item.Equals("-1")) { return; } int mat_id = int.Parse(WebTools.GetExpr("MAT_ID", "PIP_MAT_STOCK", " MAT_CODE1='" + ddlMatCode.SelectedItem.Text + "'")); int mat_req_id = int.Parse(WebTools.GetExpr("MAT_REQ_ID", "PIP_MAT_TRANSF", "PROJECT_ID=" + Session["PROJECT_ID"].ToString() + " AND TRANSF_ID=" + Request.QueryString["TRANSF_ID"])); req_qty = WebTools.DSum("REQ_QTY", "MATERIAL_REQUEST_DETAIL", " MAT_REQ_ID=" + mat_req_id + " AND MAT_ID=" + mat_id + " AND mr_item_no=" + mr_item); issued_qty = WebTools.DSum("TRANSF_QTY", "VIEW_MAT_ISSUE_BALANCE_MAIN2", " MAT_REQ_ID=" + mat_req_id + " AND MAT_ID=" + mat_id + " AND mr_item_no=" + mr_item); string item_id = WebTools.GetExpr("ITEM_ID", "PIP_MAT_STOCK", " MAT_CODE1='" + ddlMatCode.SelectedItem.Text + "'"); item_name = WebTools.GetExpr("SG_GROUP", "PIP_MAT_ITEM", " ITEM_ID=" + item_id); if (item_name.ToUpper().Contains("PIP")) { lblbalqty.Text = "Can Issue Approximately: " + (req_qty - issued_qty); } else { lblbalqty.Text = "Can Issue Max Qty: " + (req_qty - issued_qty); } }
protected void ddlCountries_SelectedIndexChanged(object sender, DropDownListEventArgs e) { try { countryID = int.Parse(e.Value); Session["CountryID"] = countryID; RadDropDownList ddlCountries = (RadDropDownList)sender; GridEditableItem item = (GridEditableItem)ddlCountries.NamingContainer; RadDropDownList ddlPlaces = (RadDropDownList)item.FindControl("ddlPlaces"); ddlPlaces.ClearSelection(); PlacesController cont = new PlacesController(); ddlPlaces.DataSource = cont.GetPlaces().Where(k => k.CountryID == countryID); ddlPlaces.DataTextField = "NameGR"; ddlPlaces.DataValueField = "ID"; ddlPlaces.DataBind(); ddlPlaces.SelectedIndex = 0; if (ddlPlaces.Items.Count > 0) { Session["PlaceID"] = ddlPlaces.SelectedItem.Value; } else { Session.Remove("PlaceID"); } } catch (Exception) { } }
protected void Rddlcampus_SelectedIndexChanged(object sender, DropDownListEventArgs e) { string campusname = string.Empty; campusname = Convert.ToString(Rddlcampus.SelectedText); DepartmentBind(campusname); }
protected void RddlDept_SelectedIndexChanged(object sender, DropDownListEventArgs e) { if (RddlDept.SelectedIndex > 0) { string LeadId = string.Empty, StudentNo = string.Empty, DeptID = string.Empty; LeadId = Convert.ToString(Session["LeadId"]); StudentNo = Convert.ToString(Session["StudentNo"]); DeptID = Convert.ToString(RddlDept.SelectedValue); Session["DeptID"] = DeptID; string type = string.Empty; if (StudentNo != string.Empty && StudentNo != null && StudentNo != "0") { type = "Student"; } if (LeadId != string.Empty && LeadId != null && LeadId != "0") { type = "Lead"; } string Starturl = string.Empty; Starturl = "~/frmstudentlead.aspx?type=" + type + "&Operation=Inbox"; Response.Redirect(Starturl, false); Context.ApplicationInstance.CompleteRequest(); } }
protected void ddlSubcon_SelectedIndexChanged(object sender, DropDownListEventArgs e) { switch (rblReportType.SelectedValue) { case "1": // rcbFitupJoint.Text = ""; rcbFitupJoint.Items.Clear(); rcbFitupJoint.DataBind(); ddlFitupInspCode.Items.Clear(); ddlFitupInspCode.Items.Insert(0, new DropDownListItem("Fitup Inspector", "Fitup Inspector")); ddlFitupInspCode.DataBind(); break; case "2": // rcbWeldIsoJnt.Text = ""; rcbWeldIsoJnt.Items.Clear(); rcbWeldIsoJnt.DataBind(); rcbWeldInsp.Items.Clear(); rcbWeldInsp.Items.Insert(0, new RadComboBoxItem("Weld Inspector", "Weld Inspector")); rcbWeldInsp.DataBind(); break; case "3": // rcbWeldIsoJnt.Text = ""; rcbLamJoint.Items.Clear(); rcbLamJoint.DataBind(); break; } }
protected void ddlJobTypes_SelectedIndexChanged(object sender, DropDownListEventArgs e) { try { JobTypesID = int.Parse(e.Value); Session["JobTypesID"] = JobTypesID; } catch (Exception) { } }
protected void ddlSaleType_SelectedIndexChanged(object sender, DropDownListEventArgs e) { try { SalesType = int.Parse(e.Value); Session["SalesType"] = SalesType; } catch (Exception) { } }
protected void ddlCountries_SelectedIndexChanged(object sender, DropDownListEventArgs e) { try { countryID = int.Parse(e.Value); Session["CountryID"] = countryID; } catch (Exception) { } }
protected void ddlCustomer_SelectedIndexChanged(object sender, DropDownListEventArgs e) { try { CustomerID = int.Parse(e.Value); Session["CustomerID"] = CustomerID; } catch (Exception) { } }
protected void dd_project_SelectedIndexChanged(object sender, DropDownListEventArgs e) { RadDropDownList dd_project = (RadDropDownList)sender; String TempLeadID = dd_project.ID.Replace("dd_project_", String.Empty); RadDropDownList dd_bucket = (RadDropDownList)dd_project.Parent.FindControl("dd_bucket_" + TempLeadID); LeadsUtil.BindBuckets(dd_project, dd_bucket, String.Empty, true); }
protected void ddlLineType_SelectedIndexChanged(object sender, DropDownListEventArgs e) { try { LineTypeID = int.Parse(e.Value); Session["LineTypeID"] = LineTypeID; } catch (Exception) { } }
protected void ddlUserGroups_SelectedIndexChanged(object sender, DropDownListEventArgs e) { try { newID = int.Parse(e.Value); Session["UserGroupID"] = newID; } catch (Exception) { } }
protected void ddlPosition2_SelectedIndexChanged(object sender, DropDownListEventArgs e) { try { RadAutoCompleteBox txtPosition = FindControlRecursive(Page, "txtPosition2") as RadAutoCompleteBox; txtPosition.Entries.Add(new AutoCompleteBoxEntry(e.Text, e.Text)); Session["Position2"] = e.Text; } catch (Exception) { } }
protected void RadDropDownList1_SelectedIndexChanged(object sender, DropDownListEventArgs e) { if (RadDropDownList1.SelectedItem != null) { reportViewer1.ReportSource.IdentifierType = Telerik.ReportViewer.Html5.WebForms.IdentifierType.UriReportSource; reportViewer1.ReportSource.Identifier = e.Value; reportViewer1.Visible = true; } }
protected void ddlBranch_SelectedIndexChanged(object sender, DropDownListEventArgs e) { int selectedBranchID = Convert.ToInt32(ddlBranch.SelectedValue); ddlSales.DataSource = EmployeeService.GetAll(selectedBranchID); ddlSales.DataTextField = "FirstName"; ddlSales.DataValueField = "ID"; ddlSales.DataBind(); ddlSales.Items.Insert(0, new DropDownListItem(String.Empty)); }
protected void RadDropDownList1_SelectedIndexChanged(object sender, DropDownListEventArgs e) { RadDropDownListSon.Items.Clear(); RadDropDownListSon.Items.Add(new DropDownListItem("请选择", "")); RadDropDownListSon.DataSource = CommoditySon_Bll.GetList(" CommodityFatherID ='" + RadDropDownListFather.SelectedValue + "' "); RadDropDownListSon.DataTextField = "CommoditySonName"; RadDropDownListSon.DataValueField = "CommoditySonID"; RadDropDownListSon.DataBind(); RadDropDownListSon.SelectedText = "请选择"; }
protected void ddlItem_SelectedIndexChanged(object sender, DropDownListEventArgs e) { string LifeWventDate = txtLifeEventDate.SelectedDate.ToString(); Update_lblLifeEvent(ddlItem.SelectedText); hidLifeEvent.Value = ddlItem.SelectedValue; Data.save_le_ee_session_info(session_id, ViewState["Selected_Account_Number"].ToString(), ViewState["Employee_Number"].ToString(), LifeWventDate, "", ddlItem.SelectedValue, lblAcknowledgeText.Text, ViewState["User_Name"].ToString()); ViewState["LE_EE_ID"] = SQLStatic.Sessions.GetSessionValue(session_id, "LE_EE_ID"); }
protected void CategoryNumberChanged(object sender, DropDownListEventArgs e) { if (rddlCatNumber.SelectedValue.ToString() == "2" || rddlCatNumber.SelectedValue.ToString() == "3") { rtbCatReason.Visible = true; } else { rtbCatReason.Visible = false; } }
protected void ddlType_SelectedIndexChanged(object sender, DropDownListEventArgs e) { try { RadComboBox ddlType = (RadComboBox)sender; Session["Type_Id"] = ddlType.SelectedValue; string qry = "SELECT [Application_Id],[Application_Name],[Type_Id] FROM [tbl_Application_Master] where Type_Id= '" + Session["Type_Id"].ToString() + "' ";; } catch (Exception ex) { throw ex; } }
protected void ddlBranch_SelectedIndexChanged(object sender, DropDownListEventArgs e) { int selectedBranchID = Convert.ToInt32(ddlBranch.SelectedValue); ddlSales.DataSource = EmployeeService.GetAll(selectedBranchID); ddlSales.DataTextField = "FirstName"; ddlSales.DataValueField = "ID"; ddlSales.DataBind(); ddlSales.Items.Insert(0, new DropDownListItem(String.Empty)); hypLookUpContract.Attributes["onclick"] = String.Format("showPromptPopUp('PromptContract.aspx?BranchID={0}', '{1}', 550, 900);", ddlBranch.SelectedValue, txtContractNo.ClientID); }
protected void dlPaymentMode1_ItemSelected(object sender, DropDownListEventArgs e) { if (dlPaymentMode1.SelectedText == "Cheque" || dlPaymentMode1.SelectedText == "Mobile Money") { txtChequeno1.Enabled = true; } else { txtChequeno1.Enabled = false; txtChequeno1.Text = ""; } }
protected void ModeDDCust_SelectedIndexChanged(object sender, DropDownListEventArgs e) { var val = e.Value; var dates = PeriodeCust.SelectedDate; int modeddint = Convert.ToInt32(val); string converteddate = ""; if (dates != null) { converteddate = Convert.ToDateTime(dates).ToString("yyyy-MM-dd"); } loadcustomerdata(converteddate, modeddint); }
protected void ddlItemType_SelectedIndexChanged(object sender, DropDownListEventArgs e) { int itemTypeID = Convert.ToInt32(ddlItemType.SelectedValue); ddlItem.Items.Clear(); foreach (var item in ItemService.GetItemsByType(itemTypeID)) { ddlItem.Items.Add( new DropDownListItem( item.Description, item.ID.ToString())); } }
protected void ddlSchoolName_SelectedIndexChanged(object sender, DropDownListEventArgs e) { // int SchoolLocationId = 0; // SchoolLocationId = Convert.ToInt32(ddlSchoolName.SelectedValue); // if (SchoolLocationId > 0) // { // Dropdown_SchoolContactUserList(SchoolLocationId); // } // } // protected void Dropdown_SchoolContactUserList(int SiteLocationId) // { // ddlSchoolContactName.Items.Clear(); // var cglobal = new CGlobal(); // ddlSchoolContactName.DataSource = cglobal.LoadSchooContactlList(SiteLocationId); // ddlSchoolContactName.DataTextField = "Name"; // ddlSchoolContactName.DataValueField = "Value"; // ddlSchoolContactName.SelectedIndex = 0; // ddlSchoolContactName.DataBind(); // } // protected void Tab_Host_TabClick(object sender, RadTabStripEventArgs e) // { // if (Session["DormitoryHostid"]!= null) // { // switch (Convert.ToInt32(Tab_Host.SelectedIndex)) // { // //case 0: // // break; // case 1: // Grid_HostRoom.Rebind(); // break; // case 2: // Grid_HostBed.Rebind(); // break; // case 3: // Grid_School.Rebind(); // break; // case 4: // break; // } // } }
protected void ddlprovince_SelectedIndexChanged(object sender, DropDownListEventArgs e) { ddlcity.Items.Clear(); //清空市下拉框项目 ddlcity.Items.Add(new DropDownListItem("请选择", "")); //给市下拉框添加请选择 XmlDataSource xds = new XmlDataSource(); //声明xml数据源 xds.DataFile = Server.MapPath("~/PatentProvince.xml"); //读取xml文件 xds.XPath = "//province[@name='" + ddlprovince.SelectedValue + "']/city"; //将路径存放在表达式中 ddlcity.DataSource = xds; //将xds赋值给数据源 ddlcity.DataTextField = "cname"; //设置文本字段 ddlcity.DataValueField = "cname"; //设置值字段 ddlcity.DataBind(); //绑定数据源 ddlcity.SelectedText = "请选择"; //设置初始值 }
protected void Rddlcampus_SelectedIndexChanged(object sender, DropDownListEventArgs e) { if (Rddlcampus.SelectedIndex > 0) { string CampusID = string.Empty; CampusID = Convert.ToString(Rddlcampus.SelectedValue); BindRole(CampusID); } else { BindRole(""); Rddlcampus.SelectedIndex = 0; } }
protected void rddlw_SelectedIndexChanged(object sender, DropDownListEventArgs e) { // Now rebuild the datasource int seqnumber = 0; var itemList = new List <INCFORM_LOSTTIME_HIST>(); foreach (RepeaterItem losttimeitem in rptLostTime.Items) { var item = new INCFORM_LOSTTIME_HIST(); Label lb = (Label)losttimeitem.FindControl("lbItemSeq"); RadDropDownList rddlw = (RadDropDownList)losttimeitem.FindControl("rddlWorkStatus"); //rddlw.SelectedIndexChanged += rddlw_SelectedIndexChanged; TextBox tbr = (TextBox)losttimeitem.FindControl("tbRestrictDesc"); RadDatePicker bd = (RadDatePicker)losttimeitem.FindControl("rdpBeginDate"); RadDatePicker md = (RadDatePicker)losttimeitem.FindControl("rdpNextMedDate"); RadDatePicker ed = (RadDatePicker)losttimeitem.FindControl("rdpExpectedReturnDT"); item.ITEM_DESCRIPTION = tbr.Text; item.BEGIN_DT = bd.SelectedDate; //item.RETURN_TOWORK_DT = rd.SelectedDate; item.NEXT_MEDAPPT_DT = md.SelectedDate; item.RETURN_EXPECTED_DT = ed.SelectedDate; rddlw.Items.Add(new DropDownListItem("", "")); List <EHSMetaData> statuses = EHSMetaDataMgr.SelectMetaDataList("WORK_STATUS"); foreach (var s in statuses) { rddlw.Items.Add(new DropDownListItem(s.Text, s.Value)); } if (!string.IsNullOrEmpty(rddlw.SelectedValue) && (rddlw.SelectedValue != "")) { item.WORK_STATUS = rddlw.SelectedValue; if (!item.BEGIN_DT.HasValue) { item.BEGIN_DT = (WorkStatusIncident != null && WorkStatusIncident.INCIDENT_DT != null) && WorkStatusIncident.INCIDENT_DT > DateTime.MinValue ? WorkStatusIncident.INCIDENT_DT.AddDays(1) : DateTime.UtcNow.AddDays(1); } } itemList.Add(item); } rptLostTime.DataSource = itemList; rptLostTime.DataBind(); }
protected void dlPaymode_ItemSelected(object sender, DropDownListEventArgs e) { if (dlPaymode.SelectedText == "Cash") { dlBank.ClearSelection(); dlBank.Enabled = false; txtChequeno.Text = ""; txtChequeno.Enabled = false; } else if (dlPaymode.SelectedText == "Cheque" || dlPaymode.SelectedText == "Mobile Money") { dlBank.Enabled = true; txtChequeno.Enabled = true; } }
protected void dlTransmode_ItemSelected(object sender, DropDownListEventArgs e) { if (dlTransmode.SelectedText == "Cash") { txtChequeno.Text = ""; txtChequeno.Enabled = false; dpValueDate.SelectedDate = DateTime.UtcNow; dpValueDate.Enabled = false; } else if (dlTransmode.SelectedText == "Cheque") { txtChequeno.Enabled = true; dpValueDate.Enabled = true; } }
protected void shippingCountryDropDownList_SelectedIndexChanged(object sender, DropDownListEventArgs e) { }
protected void ddlCompanyEdit_SelectedIndexChanged(object sender, DropDownListEventArgs e) { FillEmailAddressLabels(); }
protected void companyIdRadDropDownList1_ItemSelected(object sender, DropDownListEventArgs e) { }
protected void chartOfAccountTypeDropDownList_ItemSelected(object sender, DropDownListEventArgs e) { }
protected void parentIdDropDownList_ItemSelected(object sender, DropDownListEventArgs e) { }
protected void OnSelectedIndexChanged(object sender, DropDownListEventArgs e) { EventHandler<ControlValueChangedEventArgs> handler = this.ValueChanged; if (handler != null) handler(this, new ControlValueChangedEventArgs(this.Value)); }
protected void ddlActivePlan_SelectedIndexChanged(object sender, DropDownListEventArgs e) { try { using (ApplicationDbContext ctx = new ApplicationDbContext()) { int planId = Convert.ToInt32(ddlActivePlan.SelectedValue); var plan = ctx.AdvancePlans.First(ap => ap.RecordId == planId); txtAdvancePlanDescription.Text = plan.PlanDescription; txtPlanMarkupPct.Text = plan.PlanDiscountPct.ToString(); txtPaymentCount.Text = plan.PaymentCount.ToString(); txtStandardPlanDuration.Text = plan.StandardPlanDuration.ToString(); txtExtendedPlanDuration.Text = plan.ExtendedPlanDuration.ToString(); txtMinAdvanceAmount.Text = plan.MinimumAdvanceAmount.ToString(); txtMaxAdvanceAmount.Text = plan.MaximumAdvanceAmount.ToString(); txtPlanIncrementValue.Text = plan.IncrementValue.AdvancePlanIncrementName + " - " + plan.IncrementValue.IncrementAmount.ToString(); txtAdvancePlanStatus.Text = plan.Status.StatusDescription; } } catch (System.Exception ex) { _newLogic.WriteExceptionToDB(ex, "ddlActivePlan_SelectedIndexChanged"); } }
protected void countryDropDownList_ItemSelected(object sender, DropDownListEventArgs e) { }
protected void accountTypeRadDropDownList1_ItemSelected(object sender, DropDownListEventArgs e) { }
protected void journalTypeDropDownList_SelectedIndexChanged(object sender, DropDownListEventArgs e) { }
protected void accountTypeRadDropDownList1_SelectedIndexChanged(object sender, DropDownListEventArgs e) { }
protected void RadDropDownList_SelectedIndexChanged(object sender, DropDownListEventArgs e) { AsyncUpload1.ChunkSize = int.Parse(e.Value); }
protected void ddlOrderedStatus_SelectedIndexChanged(object sender, DropDownListEventArgs e) { try { GridEditableItem editedItem = (sender as RadDropDownList).NamingContainer as GridEditableItem; RadDropDownList ddlApprovedStatus = sender as RadDropDownList; string statusDesc = ddlApprovedStatus.SelectedText; int formId = Convert.ToInt32(editedItem.GetDataKeyValue("RecordId")); System.Security.Principal.IPrincipal user = System.Web.HttpContext.Current.User; UserLogic uLogic = new UserLogic(); SystemUsers currentUser = uLogic.GetCurrentUser(user); int userId = currentUser.SystemUserID; using (FormContext ctx = new FormContext()) { if (ctx.InventoryApprovalItems.Any(x => x.RecordId == formId)) { var editForm = ctx.InventoryApprovalItems.FirstOrDefault(x => x.RecordId == formId); editForm.Status = ctx.InventoryApprovalStatuses.FirstOrDefault(x => x.StatusDescription == statusDesc); editForm.LastModifiedTimestamp = DateTime.Now; editForm.LastModifiedUser = ctx.SystemUsers.FirstOrDefault(x => x.SystemUserID == userId); if (statusDesc == "Pending Approval") { editForm.ApprovedBy = null; editForm.ApprovedDate = null; editForm.OrderDate = null; editForm.OrderedBy = null; editForm.ActualShipDate = null; } else if (statusDesc == "Approved") { editForm.OrderedBy = null; editForm.OrderDate = null; editForm.ActualShipDate = null; } else if (statusDesc == "Arrived") { editForm.ReceivedBy = ctx.SystemUsers.FirstOrDefault(x => x.SystemUserID == userId); editForm.ArrivalDate = DateTime.Now; editForm.TimeToArrival = Math.Round((DateTime.Now - editForm.EstimatedShipDate.Value).TotalDays / 7, 1).ToString() + " weeks"; } else if (statusDesc == "Invoiced") { editForm.InvoicedBy = ctx.SystemUsers.FirstOrDefault(x => x.SystemUserID == userId); editForm.InvoiceDate = DateTime.Now; editForm.TimeToArrival = Math.Round((DateTime.Now - editForm.EstimatedShipDate.Value).TotalDays / 7, 1).ToString() + " weeks"; } else if (statusDesc == "Cancelled") { editForm.CancelledBy = ctx.SystemUsers.FirstOrDefault(x => x.SystemUserID == userId); editForm.CancelledDate = DateTime.Now; } } ctx.SaveChanges(); RebindGrids(); } } catch (Exception ex) { throw ex; } }
protected void ddlBlob_SelectedIndexChanged(object sender, DropDownListEventArgs e) { Session["blobContainer"] = e.Value; }
protected void RadDropDownList1_SelectedIndexChanged(object sender, DropDownListEventArgs e) { this.LoadDepartmentDropDownList(); }
protected void ddlStatusOfPOEdit_ItemSelected(object sender, DropDownListEventArgs e) { }
protected void ddlShop_SelectedIndexChanged(object sender, DropDownListEventArgs e) { if (ddlShop.SelectedIndex > 0) { int shopId = int.Parse(ddlShop.SelectedValue); Shop shop = new Shop().GetShopById(shopId); txtMonthlyRent.Text = shop.MonthlyRent.ToString(); txtServiceCharge.Text = shop.ServiceCharge.ToString(); txtAdvance.Text = shop.AdvanceAmount.ToString(); } }
protected void ddlExistingUser_SelectedIndexChanged(object sender, DropDownListEventArgs e) { try { var manager = Context.GetOwinContext().GetUserManager<ApplicationUserManager>(); var user = manager.FindByName(ddlExistingUser.SelectedText); if (user != null) { txtSelectedFirstName.Text = user.FirstName; txtSelectedLastName.Text = user.LastName; txtSelectedUserName.Text = user.UserName; txtSelectedEmail.Text = user.Email; } } catch (System.Exception ex) { _newLogic.WriteExceptionToDB(ex, "ddlExistingUser_SelectedIndexChanged"); } }
protected void ddlValoresAceptadosDep_SelectedIndexChanged(object sender, DropDownListEventArgs e) { activarOtroValorDep(Convert.ToInt32(e.Value)); }
protected void rdropList_SelectedIndexChanged(object sender, DropDownListEventArgs e) { if (rdeopType.SelectedValue == "Role") { List<AppPermission> listR = new AppPermission().GetAllAppPermission(1).Where(ulist => ulist.RoleId == int.Parse(rdropList.SelectedValue)).ToList(); if (listR.Count == 0) { this.LoadAppfunctionality(); _isNewEntry = true; } else { List<AppPermission> objApppermision = new AppPermission().GetViewAllAppPermission(1).Where(ulist => ulist.RoleId == int.Parse(rdropList.SelectedValue)).ToList(); DataTable dtpermition = GetDatatablePermition(); foreach (AppPermission func in objApppermision) { DataRow row = dtpermition.NewRow(); row["PermitionId"] = func.Id; row["Id"] = func.FunctionalityId; row["Functionality"] = func.FunctionalityName; row["IsInsert"] = func.IsInsert; row["IsUpdate"] = func.IsUpdate; row["IsDelete"] = func.IsDelete; row["IsView"] = func.IsView; row["IsApprove"] = func.IsApprove; dtpermition.Rows.Add(row); } RadGridAppFunction.DataSource = dtpermition; RadGridAppFunction.DataBind(); } } else { List<AppPermission> listU = new AppPermission().GetViewAllAppPermission(1).Where(ulist => ulist.UserId == int.Parse(rdropList.SelectedValue)).ToList(); if (listU.Count == 0) { this.LoadAppfunctionality(); _isNewEntry = true; } else { List<AppPermission> objApppermision = new AppPermission().GetAllAppPermission(1).Where(ulist => ulist.UserId == int.Parse(rdropList.SelectedValue)).ToList(); DataTable dtpermition = GetDatatablePermition(); foreach (AppPermission func in objApppermision) { DataRow row = dtpermition.NewRow(); row["PermitionId"] = func.Id; row["Id"] = func.FunctionalityId; row["Functionality"] = func.FunctionalityName; row["IsInsert"] = func.IsInsert; row["IsUpdate"] = func.IsUpdate; row["IsDelete"] = func.IsDelete; row["IsView"] = func.IsView; row["IsApprove"] = func.IsApprove; dtpermition.Rows.Add(row); } RadGridAppFunction.DataSource = dtpermition; RadGridAppFunction.DataBind(); } } }
protected void parentIdDropDownList_SelectedIndexChanged(object sender, DropDownListEventArgs e) { }
protected void ddlAmortizing_SelectedIndexChanged(object sender, DropDownListEventArgs e) { // timer1.Enabled = false; if (ddlAmortizing.SelectedValue == "Yes") { trNo.Visible = true; trDate.Visible = true; tblAmortisation.Visible = true; } else { txtAmortisationsStartDate.Clear(); txtAmortisations.Text = string.Empty; dt1.Clear(); Session.Remove("LoanScheduleData"); pnlAmortizing.Visible = false; grdAmortizing.Visible = false; btnCalculatSchedule.Visible = false; trNo.Visible = false; trDate.Visible = false; tblAmortisation.Visible = false; } // timer1.Enabled = true; }
protected void chartOfAccountTypeDropDownList_SelectedIndexChanged(object sender, DropDownListEventArgs e) { }
protected void departmentDropDownList_IndexChanged(object sender, DropDownListEventArgs e) { int id = int.Parse(departmentDropDownList.SelectedItem.Value); this.LoadDesignationDropDownList(id); }
protected void companyIdRadDropDownList1_SelectedIndexChanged(object sender, DropDownListEventArgs e) { }
protected void ddlIps_SelectedIndexChanged(object sender, DropDownListEventArgs e) { cargarSedeIPS(); }
protected void contactDropDownList_SelectedIndexChanged(object sender, DropDownListEventArgs e) { }
protected void departmentIdRadDropDownList_ItemSelected(object sender, DropDownListEventArgs e) { }
protected void RadDropDownListLanguage_SelectedIndexChanged(object sender, DropDownListEventArgs e) { DropDownListItem selectedDropDownListItem = RadDropDownListLanguage.SelectedItem; switch (selectedDropDownListItem.Value) { case "fr-FR": Session["CurrentLanguage"] = "fr-FR"; break; case "nl-NL": Session["CurrentLanguage"] = "nl-NL"; break; default: Session["CurrentLanguage"] = "en-US"; break; } Response.Redirect(Request.RawUrl); }
protected void ddlVendorsGlobal_SelectedIndexChanged(object sender, DropDownListEventArgs e) { try { RebindGrids(); } catch (Exception ex) { throw; } }