示例#1
0
        //配置一个产品记录
        private void confProduct()
        {
            if (this.dgv_ProductList.RowCount <= 0)
            {
                return;
            }

            int rowIndex = dgv_ProductList.CurrentCell.RowIndex;

            if (rowIndex < 0)
            {
                return;
            }

            DataGridViewRow row  = dgv_ProductList.Rows[rowIndex];
            string          t_id = row.Cells["PRODUCTID"].Value.ToString();

            if (string.IsNullOrEmpty(t_id))
            {
                return;
            }
            if (t_id == null)
            {
                MessageBox.Show("请选择一条记录"); return;
            }

            PartsConfForm o = new PartsConfForm(t_id, 2);

            o.StartPosition = FormStartPosition.CenterParent;
            o.ShowDialog();
            this.InitGridList();
        }
示例#2
0
 /************************************************************************
  ********************         自定义函数        *************************
  ************************************************************************/
 //添加一个产品记录
 private void addProduct()
 {
     PartsConfForm o = new PartsConfForm(2);//1 表示半成品
     o.StartPosition = FormStartPosition.CenterParent;
     o.ShowDialog();
     InitGridList();
 }
示例#3
0
        /************************************************************************
        ********************         自定义函数        *************************
        ************************************************************************/

        //添加一个产品记录
        private void addProduct()
        {
            PartsConfForm o = new PartsConfForm(2);//1 表示半成品

            o.StartPosition = FormStartPosition.CenterParent;
            o.ShowDialog();
            InitGridList();
        }
示例#4
0
        //配置一个产品记录
        private void confProduct()
        {
            if (this.dgv_ProductList.RowCount <= 0) return;

            int rowIndex = dgv_ProductList.CurrentCell.RowIndex;

            if (rowIndex < 0)
                return;

            DataGridViewRow row = dgv_ProductList.Rows[rowIndex];
            string t_id = row.Cells["PRODUCTID"].Value.ToString();

            if (string.IsNullOrEmpty(t_id))
            {
                return;
            }
            if (t_id == null)
            {
                MessageBox.Show("请选择一条记录"); return;
            }

            PartsConfForm o = new PartsConfForm(t_id, 2);
            o.StartPosition = FormStartPosition.CenterParent;
            o.ShowDialog();
            this.InitGridList();
        }