Example #1
0
        //配置一个记录
        private void confMaterail()
        {
            if (dgv_MaterailList.RowCount <= 0)
            {
                return;
            }

            int rowIndex = dgv_MaterailList.CurrentCell.RowIndex;

            if (rowIndex < 0)
            {
                return;
            }

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

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

            MaterialConfForm o = new MaterialConfForm(t_id, 1);

            o.StartPosition = FormStartPosition.CenterParent;
            o.ShowDialog();
            InitGridList();
        }
Example #2
0
 /************************************************************************
  ********************         自定义函数        *************************
  ************************************************************************/
 //添加一个记录
 private void addMaterail()
 {
     MaterialConfForm o = new MaterialConfForm(3);
     o.StartPosition = FormStartPosition.CenterParent;
     if (o.ShowDialog() == DialogResult.OK)
     {
         InitGridList();
     }
 }
Example #3
0
        /************************************************************************
        ********************         自定义函数        *************************
        ************************************************************************/

        //添加一个记录
        private void addMaterail()
        {
            MaterialConfForm o = new MaterialConfForm(3);

            o.StartPosition = FormStartPosition.CenterParent;
            if (o.ShowDialog() == DialogResult.OK)
            {
                InitGridList();
            }
        }
Example #4
0
        //配置一个记录
        private void confMaterail()
        {
            if(dgv_MaterailList.RowCount<=0) return;

            int rowIndex = dgv_MaterailList.CurrentCell.RowIndex;
            if (rowIndex < 0) return;

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

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

            MaterialConfForm o = new MaterialConfForm(t_id, 1);
            o.StartPosition = FormStartPosition.CenterParent;
            o.ShowDialog();
            InitGridList();
        }