Exemplo n.º 1
0
        public ActionResult ProcedenciaDelete(int procedenciaId, string description, int companyId, int userId)
        {
            var res = DocumentOrigin.Delete(procedenciaId, companyId);

            if (res.Success)
            {
                Session["Company"] = new Company(companyId);
            }

            return(res);
        }
Exemplo n.º 2
0
        public ActionResult ProcedenciaInsert(int procedenciaId, string description, int companyId, int userId)
        {
            var newProcedencia = new DocumentOrigin
            {
                CompanyId   = companyId,
                Description = description,
                Editable    = true
            };

            var res = newProcedencia.Insert();

            if (res.Success)
            {
                Session["Company"] = new Company(companyId);
            }

            return(res);
        }
Exemplo n.º 3
0
 public CreateApplicationDocumentCommand(long applicationNumber, DocumentContextKind documentContextKind, string arrangementRequestId, string collateralId,
                                         string partyId, string documentName, string documentKind, string documentReviewPeriod, bool isMandatory, bool isForSigning, bool isForUpload,
                                         bool isForPhysicalArchiving, bool isInternal, bool isComposedFromTemplate, string templateUrl, DocumentOrigin origin)
 {
     ApplicationNumber    = applicationNumber;
     DocumentContextKind  = documentContextKind;
     ArrangementRequestId = arrangementRequestId;
     CollateralId         = collateralId;
     PartyId                = partyId;
     DocumentName           = documentName;
     DocumentKind           = documentKind;
     DocumentReviewPeriod   = documentReviewPeriod;
     IsMandatory            = isMandatory;
     IsForSigning           = isForSigning;
     IsForUpload            = isForUpload;
     IsForPhysicalArchiving = isForPhysicalArchiving;
     IsInternal             = isInternal;
     IsComposedFromTemplate = isComposedFromTemplate;
     TemplateUrl            = templateUrl;
     Origin = origin;
 }