Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Common.FillMonthList(ddlMonth);
         Common.FillYearList(5, ddlYear);
         ddlMonth.SelectedValue = Convert.ToString(DateTime.Today.Month);
         ddlYear.SelectedValue  = Convert.ToString(DateTime.Today.Year);
         // Common.FillDropDownList(objMastMg.SelectLocation(0), ddlGenerateValue, "PostingPlaceName", "PostingPlaceId", false);
         //Common.FillDropDownList(objPayrollMgr.SelectBankAndBranchList(), ddlBank, "BANKBRANCH", "RoutingNo", true, "Nil");
         //Common.FillDropDownList(objMastMg.SelectEmpGroup(0), ddlGroup, "GrpName", "EmpGrpID", false);
         Common.FillDropDownList_All(objMastMg.GetDivision(), ddlIntervention);
         Common.FillDropDownList(objMastMg.GetSalaryLocationByDivision(Convert.ToInt32(ddlIntervention.SelectedValue.Trim()), "Y", "N"), ddlGenerateValue, "SalLocName", "SalLocId", true, "All");
         Common.FillDropDownList(objPayrollMgr.SelectBankAndBranchList(ddlIntervention.SelectedValue.Trim(), "-1"), ddlBank, "BANKBRANCH", "RoutingNo", true, "All");
     }
 }
Beispiel #2
0
 protected void ddlIntervention_SelectedIndexChanged(object sender, EventArgs e)
 {
     Common.FillDropDownList(objMastMg.GetSalaryLocationByDivision(Convert.ToInt32(ddlIntervention.SelectedValue.Trim()), "Y", "N"), ddlLocation, "SalLocName", "SalLocId", true, "All");
 }
 protected void ddlIntervention_SelectedIndexChanged(object sender, EventArgs e)
 {
     Common.FillDropDownList(objMasMgr.GetSalaryLocationByDivision(Convert.ToInt32(ddlIntervention.SelectedValue.Trim()), "Y", "N"), ddlOffice, "SalLocName", "SalLocId", true, "All");
     ddlEmployee.Items.Clear();
     Common.FillDropDownList(objEmpMgr.SelectEmpNameUsingDivisionSalLoc(ddlIntervention.SelectedValue.Trim(), "-1", "A"), ddlEmployee, "EMPNAME", "EMPID", true, "All");
 }