예제 #1
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));
        }
예제 #2
0
        public POPLATNIK_SLEVA_RESP PlatceSlevaKO(string USER_NAME, string PASSWORD, int EXT_APP_KOD, POPLATNIK_SLEVA INPUT_PARAMS)
        {
            XPOConnector xpc   = new XPOConnector(USER_NAME, PASSWORD);
            Session      sesna = xpc.GetSessionMultiThread();

            WebMethod.SlevaPlatceKO slevy = new WebMethod.SlevaPlatceKO();
            return(slevy.PlatceSlevaKO(sesna, EXT_APP_KOD, INPUT_PARAMS));
        }
예제 #3
0
        public PLATCI_RESP DejPlatceKO(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.NajdiPlatceKO platce = new WebMethod.NajdiPlatceKO();
            return(platce.DejPlatceKO(sesna, EXT_APP_KOD, INPUT_PARAMS));
        }
예제 #4
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));
        }
예제 #5
0
        public STATY_RESP DejStaty(string USER_NAME, string PASSWORD, int EXT_APP_KOD)
        {
            XPOConnector xpc   = new XPOConnector(USER_NAME, PASSWORD);
            Session      sesna = xpc.GetSessionMultiThread();

            WebMethod.DejStaty staty = new WebMethod.DejStaty();
            return(staty.DejSeznamStaty(sesna, EXT_APP_KOD));
        }
예제 #6
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"));
        }
예제 #7
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));
        }
예제 #8
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));
        }
예제 #9
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));
        }
예제 #10
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));
        }
예제 #11
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));
        }
예제 #12
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));
        }
예제 #13
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();
        }
예제 #14
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));
        }
예제 #15
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));
        }
예제 #16
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();
            }
        }
예제 #17
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();
            }
        }