public string[] UpdateUnderManagmentPersons_OrganizationWorkFlowPage(string flowId)
        {
            this.InitializeCulture();

            string[] retMessage = new string[3];

            try
            {
                decimal FlowId = decimal.Parse(this.StringBuilder.CreateString(flowId), CultureInfo.InvariantCulture);
                retMessage[0] = GetLocalResourceObject("RetSuccessType").ToString();
                string SuccessMessageBody = string.Empty;
                FlowBusiness.UpdateUnderManagmentPersons(FlowId);
                SuccessMessageBody = GetLocalResourceObject("EditeUnderManagementPersonnelsComplete").ToString();
                retMessage[1]      = SuccessMessageBody;
                retMessage[2]      = "success";
                return(retMessage);
            }
            catch (UIValidationExceptions ex)
            {
                retMessage = this.exceptionHandler.HandleException(this.Page, ExceptionTypes.UIValidationExceptions, ex, retMessage);
                return(retMessage);
            }
            catch (UIBaseException ex)
            {
                retMessage = this.exceptionHandler.HandleException(this.Page, ExceptionTypes.UIBaseException, ex, retMessage);
                return(retMessage);
            }
            catch (Exception ex)
            {
                retMessage = this.exceptionHandler.HandleException(this.Page, ExceptionTypes.Exception, ex, retMessage);
                return(retMessage);
            }
        }
示例#2
0
 public void Post(FlowBusiness dto)
 {
     if (coll.CountDocuments(x => x.K == dto.K || x.V == dto.V) > 0)
     {
         throw new("business has already exist");
     }
     coll.InsertOne(dto);
 }