Esempio n. 1
0
        /// <summary>
        /// 绑定Grid数据
        /// </summary>
        private void BindGrid()
        {
            VendorRule rule = new VendorRule();

            gridView1.GridControl.DataSource = rule.RShow(conditionstr, ProcessGrid.GetQueryField(gridView1));
            gridView1.GridControl.Show();
        }
Esempio n. 2
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            VendorRule rule = new VendorRule();
            DataTable  dt   = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("AddFlag", "0 AddFlag"));

            //if (FormListAID == (int)EnumVendorType.工厂)
            //{
            //    SetGrid(dt);
            //}
            gridView1.GridControl.DataSource = dt;
            gridView1.GridControl.Show();
        }