コード例 #1
0
    public void LoadDetails()
    {
        ddlJournalYear.DataSource     = EmployeeJournal.GetDSLJournalYearsALL();
        ddlJournalYear.DataValueField = "pvalue";
        ddlJournalYear.DataTextField  = "ptext";
        ddlJournalYear.DataBind();

        ddlJournalDates.DataSource     = EmployeeJournal.GetDSLJournalDatesALL(ddlJournalYear.SelectedValue.ToString());
        ddlJournalDates.DataValueField = "pvalue";
        ddlJournalDates.DataTextField  = "ptext";
        ddlJournalDates.DataBind();

        ddlDivision.DataSource     = clsDivision.GetDdlDsBasedOnApproverModule(Request.Cookies["Speedo"]["UserName"].ToString());
        ddlDivision.DataValueField = "pvalue";
        ddlDivision.DataTextField  = "ptext";
        ddlDivision.DataBind();
        // ddlDivision.SelectedValue = clsEmployee.GetDivisionCode(Request.Cookies["Speedo"]["UserName"].ToString());

        ddlDepartment.DataSource     = clsDepartment.GetDdlDsBasedOnModuleApprover(ddlDivision.SelectedValue.ToString(), Request.Cookies["Speedo"]["UserName"].ToString());
        ddlDepartment.DataValueField = "pvalue";
        ddlDepartment.DataTextField  = "ptext";
        ddlDepartment.DataBind();
        //ddlDepartment.SelectedValue = clsEmployee.GetDepartmentCode(Request.Cookies["Speedo"]["UserName"].ToString());

        ddlEmployee.DataSource     = clsEmployee.DSLEmployeeList(ddlDepartment.SelectedValue.ToString());
        ddlEmployee.DataValueField = "pvalue";
        ddlEmployee.DataTextField  = "ptext";
        ddlEmployee.DataBind();
    }
コード例 #2
0
    protected void ddlJournalYear_SelectedIndexChanged(object sender, EventArgs e)
    {
        ddlJournalDates.DataSource     = EmployeeJournal.GetDSLJournalDatesALL(ddlJournalYear.SelectedValue.ToString());
        ddlJournalDates.DataValueField = "pvalue";
        ddlJournalDates.DataTextField  = "ptext";
        ddlJournalDates.DataBind();

        try
        {
            ddlJournalDates.SelectedValue = WeekYear.GetActiveWeekCode();
        }
        catch { }
    }
コード例 #3
0
    public void LoadDetails()
    {
        ddlJournalYear.DataSource     = EmployeeJournal.GetDSLJournalYearsALL();
        ddlJournalYear.DataValueField = "pvalue";
        ddlJournalYear.DataTextField  = "ptext";
        ddlJournalYear.DataBind();

        ddlJournalDates.DataSource     = EmployeeJournal.GetDSLJournalDatesALL(ddlJournalYear.SelectedValue.ToString());
        ddlJournalDates.DataValueField = "pvalue";
        ddlJournalDates.DataTextField  = "ptext";
        ddlJournalDates.DataBind();
        try
        {
            ddlJournalDates.SelectedValue = WeekYear.GetActiveWeekCode();
        }
        catch { }
    }