Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Common.FillDropDownList(objPayMstMgr.SelectFiscalYear(0, "T"), ddlFiscalYear, "FISCALYRTITLE", "FISCALYRID", false);
         // Common.FillDropDownList(objEmpMgr.SelectEmpNameWithIDForIT("A", ddlFiscalYear.SelectedValue.Trim()), ddlEmployee, "EmpName", "EmpID", true,"All");
         Common.FillDropDownList(objMastMg.GetDivision(), ddlIntervention, "DivisionName", "DivisionID", true, "Select");
     }
 }
 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_All(objMastMg.GetDivision(), ddlIntervention);
         //Common.FillDropDownList(objMastMg.SelectEmpGroup(0), ddlGroup, "GrpName", "EmpGrpID", false);
     }
 }
Example #3
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.SelectDivision(0), ddlLocation, "PostingDivName", "PostingDivId", true, "All");
         Common.FillDropDownList(objPayrollMgr.SelectFiscalYear(0, "T"), ddlFinYear, "FISCALYRTITLE", "FISCALYRID", false);
         Common.FillDropDownList(objMastMg.GetDivision(), ddlIntervention, "DivisionName", "DivisionID", true, "Select");
     }
 }
Example #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         lblMsg.Text = "";
         this.EntryMode(false);
         Common.FillDropDownListWithAll(objTMM.GetDivision(), ddlIntervention, "DivisionName", "DivisionID");
         Common.FillDropDownList(objTMM.SelectOfficeTypeList(0), ddlOffType, "TypeNameLvl", "TypeID", true);
         Common.FillDropDownListWithAll(objTMM.SelectOfficeTypeList(Convert.ToDecimal(ddlIntervention.SelectedValue.Trim())), ddlOffTypeSearch, "TypeName", "TypeID");
         Common.FillDropDownList(objTMM.SelectHomeDivision(0, "Y"), ddlDivision, "DivName", "DivId", true);
         this.OpenRecord(0, 0, 0);
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            hfIsUpdate.Value = "N";
            Common.EmptyTextBoxValues(this);
            lblMsg.Text = "";
            this.EntryMode(false);

            //Common.FillDropDownList(objEmpMgr.SelectSupervisor(), ddlEmployee, "EMPNAME", "EMPID", true, "Select");
            Common.FillDropDownList(objMstMgr.SelectSalaryHeadCategoryWise("V"), ddlSalHead, "HEADNAME", "SHEADID", true, "Select");
            Common.FillDropDownList_All(objMasMgr.GetDivision(), ddlIntervention);
            this.OpenRecord("0");
        }
    }
Example #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(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");
     }
 }
Example #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Common.FillMonthList(ddlMonth);
            ddlMonth.SelectedValue = Convert.ToString(DateTime.Today.Month);
            Common.FillDropDownList(objPayrollMgr.SelectFiscalYear(0, "T"), ddlFiscalYear, "FISCALYRTITLE", "FISCALYRID", false);
            txtAssYear.Text = DateTime.Now.Year.ToString();
            Common.FillDropDownList(objMasMgr.SelectEmpType(0), ddlEmpType, false);
            Common.FillDropDownList(objMasMgr.GetDivision(), ddlIntervention, "DivisionName", "DivisionID", true, "Select");
        }
        ScriptManager _ScriptMan = ScriptManager.GetCurrent(this);

        _ScriptMan.AsyncPostBackTimeout = 1200;
        _ScriptMan.RegisterPostBackControl(this.btnExport);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Common.FillDropDownList_All(objMasMgr.SelectTrainingName(0, "A"), ddlTrainingName);
            Common.FillDropDownList_All(objMasMgr.SelectLearningArea(0), ddlLearningArea);
            Common.FillDropDownList(objPayMgr.SelectFiscalYear(0, "FA"), ddlFiscalYr, "FISCALYRTITLE", "FISCALYRID", false);
            Common.FillDropDownList_All(objMasMgr.SelectDepartment(0), ddlProgDept);
            Common.FillDropDownList_All(objMasMgr.GetDivision(), ddlIntervention);
            //Common.FillDropDownList_All(objMasMgr.GetOfficety("0"), ddlSalLoc);
            //Common.FillDropDownList_All(objMasMgr.GetOfficeList("0"), ddlSalLoc);
            Common.FillDropDownList_All(objEmp.SelectEmpNameWithID("A"), ddlEmployeeName);

            ddlFiscalYr.SelectedIndex = 0;
            this.PanelVisibilityMst("0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "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);
         txtIssueDate.Text      = Common.DisplayDate(Common.SetDate(DateTime.Today.ToShortDateString()));
         //txtDateFrom.Text = "21" + "/" + DateTime.Today.Month.ToString() + "/" + DateTime.Today.Year.ToString();
         //txtDateTo.Text = Convert.ToString(Common.GetMonthDay(DateTime.Today)) + "/" + (DateTime.Today.Month+1). + "/" + DateTime.Today.Year.ToString();
         //this.FillGenerateDropDownList();
         Common.FillDropDownList(objPayOptMgr.GetMonthlyPayrollCycleData(), ddlMPC, "MPCTITLE", "MPCID", false);
         Common.FillDropDownList(objMastMg.SelectEmpType(0), ddlEmpType, "TypeName", "EmpTypeID", false);
         Common.FillDropDownList_All(objMastMg.GetDivision(), ddlIntervention);
     }
 }
Example #10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //hfIsUpdate.Value = "Y";
            // Common.EmptyTextBoxValues(this);
            lblMsg.Text = "";
            this.EntryMode(false);
            Common.FillDropDownList(objPayMstMgr.SelectFiscalYear(0, "F"), ddlFiscalYear, "FISCALYRTITLE", "FISCALYRID", false);
            //Common.FillDropDownList(objPayMstMgr.SelectFiscalYear(0, "T"), ddlFiscalYearTax, "FISCALYRTITLE", "FISCALYRID", false);
            Common.FillDropDownList_Nil(objMasMgr.SelectReligionList(0), ddlReligion);
            Common.FillDropDownList_Nil(objMasMgr.SelectFestivalList(0), ddlFestival);

            Common.FillMonthList(ddlMonth);
            Common.FillYearList(5, ddlYear);
            ddlMonth.SelectedValue = Convert.ToString(DateTime.Today.Month);
            ddlYear.SelectedValue  = Convert.ToString(DateTime.Today.Year);
            btnDelete.Enabled      = false;
            Common.FillDropDownList(objMasMgr.SelectEmpType(0), ddlEmpType, true);

            Common.FillDropDownList_All(objMasMgr.GetDivision(), ddlIntervention);
            // this.OpenRecord("0");
        }
    }
Example #11
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(objEmp.SelectEmpNameWithID("A"), ddlEmployee, "EmpName", "EmpID", false);
         Common.FillDropDownList_All(objMasMgr.GetDivision(), ddlIntervention);
         if (Session["ISADMIN"].ToString() == "N")
         {
             ddlEmployee.SelectedValue = Session["EMPID"].ToString().ToUpper().Trim();
             ddlEmployee.Enabled       = false;
         }
         else if (Session["ISADMIN"].ToString() == "Y")
         {
             if (Session["USERID"].ToString().ToUpper() != "ADMIN")
             {
                 ddlEmployee.SelectedValue = Session["EMPID"].ToString().ToUpper();
             }
         }
     }
 }
 //Start data binding
 protected void Bind_ddlDivision()
 {
     Common.FillDropDownList_All(objMasMgr.GetDivision(), ddlDivision);
 }