Ejemplo n.º 1
0
 void lnkNonNew_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (frmTmpOper == null)
     {
         frmTmpOper = new FrmSaleDeliverPlanTmpOper();
         new FrmStyle(frmTmpOper).SetPopFrmStyle(this);
         frmTmpOper.AffterSave += new FrmSaleDeliverPlanTmpOper.AffterSaveDelegate(frmTmpOper_AffterSave);
     }
     frmTmpOper.NewNote();
     frmTmpOper.ShowDialog();
 }
Ejemplo n.º 2
0
        void dgrdvPlan_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int irow = e.RowIndex;
            int icol = e.ColumnIndex;

            if ((irow == -1) || (icol == -1))
            {
                return;
            }
            if (this.dgrdvPlan.Columns[icol].Name == this.ColumnbtnEdit.Name)
            {
                long NoteID = (long)this.dtblPlanNotes.DefaultView[irow]["NoteID"];
                if (this.dtblPlanNotes.DefaultView[irow]["SaleOrderNoteID"] == DBNull.Value)
                {
                    if (frmTmpOper == null)
                    {
                        frmTmpOper = new FrmSaleDeliverPlanTmpOper();
                        new FrmStyle(frmTmpOper).SetPopFrmStyle(this);
                        frmTmpOper.AffterSave += new FrmSaleDeliverPlanTmpOper.AffterSaveDelegate(frmTmpOper_AffterSave);
                    }
                    frmTmpOper.Edit(NoteID);
                    frmTmpOper.ShowDialog();
                }
                else
                {
                    if (this.frmOper == null)
                    {
                        this.frmOper = new FrmSaleDeliverPlanOper();
                        new FrmStyle(frmOper).SetPopFrmStyle(this);
                        frmOper.AffterSave += new FrmSaleDeliverPlanOper.AffterSaveDelegate(frmOper_AffterSave);
                    }
                    this.frmOper.Edit(NoteID);
                    this.frmOper.ShowDialog();
                }
            }
        }