public async Task OnContextMenuClick(ContextMenuClickEventArgs <WorkOrderAdapterModel> args)
        {
            CurrentRecord = args.RowInfo.RowData;
            if (args.Item.Id == "查看送審記錄")
            {
                var flowMasterAdapterModel = await FlowMasterService.GetSourceCodeAsync(CurrentRecord.Code);

                if (flowMasterAdapterModel != null)
                {
                    CurrentFlowMasterAdapterModel = flowMasterAdapterModel;
                    ShowReviewFlowDialog          = true;
                }
            }
            else if (args.Item.Id == "送審")
            {
                await SendAsync(CurrentRecord);
            }
        }
Esempio n. 2
0
 public async Task OnContextMenuClick(ContextMenuClickEventArgs <FlowMasterAdapterModel> args)
 {
     CurrentRecord = args.RowInfo.RowData;
     if (args.Item.Id == "查看來源記錄")
     {
         if (CurrentRecord.SourceType == FlowSourceTypeEnum.WorkOrder)
         {
             WorkOrderAdapterModel workOrderAdapterModel = JsonConvert
                                                           .DeserializeObject <WorkOrderAdapterModel>(CurrentRecord.SourceJson);
             CurrentWorkOrderAdapterModel = workOrderAdapterModel;
             ShowReviewWorkOrderDialog    = true;
         }
     }
     else if (args.Item.Id == "送審")
     {
         await SendAsync(CurrentRecord);
     }
 }