Example #1
0
        public DEJPSY_RESP DejPsiSeznam2(string USER_NAME, string PASSWORD, int EXT_APP_KOD, GET_PES_PARAMS INPUT_PARAMS)
        {
            XPOConnector xpc   = new XPOConnector(USER_NAME, PASSWORD);
            Session      sesna = xpc.GetSessionMultiThread();

            WebMethod.SeznamPsu seznamPsu = new WebMethod.SeznamPsu();
            return(seznamPsu.DejPsiSeznam(sesna, EXT_APP_KOD, INPUT_PARAMS));
        }
Example #2
0
        public STORNO_RESP VlozStornoPredpisu(string USER_NAME, string PASSWORD, int EXT_APP_KOD, int PREDPIS_ID, string POZNAMKA)
        {
            XPOConnector xpc   = new XPOConnector(USER_NAME, PASSWORD);
            Session      sesna = xpc.GetSessionMultiThread();

            WebMethod.PredpisStorno storno = new WebMethod.PredpisStorno();
            return(storno.StornoPredpis(sesna, EXT_APP_KOD, PREDPIS_ID, POZNAMKA));
        }
Example #3
0
        public PESPLEMENA_RESP DejPsiPlemena(string USER_NAME, string PASSWORD, int EXT_APP_KOD)
        {
            XPOConnector xpc   = new XPOConnector(USER_NAME, PASSWORD);
            Session      sesna = xpc.GetSessionMultiThread();

            WebMethod.DejPsiPlemena plemena = new WebMethod.DejPsiPlemena();
            return(plemena.DejPsiSeznamPlemen(sesna, EXT_APP_KOD));
        }
Example #4
0
        public UHRADY_RESP VlozUhraduPredpisu(string USER_NAME, string PASSWORD, int EXT_APP_KOD, int PREDPIS_ID, decimal KC, DateTime DATUM_UHRADY, string ZAPLATIL, string DOKLAD, int SS)
        {
            XPOConnector xpc   = new XPOConnector(USER_NAME, PASSWORD);
            Session      sesna = xpc.GetSessionMultiThread();

            WebMethod.PlatbaInsert insPlatbu = new WebMethod.PlatbaInsert();
            return(insPlatbu.InsertUhraduPredpisu(sesna, EXT_APP_KOD, PREDPIS_ID, KC, DATUM_UHRADY, ZAPLATIL, DOKLAD, SS));
        }
Example #5
0
        //[WebMethod]
        public STORNO_RESP ZrusPredpis(string USER_NAME, string PASSWORD, int EXT_APP_KOD, int PREDPIS_ID, string poznamka)
        {
            XPOConnector xpc   = new XPOConnector(USER_NAME, PASSWORD);
            Session      sesna = xpc.GetSessionMultiThread();

            WebMethod.PredpisStorno stornoPr = new WebMethod.PredpisStorno();
            return(stornoPr.StornoPredpis(sesna, EXT_APP_KOD, PREDPIS_ID, "storno předpisu pomoci WS"));
        }
Example #6
0
        public PLATCE_RESP DejPlatce(string USER_NAME, string PASSWORD, int EXT_APP_KOD, GET_PLATCE_PARAMS INPUT_PARAMS)
        {
            XPOConnector xpc   = new XPOConnector(USER_NAME, PASSWORD);
            Session      sesna = xpc.GetSessionMultiThread();

            WebMethod.NajdiPlatce platce = new WebMethod.NajdiPlatce();
            return(platce.DejPlatce(sesna, EXT_APP_KOD, INPUT_PARAMS));
        }
Example #7
0
        public PREDPISY_RESP DejPredpisy(string USER_NAME, string PASSWORD, int EXT_APP_KOD, int OSOBA_ID, int POPLATEK)
        {
            XPOConnector xpc   = new XPOConnector(USER_NAME, PASSWORD);
            Session      sesna = xpc.GetSessionMultiThread();

            WebMethod.SeznamPredpisu seznamPredpisu = new WebMethod.SeznamPredpisu();
            return(seznamPredpisu.DejPredpisy(sesna, EXT_APP_KOD, OSOBA_ID, POPLATEK));
        }
Example #8
0
        public UHRADY_RESP DejUhradyVS(string USER_NAME, string PASSWORD, int EXT_APP_KOD, string VS)
        {
            XPOConnector xpc   = new XPOConnector(USER_NAME, PASSWORD);
            Session      sesna = xpc.GetSessionMultiThread();

            WebMethod.DejUhradyVS getPlatby = new WebMethod.DejUhradyVS();
            return(getPlatby.DejUhrady(sesna, EXT_APP_KOD, VS));
        }
