Exemple #1
0
        public void comLineSideStock_DataBinding(object sender, EventArgs e)
        {
            ASPxComboBox comStock          = sender as ASPxComboBox;
            List <LineSideStoreEntity> all = LinesideStoreFactory.GetLineSideStore();

            comStock.DataSource = all;
            comStock.TextField  = "STORE_NAME";
            comStock.ValueField = "STORE_CODE";
        }
Exemple #2
0
        public void BindData()
        {
            List <LinesideAutoIssueEntity> allEntity = LinesideAutoIssueFactory.GetAll();

            ASPxGridView1.DataSource = allEntity;

            GridViewDataComboBoxColumn comStock = ASPxGridView1.Columns["LINESIDE_STORE_CODE"] as GridViewDataComboBoxColumn;
            List <LineSideStoreEntity> all      = LinesideStoreFactory.GetLineSideStore();

            comStock.PropertiesComboBox.DataSource = all;
            comStock.PropertiesComboBox.TextField  = "STORE_NAME";
            comStock.PropertiesComboBox.ValueField = "STORE_CODE";

            GridViewDataComboBoxColumn comResourceStore = ASPxGridView1.Columns["RESOURCE_STORE"] as GridViewDataComboBoxColumn;
            List <LineSideStoreEntity> _all             = LinesideStoreFactory.GetMaterialStore();

            comResourceStore.PropertiesComboBox.DataSource = _all;
            comResourceStore.PropertiesComboBox.TextField  = "STORE_NAME";
            comResourceStore.PropertiesComboBox.ValueField = "STORE_CODE";

            GridViewDataComboBoxColumn comType = ASPxGridView1.Columns["BATCH_TYPE"] as GridViewDataComboBoxColumn;

            DataTable dt = new DataTable();

            dt.Columns.Add("text");
            dt.Columns.Add("value");
            dt.Rows.Add("天", 0);
            dt.Rows.Add("周", 1);
            dt.Rows.Add("旬", 2);
            dt.Rows.Add("月", 3);
            dt.Rows.Add("季度", 4);

            comType.PropertiesComboBox.DataSource = dt;
            comType.PropertiesComboBox.TextField  = "text";
            comType.PropertiesComboBox.ValueField = "value";

            ASPxGridView1.DataBind();
        }