async public Task BeginExecuteProject([FromBody] PredefindedModelList <ExecuteProject, int> data)
 {
     await MyWorkFlowBusiness.InitFlow(
         FlowTemplateIdOfExecuteProject,
         new SPExecuteProjectMerge()
     {
         List = data.Model.ToDataTable(),
         ListOfMergeExecuteProjectId = data.List.ToPredefindedKeyFieldsList().ToDataTable()
     }, CurrentUser.Id);
 }
예제 #2
0
 async public Task AddAndPassBudgetProjectOfArgument([FromBody] PredefindedModelList <BudgetProjectOfArgument, PackageOfArgumentBudget> data)
 {
     data.Model.CreatorId = CurrentUser.Id;
     await MyWorkFlowBusiness.InitFlow(
         FlowTemplateIdOfBudgetProject,
         new SPBudgetProjectOfArgumentMerge
     {
         List = data.Model.ToDataTable(),
         PackageOfArgumentBudgetList = data.List.ToDataTable()
     },
         CurrentUser.Id);
 }
예제 #3
0
 async public Task AddDeclareProject([FromBody] ModelWithIsHold <PredefindedModelList <DeclareProject, Package> > modelWithIsHold)
 {
     modelWithIsHold.Data.Model.CreatorId = CurrentUser.Id;
     await MyWorkFlowBusiness.InitFlow(
         FlowTemplateIdOfDeclareProject,
         new SPDeclareProjectMerge
     {
         List        = modelWithIsHold.Data.Model.ToDataTable(),
         PackageList = modelWithIsHold.Data.List.ToDataTable()
     },
         CurrentUser.Id,
         modelWithIsHold.IsHold);
 }