示例#1
0
 void ShowFrmDetail(long NoteID)
 {
     if (frmDetail == null)
     {
         frmDetail = new JERPApp.Supply.Material.Report.Bill.FrmBuyOrderNote();
         new FrmStyle(frmDetail).SetPopFrmStyle(this);
     }
     frmDetail.Detail(NoteID);
     frmDetail.ShowDialog();
 }
示例#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.dtblConfirms.DefaultView[irow]["NoteID"];

            if (this.dgrdvConfirm.Columns[icol].Name == this.ColumnbtnCancel.Name)
            {
                DialogResult rut = MessageBox.Show("即将取消当前订单审核,一经取消可以变更订单内容!", "审核确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
                if (rut == DialogResult.Cancel)
                {
                    return;
                }
                string errormsg = string.Empty;
                bool   flag     = this.accNotes.UpdateBuyOrderNotesCancelConfirm(ref errormsg,
                                                                                 NoteID);
                if (flag)
                {
                    MessageBox.Show("成功取消当前审核");
                    this.whereclause = this.iniwhereclause;
                    this.LoadData();
                }
            }
            if (this.dgrdvConfirm.Columns[icol].DataPropertyName == "NoteCode")
            {
                if (frmDetail == null)
                {
                    frmDetail = new JERPApp.Supply.Material.Report.Bill.FrmBuyOrderNote();
                    new FrmStyle(frmDetail).SetPopFrmStyle(this);
                }
                frmDetail.Detail(NoteID);
                frmDetail.ShowDialog();
            }
        }