Beispiel #1
0
    private void BindValues()
    {
        string status = "LM.ListName = 'UserEmpStatus' And LD.fListMasterID = LM.pListMasterID ";

        employee.BindListControls(ddlStatus, "ListDesc", "ListValue", employee.GetBindData(status), "--Select--");

        string position = "LM.ListName = 'UserEmpJobCd' And LD.fListMasterID = LM.pListMasterID ";

        employee.BindListControls(ddlPosition, "ListValue", "ListValue", employee.GetBindData(position), "--Select--");

        string shift = "LM.ListName = 'UserEmpShift' And LD.fListMasterID = LM.pListMasterID ";

        employee.BindListControls(ddlShift, "ListDesc", "ListValue", employee.GetBindData(shift), "--Select--");

        string pay = "LM.ListName = 'UserEmpPayCode' And LD.fListMasterID = LM.pListMasterID ";

        employee.BindListControls(ddlPayCode, "ListDesc", "ListValue", employee.GetBindData(pay), "--Select--");

        string salutation = "LM.ListName = 'EmpDataSalutation' And LD.fListMasterID = LM.pListMasterID ";

        employee.BindListControls(ddlSalutation, "ListDesc", "ListValue", employee.GetBindData(salutation), "--Select--");

        employee.BindListControls(ddlHireLocation, "Name", "Code", employee.GetLocationName(), "-- Select Location --");
        employee.BindListControls(ddlPayrollLoc, "Name", "Code", employee.GetLocationName(), "--Select Loacation--");
    }