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); }
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); }
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); }