Example #1
0
        /// <summary>
        /// 绑定成份信息
        /// </summary>
        private void BindGrid2()
        {
            ItemDtsRule rule = new ItemDtsRule();
            DataTable   dt   = rule.RShow(" AND MainID=" + HTDataID + " ORDER BY Seq", ProcessGrid.GetQueryField(gridView2));

            gridView2.GridControl.DataSource = dt;
            gridView2.GridControl.Show();
        }
Example #2
0
        /// <summary>
        /// 绑定坯布成份信息
        /// (加载坯布时用到)
        /// </summary>
        private void BindGrid2LoadPB(int p_PBItemID)
        {
            ItemDtsRule rule = new ItemDtsRule();
            DataTable   dt   = rule.RShow(" AND MainID=" + p_PBItemID + " ORDER BY Seq", ProcessGrid.GetQueryField(gridView2));

            if (dt.Rows.Count != 0)//有原料信息才绑定
            {
                gridView2.GridControl.DataSource = dt;
                gridView2.GridControl.Show();
            }
        }