示例#1
0
 void lnkNonPlanBOM_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (frmOper == null)
     {
         frmOper = new FrmBOMPlanForManuf();
         new FrmStyle(frmOper).SetPopFrmStyle(this.ParentForm);
         frmOper.AffterSave += this.LoadData;
     }
     frmOper.BOMPlanOper();
     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 ManufPlanID = (long)this.dtblNonBOMPlans.DefaultView[irow]["ManufPlanID"];
                if (frmOper == null)
                {
                    frmOper = new FrmBOMPlanForManuf();
                    new FrmStyle(frmOper).SetPopFrmStyle(this.ParentForm);
                    frmOper.AffterSave += this.LoadData;
                }
                frmOper.BOMPlanOper(ManufPlanID);
                frmOper.ShowDialog();
            }
        }