Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DListOrganizations.DataSource = DALC.GetDataTable("ID,Name", "AdoptionOrganizations", "Where AdoptionOrganizationsTypesID=20");
         DListOrganizations.DataBind();
         DListOrganizations.Items.Insert(0, new ListItem("- İcra Hakimiyyəti -", "-1"));
         BindData();
     }
 }
Exemplo n.º 2
0
    private void BindDList()
    {
        #region FilterDList
        DListFilterOrganizations.DataSource = DALC.GetOrganizations();
        DListFilterOrganizations.DataBind();
        if (DListFilterOrganizations.Items.Count > 1)
        {
            PnlFilterOrganizations.Visible = true;
            DListFilterOrganizations.Items.Insert(0, new ListItem("--", "-1"));
        }
        DListFilterDocType.DataSource = DALC.GetList(Tools.Table.DocumentTypes);
        DListFilterDocType.DataBind();
        DListFilterDocType.Items.Insert(0, new ListItem("--", "-1"));

        #endregion

        #region FormDList

        DListOrganizations.DataSource = DALC.GetOrganizations();
        DListOrganizations.DataBind();

        if (DListOrganizations.Items.Count > 1)
        {
            DListOrganizations.Enabled = true;
            DListOrganizations.Items.Insert(0, new ListItem("--", "-1"));
        }

        DListEducationTypes.DataSource = DALC.GetList(Tools.Table.EducationsTypes);
        DListEducationTypes.DataBind();
        DListEducationTypes.Items.Insert(0, new ListItem("--", "-1"));

        DListDocTypes.DataSource = DALC.GetList(Tools.Table.DocumentTypes);
        DListDocTypes.DataBind();
        DListDocTypes.Items.Insert(0, new ListItem("--", "-1"));

        DListUsersStatus.DataSource = DALC.GetList(Tools.Table.UsersStatus);
        DListUsersStatus.DataBind();
        DListUsersStatus.Items.Insert(0, new ListItem("--", "-1"));

        DListMarital.DataSource = DALC.GetList(Tools.Table.MaritalStatus);
        DListMarital.DataBind();
        DListMarital.Items.Insert(0, new ListItem("--", "-1"));

        #endregion
    }
Exemplo n.º 3
0
    private void BindList()
    {
        DataTable DtContent = DALC.GetDataTable("*", "Contents", "Where ID=1");

        LtrContentTitle.Text = DtContent._Rows("Title");
        LtrContentText.Text  = DtContent._Rows("ContentText");

        DListOrganizations.DataSource = DALC.GetDataTable("ID,Name", "AdoptionOrganizations", "Where AdoptionOrganizationsTypesID=20");
        DListOrganizations.DataBind();
        DListOrganizations.Items.Insert(0, new ListItem("- İcra Hakimiyyəti -", "-1"));

        DListEyeColor.DataSource = DALC.GetDataTable("ID,Name", "Colors", "");
        DListEyeColor.DataBind();
        DListEyeColor.Items.Insert(0, new ListItem("- Göz rəngi -", "-1"));

        DListHairColor.DataSource = DALC.GetDataTable("ID,Name", "Colors", "");
        DListHairColor.DataBind();
        DListHairColor.Items.Insert(0, new ListItem("- Saç rəngi -", "-1"));
    }
Exemplo n.º 4
0
    private void BindDListAddCourses()
    {
        DListOrganizations.DataSource = DALC.GetOrganizations();
        DListOrganizations.DataBind();
        if (DListOrganizations.Items.Count > 1)
        {
            DListOrganizations.Items.Insert(0, new ListItem("--", "-1"));
        }
        DListOrganizations_SelectedIndexChanged(null, null);

        DListServices.DataSource = DALC.GetServicesForServicesCourses();
        DListServices.DataBind();
        DListServices.Items.Insert(0, new ListItem("--", "-1"));

        DListServicesCoursesTypes.DataSource = DALC.GetList(Tools.Table.ServicesCoursesTypes);
        DListServicesCoursesTypes.DataBind();
        DListServicesCoursesTypes.Items.Insert(0, new ListItem("--", "-1"));

        DListLessonsWeekDay.DataSource = Config.GetNumber(1, 5);
        DListLessonsWeekDay.DataBind();
    }
Exemplo n.º 5
0
    private void BindDList()
    {
        DListEventsTypes.DataSource = DALC.GetList(Tools.Table.EventsTypes);
        DListEventsTypes.DataBind();
        DListEventsTypes.Items.Insert(0, new ListItem("--", "-1"));

        DListOrganizations.DataSource = DALC.GetOrganizations();
        DListOrganizations.DataBind();

        if (DListOrganizations.Items.Count > 1)
        {
            DListOrganizations.Items.Insert(0, new ListItem("--", "-1"));
        }

        DListEventsDirectionTypes.DataSource = DALC.GetList(Tools.Table.EventsDirectionTypes);
        DListEventsDirectionTypes.DataBind();
        DListEventsDirectionTypes.Items.Insert(0, new ListItem("--", "-1"));

        DListEventsPolicyTypes.DataSource = DALC.GetList(Tools.Table.EventsPolicyTypes);
        DListEventsPolicyTypes.DataBind();
        DListEventsPolicyTypes.Items.Insert(0, new ListItem("--", "-1"));
    }