Example #1
0
 void barBtnInvalid_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var et = gcUnAudit.GetFocusedDataSource<UltraDbEntity.T_ERP_InStockMatMaster>();
     if (null == et) return;
     var vw = new Ultra.FASControls.Views.InvalidReasonView();
     if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         et.InvalidRemark = vw.Reason;
         et.Invalider = CurUser;
         //作废操作
         var rd = SerNoCaller.Calr_PackInStock.ExecSql("exec P_ERP_InvalidMateriaInStock @0,@1,@2",
               et.InStockNo, CurUser, et.InvalidRemark);
         if (!rd.IsOK)
         {
             MsgBox.ShowErrMsg(rd.ErrMsg);
             return;
         }
         barBtnRefresh_ItemClick(null, null);
     }
 }
Example #2
0
 /// <summary>
 /// 作废
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void barBtnInvalid_ItemClick(object sender, ItemClickEventArgs e)
 {
     var et = gcSubmit.GetFocusedDataSource<T_ERP_IvtCheckMaster>();
     if (null == et) return;
     var vw = new Ultra.FASControls.Views.InvalidReasonView();
     if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         ChengIvk("Invalid", vw.Reason, et);
 }