Example #9
0
        public DEJOSOBU_RESP DejOsobu(string USER_NAME, string PASSWORD, int EXT_APP_KOD, string RC_IC, string JMENO, string PRIJMENI, DateTime DATUM_NAROZENI, string NAZEV)
        {
            XPOConnector xpc   = new XPOConnector(USER_NAME, PASSWORD);
            Session      sesna = xpc.GetSessionMultiThread();

            WebMethod.DejOsobu findOsobu = new WebMethod.DejOsobu();
            return(findOsobu.NajdiOsobu(sesna, EXT_APP_KOD, RC_IC, JMENO, PRIJMENI, DATUM_NAROZENI, NAZEV));
        }
Example #10
0
        public DEJOSOBU_RESP DejOsobuDleRCIC(string USER_NAME, string PASSWORD, int EXT_APP_KOD, string RC_IC)
        {
            XPOConnector xpc   = new XPOConnector(USER_NAME, PASSWORD);
            Session      sesna = xpc.GetSessionMultiThread();

            WebMethod.DejOsobu findOsobu = new WebMethod.DejOsobu();
            return(findOsobu.Najdi(sesna, EXT_APP_KOD, RC_IC));
        }
Example #11
0
        public UHRADA_PREDPISU_RESP DejUhradyPredpisu(string USER_NAME, string PASSWORD, int EXT_APP_KOD, int PREDPIS_ID)
        {
            XPOConnector xpc   = new XPOConnector(USER_NAME, PASSWORD);
            Session      sesna = xpc.GetSessionMultiThread();

            WebMethod.DejUhradaPredpisu getPlatby = new WebMethod.DejUhradaPredpisu();
            return(getPlatby.dej_PlatbyKPredpisu(sesna, EXT_APP_KOD, PREDPIS_ID));

            sesna.Dispose();
        }
Example #12
0
        public DEJPSY_RESP DejPsiSeznam(string USER_NAME, string PASSWORD, int EXT_APP_KOD, int?PES_ZNAMKA, string PES_JMENO,
                                        int?PES_PLEMENO_KOD, string POPLATNIK_PRIJMENI, string POPLATNIKA_FIRMA,
                                        string POPLATNIK_ULICE, int?POPLATNIK_CP)
        {
            XPOConnector xpc   = new XPOConnector(USER_NAME, PASSWORD);
            Session      sesna = xpc.GetSessionMultiThread();

            WebMethod.SeznamPsu seznamPsu = new WebMethod.SeznamPsu();
            return(seznamPsu.DejPsiSeznam(sesna, EXT_APP_KOD, PES_ZNAMKA, PES_JMENO,
                                          PES_PLEMENO_KOD, POPLATNIK_PRIJMENI, POPLATNIKA_FIRMA,
                                          POPLATNIK_ULICE, POPLATNIK_CP));
        }
Example #13
0
        public UHRADY_NEW_RESP DejUhrady(string USER_NAME, string PASSWORD, int EXT_APP_KOD, string DAVKA, int PLATBY_EA)
        {
            XPOConnector xpc   = new XPOConnector(USER_NAME, PASSWORD);
            Session      sesna = xpc.GetSessionMultiThread();

            WebMethod.DejUhradyPar getPlatby = new WebMethod.DejUhradyPar();
            int NevracetPlatbyEA             = PLATBY_EA;

            if (EXT_APP_KOD == PLATBY_EA)
            {
                NevracetPlatbyEA = PLATBY_EA;
            }
            else
            {
                NevracetPlatbyEA = 0;
            }
            return(getPlatby.DejUhrady(sesna, EXT_APP_KOD, DAVKA, NevracetPlatbyEA));
        }
Example #14
0
        public PREDPIS_RESP VlozPredpis(string USER_NAME, string PASSWORD, int EXT_APP_KOD, PREDPIS predpis)
        {
            Session sesna = null;

            try
            {
                try
                {
                    XPOConnector xpc = new XPOConnector(USER_NAME, PASSWORD);
                    sesna = xpc.GetSessionMultiThread();
                    WebMethod.PredpisInsert insPredpis = new WebMethod.PredpisInsert();
                    return(insPredpis.InsertPredpis(sesna, EXT_APP_KOD, predpis));
                }
                catch (Exception exc)
                {
                    Util.Util.WriteLog("wmError-" + exc.Message + "\n" + exc.StackTrace);
                    return(null);
                }
            }
            finally
            {
                sesna.Dispose();
            }
        }
Example #15
0
        public OSOBA_RESP VlozOsobu(string USER_NAME, string PASSWORD, int EXT_APP_KOD, OSOBA osoba)
        {
            Session sesna = null;

            try
            {
                try
                {
                    XPOConnector xpc = new XPOConnector(USER_NAME, PASSWORD);
                    sesna = xpc.GetSessionMultiThread();
                    WebMethod.OsobaInsert insOsoba = new WebMethod.OsobaInsert();
                    return(insOsoba.InsertOsobu(sesna, EXT_APP_KOD, osoba));
                }
                catch (Exception exc)
                {
                    Util.Util.WriteLog("wmError-" + exc.Message + "\n" + exc.StackTrace);
                    return(null);
                }
            }
            finally
            {
                sesna.Dispose();
            }
        }