Пример #1
0
        public static string GeneratePrintByRanges(string anno, string counterId, string numRepStart, string numRepEnd, string idRegistro, string dataStampa, bool ultimastampa)
        {
            StampaRepertorio printer  = new StampaRepertorio();
            string           newIdDoc = printer.GeneratePrintByRanges(anno, counterId, numRepStart, numRepEnd, idRegistro, dataStampa, ultimastampa);

            return(newIdDoc);
        }
Пример #2
0
        public static string GeneratePrintByDocumentId(string idDoc)
        {
            StampaRepertorio printer  = new StampaRepertorio();
            string           newIdDoc = printer.GeneratePrintByDocumentId(idDoc);

            return(newIdDoc);
        }
Пример #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="counterId"></param>
        /// <param name="registryId"></param>
        /// <param name="rfId"></param>
        /// <param name="userInfo"></param>
        /// <param name="role"></param>
        /// <returns></returns>
        public static void GeneratePrintRepertorio(String counterId, String registryId, String rfId, InfoUtente userInfo, Ruolo role)
        {
            System.Threading.Mutex mutex   = null;
            StampaRepertorio       printer = new StampaRepertorio();

            try
            {
                // Creazione o reperimento del mutex
                mutex = CreateMutex(counterId);
                mutex.WaitOne();
                printer.GeneratePrintRepertorio(counterId, registryId, rfId, userInfo, role);
            }
            finally
            {
                //Rilascio il mutex
                if (mutex != null)
                {
                    mutex.ReleaseMutex();
                    mutex.Close();
                    mutex = null;
                }
            }
        }
Пример #4
0
        public static void GeneratePrintByYear(string counterId, string year)
        {
            StampaRepertorio printer = new StampaRepertorio();

            printer.GeneratePrintByYear(counterId, year);
        }