public override void tool1_Modify_Click(object sender, EventArgs e)
        {
            base.tool1_Modify_Click(sender, e);
            bool bHave    = false;
            int  iOrderID = Convert.ToInt32(this.myDataGridViewHead.CurrentRow.Cells["Pid"].Value);

            foreach (Form childFrm in this.MdiParent.MdiChildren)
            {
                if (childFrm.Name == "FormPackingOutInput")
                {
                    FormPackingOutInput inputForm = (FormPackingOutInput)childFrm;
                    if (inputForm.giOrderID != 0 && inputForm.giOrderID == iOrderID)
                    {
                        bHave = true;
                        childFrm.Activate();
                        break;
                    }
                }
            }
            if (!bHave)
            {
                FormPackingOutInput objForm = new FormPackingOutInput();
                objForm.MdiParent = this.MdiParent;
                objForm.giOrderID = iOrderID;
                objForm.Show();
            }
        }
Пример #2
0
        //出口管理——PACKING LIST(录入)
        private void FormPackingOutInput_Click(object sender, EventArgs e)
        {
            FormPackingOutInput objForm = new FormPackingOutInput();

            objForm.MdiParent = this;
            objForm.Show();
        }
        public override void tool1_Add_Click(object sender, EventArgs e)
        {
            base.tool1_Add_Click(sender, e);
            FormPackingOutInput objForm = new FormPackingOutInput();

            objForm.MdiParent = this.MdiParent;
            objForm.Show();
        }