コード例 #1
0
        private void FillData()
        {
            aDepartmentDataTable = aDepartmentBusinessLogic.FillDepartment();
            departmentDropDownList.DataTextField  = "DepartmentName";
            departmentDropDownList.DataValueField = "DepartmentId";
            departmentDropDownList.DataSource     = aDepartmentDataTable;
            departmentDropDownList.DataBind();


            aStateDataTable = aAddPatientBusinessLayer.AddPtientBusinessLogicFillState();
            stateDropDownList.DataTextField = aStateDataTable.Columns[0].ToString();
            stateDropDownList.DataSource    = aStateDataTable;
            stateDropDownList.DataBind();

            aPlanDataTable = aAddPatientBusinessLayer.AddPtientBusinessLogicFillPlan();
            planDropDownList.DataTextField = aPlanDataTable.Columns[0].ToString();
            planDropDownList.DataSource    = aPlanDataTable;
            planDropDownList.DataBind();
        }