public ThreadDetailDTO GetThreadDetails(Guid threadId)
        {
            var result = ApiUtility.GetData <ThreadDetailDTO>(UrlUtility.GetApiUrl(this.BaseApiUrl, "GetThreadDetails", "EngineProcess", this.Token, "threadId=" + threadId), this.Token, this.UserName, this.ClientIp, this.ClientId, this.IsEncrypted);

            result.ListOverviewForms.ForEach(c => c?.FormModel?.ContentHtml?.ConvertChildrenToObject());
            return(result);
        }
        /// <summary>
        /// it is called when a pop up should be open.
        /// </summary>
        public GetTaskFormResponseModel GetForm(Guid threadTaskID, Guid formID, List <QueryModel> baseQueryModel, bool?chechAccess = null)
        {
            var parameters = this.MixParams(baseQueryModel, $"threadTaskID={threadTaskID.ToStringObj()}",
                                            $"formID={ formID}", (!chechAccess.HasValue ? "" : $"cAccess={chechAccess.Value}"));
            string url = UrlUtility.GetApiUrl(this.BaseApiUrl, "GetForm", "EngineProcess", this.Token, parameters);
            GetTaskFormResponseModel getTaskFormResponseModel = ApiUtility.GetData <GetTaskFormResponseModel>(url, this.Token, this.UserName, this.ClientIp, this.ClientId, this.IsEncrypted);

            //convert jobject to object
            getTaskFormResponseModel.EngineFormModel?.FormModel?.ContentHtml?.ConvertChildrenToObject();
            return(getTaskFormResponseModel);
        }
Exemple #3
0
        public GetFormResponseModel GetForm(Guid?applicationPageId, Guid?formID, List <QueryModel> baseQueryModel)
        {
            var parameters = this.MixParams(baseQueryModel,
                                            (!applicationPageId.HasValue ? "" : $"applicationPageId={ applicationPageId}"),
                                            (!formID.HasValue ? "" : $"formID={ formID}"));
            string url = UrlUtility.GetApiUrl(this.BaseApiUrl, "GetForm", "EngineApplication", "", parameters);
            GetFormResponseModel getFormResponseModel = ApiUtility.GetData <GetFormResponseModel>(url, this.Token, this.UserName, this.ClientIp, this.ClientId, this.IsEncrypted);

            //convert jobject to object
            getFormResponseModel?.EngineFormModel?.FormModel?.ContentHtml?.ConvertChildrenToObject();
            return(getFormResponseModel);
        }
 public ProcessDTO GetInfo(Guid processId)
 {
     return(ApiUtility.GetData <ProcessDTO>(UrlUtility.GetApiUrl(this.BaseApiUrl, "GetInfo", "EngineProcess", this.Token, "processId=" + processId), this.Token, this.UserName, this.ClientIp, this.ClientId, this.IsEncrypted));
 }
 public List <Guid> GetAccessibleThreadTasks(Guid threadId)
 {
     return(ApiUtility.GetData <List <Guid> >(UrlUtility.GetApiUrl(this.BaseApiUrl, "GetAccessibleThreadTasks", "EngineProcess", this.Token, "threadId=" + threadId), this.Token, this.UserName, this.ClientIp, this.ClientId, this.IsEncrypted));
 }
Exemple #6
0
 public DynamicFormDTO GetInfo(Guid Id)
 {
     return(ApiUtility.GetData <DynamicFormDTO>(UrlUtility.GetApiUrl(this.BaseApiUrl, "GetInfo", "EngineForm", this.Token, "Id=" + Id), this.Token, this.UserName, this.ClientIp, this.ClientId, this.IsEncrypted));
 }