示例#1
0
 void lnkNonPlanBOM_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (frmOper == null)
     {
         frmOper = new FrmBOMPlanForPacking();
         new FrmStyle(frmOper).SetPopFrmStyle(this.ParentForm);
         frmOper.AffterSave += this.LoadData;
     }
     frmOper.PackingPlan();
     frmOper.ShowDialog();
 }
示例#2
0
        void dgrdvNonBOMPlan_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int irow = e.RowIndex;
            int icol = e.ColumnIndex;

            if ((irow == -1) || (icol == -1))
            {
                return;
            }
            if (this.dgrdvNonBOMPlan.Columns[icol].Name == this.ColumnbtnBOMPlan.Name)
            {
                long PackingPlanID = (long)this.dtblNonBOMPlans.DefaultView[irow]["PackingPlanID"];
                if (frmOper == null)
                {
                    frmOper = new FrmBOMPlanForPacking();
                    new FrmStyle(frmOper).SetPopFrmStyle(this.ParentForm);
                    frmOper.AffterSave += this.LoadData;
                }
                frmOper.PackingPlan(PackingPlanID);
                frmOper.ShowDialog();
            }
        }