Beispiel #1
0
        private void btnBatchSpecial_Click(object sender, RoutedEventArgs e)
        {
            List <int> requestSysNoList = GetSelected();

            if (requestSysNoList.Count <= 0)
            {
                Window.Alert("请选择需要操作的数据行.");
                return;
            }

            MaintainFacade.SetSpecialShiftType(requestSysNoList, (vmList) => {
                Window.Alert("操作已成功.");
                dgShiftRequestQueryResult.Bind();
            });
        }
Beispiel #2
0
 private void btnSetSpecialShiftType_Click(object sender, RoutedEventArgs e)
 {
     if (SavePreValidate())
     {
         Window.Confirm("确认要进行设置特殊状态操作?", (obj, args) =>
         {
             if (args.DialogResult == DialogResultType.OK)
             {
                 List <int> requestSysNoList = new List <int>();
                 requestSysNoList.Add((int)RequestVM.SysNo);
                 MaintainFacade.SetSpecialShiftType(requestSysNoList, vmList =>
                 {
                     if (vmList != null && vmList.Count > 0)
                     {
                         RequestVM = vmList[0];
                         RequestVM.ShiftShippingTypeList = this.ShiftShippingTypeList;
                         Window.Alert("设置特殊状态成功");
                     }
                 });
             }
         });
     }
 }