Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="toState"></param>
 protected void ConsolidateDocument(DocsPaWR.DocumentConsolidationStateEnum toState)
 {
     try
     {
         DocsPaWR.InfoUtente          userInfo = UserManager.getInfoUtente();
         DocumentConsolidationHandler dch      = new DocumentConsolidationHandler(Consolidated, userInfo);
         dch.ConsolidateDocument(this.Document, toState);
     }
     catch (Exception ex)
     {
         DocsPaUtils.Exceptions.SoapExceptionParser.ThrowOriginalException(ex);
     }
 }
Esempio n. 2
0
        protected override bool btnConferma_Click(object sender, EventArgs e)
        {
            DocsPaWR.InfoUtente            userInfo = UserManager.getInfoUtente();
            DocumentConsolidationHandler   dch      = new DocumentConsolidationHandler(null, userInfo);
            DocumentConsolidationStateEnum state    = DocumentConsolidationStateEnum.Step1;

            if (IsMetadati)
            {
                state = DocumentConsolidationStateEnum.Step2;
            }
            MassiveOperationReport report = dch.ConsolidateDocumentMassive(state, MassiveOperationUtils.GetSelectedItems());

            string[] pars = new string[] { "" + report.Worked, "" + report.NotWorked };
            report.AddSummaryRow("Documenti lavorati: {0} - Documenti non lavorati: {1}", pars);
            this.generateReport(report, "Consolidamento documenti");
            return(true);
        }
Esempio n. 3
0
        protected void BtnConfirm_Click(object sender, EventArgs e)
        {
            ScriptManager.RegisterStartupScript(this, this.GetType(), "reallowOp", "reallowOp();", true);

            DocumentConsolidationHandler   dch   = new DocumentConsolidationHandler(null, UserManager.GetInfoUser());
            DocumentConsolidationStateEnum state = DocumentConsolidationStateEnum.Step1;
            string title = "Consolidamento documenti";

            if (this.IsMetadati)
            {
                state = DocumentConsolidationStateEnum.Step2;
                title = "Consolidamento documenti e metadati";
            }

            MassiveOperationReport report = dch.ConsolidateDocumentMassive(state, MassiveOperationUtils.GetSelectedItems());

            string[] pars = new string[] { "" + report.Worked, "" + report.NotWorked };
            report.AddSummaryRow("Documenti lavorati: {0} - Documenti non lavorati: {1}", pars);
            this.generateReport(report, title);
        }