コード例 #1
0
        private void DoByStepIndex()
        {
            switch (DataConvert.CLng(Step_DP.SelectedValue))
            {
            case 2:    //排序
            {
                //-------------
                DataTable dt = new DataTable();
                if (!string.IsNullOrEmpty(T1))
                {
                    dt = DS_GetByDP(D1).Field_List(T1);
                    Where_Table_DP.SelectedIndex = 0;
                    Order_Table_DP.SelectedIndex = 0;
                }
                else if (!string.IsNullOrEmpty(T2))
                {
                    dt = DS_GetByDP(D2).Field_List(T2);
                    Where_Table_DP.SelectedIndex = 1;
                    Order_Table_DP.SelectedIndex = 1;
                }
                Where_Field_DP.DataSource = dt;
                Where_Field_DP.DataBind();
                Order_Field_DP.DataSource = dt;
                Order_Field_DP.DataBind();
            }
            break;

            case 3:    //Final
                SetField_div(SqlField_T.Text);
                Script("InitLabelDrag();InitEditor()");
                break;
            }
        }
コード例 #2
0
        protected void Order_Table_DP_SelectedIndexChanged(object sender, EventArgs e)
        {
            DataTable dt = DS_FieldList(Order_Table_DP);

            dt.DefaultView.Sort       = "Name";
            Order_Field_DP.DataSource = dt;
            Order_Field_DP.DataBind();
        }
コード例 #3
0
ファイル: LabelSql.aspx.cs プロジェクト: zoomlacms/web003
    protected void Order_Table_DP_SelectedIndexChanged(object sender, EventArgs e)
    {
        string    tbname = Where_GetTbName(Order_Table_DP);
        DataTable dt     = DBCenter.DB.Field_List(tbname);

        dt.DefaultView.Sort       = "Name";
        Order_Field_DP.DataSource = dt;
        Order_Field_DP.DataBind();
    }