Esempio n. 1
0
 void ShowFrmDetail(long NoteID)
 {
     if (frmDetail == null)
     {
         frmDetail = new JERPApp.Supply.OutSrc.Report.Bill.FrmOutSrcOrderNote();
         new FrmStyle(frmDetail).SetPopFrmStyle(this);
     }
     frmDetail.Detail(NoteID);
     frmDetail.ShowDialog();
 }
Esempio n. 2
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.ColumnbtnCancel.Name)
            {
                DialogResult rul = MessageBox.Show("您将取消当前的审核吗?", "操作确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (rul == DialogResult.Yes)
                {
                    string errormsg = string.Empty;
                    bool   flag     = this.accNotes.UpdateOutSrcOrderNotesCancelConfirm(ref errormsg, NoteID);
                    if (flag)
                    {
                        this.dtblConfirm.Rows.Remove(this.dtblConfirm.DefaultView[irow].Row);
                        this.LoadNonConfirm();
                    }
                }
            }
            if (this.dgrdvConfirm.Columns[icol].Name == this.ColumnNoteCode.Name)
            {
                if (frmDetail == null)
                {
                    frmDetail = new JERPApp.Supply.OutSrc.Report.Bill.FrmOutSrcOrderNote();
                    new FrmStyle(frmDetail).SetPopFrmStyle(this);
                }
                frmDetail.Detail(NoteID);
                frmDetail.ShowDialog();
            }
        }