Beispiel #1
0
        void dgrdvConfirm_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int irow = e.RowIndex;
            int icol = e.ColumnIndex;

            if ((irow == -1) || (icol == -1))
            {
                return;
            }
            long NoteID = (long)this.dtblConfirm.DefaultView[irow]["NoteID"];

            if (this.dgrdvConfirm.Columns[icol].Name == this.ColumnbtnEdit.Name)
            {
                if (frmOper == null)
                {
                    frmOper = new FrmSaleDeliverNoteOper();
                    new FrmStyle(frmOper).SetPopFrmStyle(this);
                    frmOper.AffterSave += new FrmSaleDeliverNoteOper.AffterSaveDelegate(frmOper_AffterSave);
                }
                frmOper.Edit(NoteID);
                frmOper.ShowDialog();
            }
            if (this.dgrdvConfirm.Columns[icol].Name == this.ColumnbtnConfirm.Name)
            {
                if (frmConfirm == null)
                {
                    frmConfirm = new FrmSaleDeliverNoteConfirm();
                    new FrmStyle(frmConfirm).SetPopFrmStyle(this);
                    frmConfirm.AffterSave += new FrmSaleDeliverNoteConfirm.AffterSaveDelegate(frmConfirm_AffterSave);
                }
                frmConfirm.ConfirmOper(NoteID);
                frmConfirm.ShowDialog();
            }
        }
Beispiel #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.ColumnlnkDeliverOper.Name)
            {
                long NoteID = (long)this.dtblPlanItems.DefaultView[irow]["NoteID"];
                if (this.frmOper == null)
                {
                    this.frmOper = new FrmSaleDeliverNoteOper();
                    new FrmStyle(frmOper).SetPopFrmStyle(this);
                    frmOper.AffterSave += new FrmSaleDeliverNoteOper.AffterSaveDelegate(frmOper_AffterSave);
                }
                frmOper.New(NoteID);
                frmOper.ShowDialog();
            }
        }