Example #1
0
        private void AutoAdd()
        {
            生成领料单_获取单据信息 frm = new 生成领料单_获取单据信息(infObj, generate, gdList);

            try
            {
                frm.ShowDialog();
            }
            catch
            {
            }

            if (infObj.gdDt != null)
            {
                if (infObj.gdDt.Rows.Count > 0)
                {
                    infObj.wlRowCount = 0;
                    generate.GetGdScSl(infObj.gdDt);
                    DgvOpt.SelectLastRow(DataGridView_List);
                    uiShow();
                }
                else
                {
                    this.Close();
                }
            }
            else
            {
                this.Close();
            }
        }
Example #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            生成领料单_获取单据信息 frm = new 生成领料单_获取单据信息(infObj, generate);

            if (frm.ShowDialog() == DialogResult.Cancel)
            {
                frm.Dispose();
            }
            infObj.wlRowCount = 0;
            generate.GetGdScSl(infObj.gdDt);
            DgvOpt.SelectLastRow(DataGridView_List);
            uiShow();
        }