예제 #1
0
파일: POListForm.cs 프로젝트: xiciliu/MEMS
        protected override void AddObject()
        {
            var frm = new POInfoForm(Common.frmmodetype.add, null);

            refreshFormData(frm);
            gvPO_FocusedRowChanged(null, null);
        }
예제 #2
0
        protected override void custom3()
        {
            if (this.gvPO.GetFocusedRow() != null)
            {
                T_PurchaseOrder po = this.gvPO.GetFocusedRow() as T_PurchaseOrder;

                var frm = new POInfoForm(po);
                refreshFormData(frm);
            }
        }
예제 #3
0
        protected override void custom1()
        {
            if (this.gvPO.GetFocusedRow() != null)
            {
                T_PurchaseOrder po = this.gvPO.GetFocusedRow() as T_PurchaseOrder;

                var frm = new POInfoForm(po);
                refreshFormData(frm);
            }
        }
예제 #4
0
파일: POListForm.cs 프로젝트: xiciliu/MEMS
 protected override void EditObject()
 {
     if (this.gvPO.GetFocusedRow() != null)
     {
         T_PurchaseOrder po = this.gvPO.GetFocusedRow() as T_PurchaseOrder;
         if (po.postatus == (int)POStatus.编制 || po.postatus == (int)POStatus.审批驳回)
         {
             var frm = new POInfoForm(Common.frmmodetype.edit, po);
             refreshFormData(frm);
             gvPO_FocusedRowChanged(null, null);
         }
         else
         {
             MessageBox.Show("非编制状态下不能修改采购单");
         }
     }
 }
예제 #5
0
파일: POListForm.cs 프로젝트: eseawind/MEMS
 protected override void AddObject()
 {
     var frm = new POInfoForm(Common.frmmodetype.add, null);
     refreshFormData(frm);
     gvPO_FocusedRowChanged(null, null);
 }
예제 #6
0
파일: POListForm.cs 프로젝트: eseawind/MEMS
 protected override void EditObject()
 {
     if (this.gvPO.GetFocusedRow() != null)
     {
         T_PurchaseOrder po = this.gvPO.GetFocusedRow() as T_PurchaseOrder;
         if (po.postatus == (int)POStatus.编制 || po.postatus == (int)POStatus.审批驳回)
         {
             var frm = new POInfoForm(Common.frmmodetype.edit, po);
             refreshFormData(frm);
             gvPO_FocusedRowChanged(null, null);
         }
         else
         {
             MessageBox.Show("非编制状态下不能修改采购单");
         }
     }
 }