Exemplo n.º 1
0
        void dgrdvNote_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int irow = e.RowIndex;
            int icol = e.ColumnIndex;

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

            if (this.dgrdvNote.Columns[icol].Name == this.ColumnbtnEdit.Name)
            {
                if (this.frmOper == null)
                {
                    this.frmOper = new FrmSaleOrderNoteOper();
                    new FrmStyle(frmOper).SetPopFrmStyle(this);
                    frmOper.AffterSave += new FrmSaleOrderNoteOper.AffterSaveDelegate(frmOper_AffterSave);
                }
                frmOper.EditNote(NoteID);
                frmOper.ShowDialog();
            }
            if (this.dgrdvNote.Columns[icol].Name == this.ColumnBtnExport.Name)
            {
                this.printer.ExportToExcel(NoteID);
            }
        }
Exemplo n.º 2
0
 void lnkNew_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (this.frmOper == null)
     {
         this.frmOper = new FrmSaleOrderNoteOper();
         new FrmStyle(frmOper).SetPopFrmStyle(this);
         frmOper.AffterSave += new FrmSaleOrderNoteOper.AffterSaveDelegate(frmOper_AffterSave);
     }
     frmOper.NewNote();
     frmOper.ShowDialog();
 }