Exemple #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");
     }
 }
 protected void ddlOffice_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (ddlOffice.SelectedIndex < 0)
     {
         ddlBank.Items.Clear();
         return;
     }
     Common.FillDropDownList(objPayrollMgr.SelectBankAndBranchList("-1", ddlOffice.SelectedValue.Trim()), ddlBank, "BANKBRANCH", "RoutingNo", true, "Nil");
 }
 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, "LocationName", "LocationID", false);
         Common.FillDropDownList(objPayrollMgr.SelectBankAndBranchList(), ddlBank, "BANKBRANCH", "RoutingNo", true, "Nil");
     }
 }
 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_Nil(objMastMg.SelectClinic("Y"), ddlClinic);
         Common.FillDropDownList(objPayrollMgr.SelectBankAndBranchList(), ddlBank, "BANKBRANCH", "RoutingNo", true, "Nil");
         //Common.FillDropDownList(objMastMg.SelectEmpGroup(0), ddlGroup, "GrpName", "EmpGrpID", false);
     }
 }
 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.SelectEmpType(0), ddlEmpType, "TypeName", "EmpTypeID", false);
         Common.FillDropDownList_All(objMastMg.GetDivision(), ddlIntervention);
         //Common.FillDropDownList(objMastMg.SelectEmpGroup(0), ddlGroup, "GrpName", "EmpGrpID", false);
         //this.GetPendingPaySlipData();
     }
 }
Exemple #6
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(objPayrollMgr.SelectBankAndBranchList(), ddlBank, "BANKBRANCH", "RoutingNo", true, "Nil");
            Common.FillDropDownList(objPayrollMgr.SelectFiscalYear(0), ddlFisYear, "FISCALYRTITLE", "FISCALYRID", false);
            ddlFisYear.SelectedValue = Session["FISCALYRID"].ToString().Trim();

            ddlMonth.Enabled      = true;
            ddlYear.Enabled       = true;
            rdbSalaryType.Enabled = true;
            ddlFisYear.Enabled    = true;
        }
    }