Ejemplo n.º 1
0
        public static CHeader UpdateData(CHeader header, DataSet Param)
        {
            wcfHighTop.Service1Client HighTops = new wcfHighTop.Service1Client();

            CCompress cp = new CCompress();

            String sHeader = HighTops.ProcUpdate(header.SerializeTo(), cp.CompressDataFromDataSet(Param));

            CHeader r_header = new CHeader();

            r_header.SerializeFrom(sHeader);

            return(r_header);
        }
Ejemplo n.º 2
0
        public static DataSet deleteData(CHeader header, DataSet Param)
        {
            try
            {
                wcfHighTop.Service1Client HighTops = new wcfHighTop.Service1Client();

                CCompress cp = new CCompress();

                return(cp.DeCompressDataToDataSet(HighTops.ProcDelete(header.SerializeTo(), cp.CompressDataFromDataSet(Param))));
            }
            catch (Exception err)
            {
                return(GetErrDs(err));
            }
        }
Ejemplo n.º 3
0
        public static DataSet InsertData(CHeader header, DataSet Param)
        {
            try
            {
                wcfHighTop.Service1Client HighTops = new wcfHighTop.Service1Client();

                CCompress cp = new CCompress();

                return(cp.DeCompressDataToDataSet(HighTops.ProcInsert(header.SerializeTo(), cp.CompressDataFromDataSet(Param))));
            }
            catch (Exception err)
            {
                return(GetErrDs(err));
            }


            //CHeader r_header = new CHeader();

            //r_header.SerializeFrom(sHeader);

            //return r_header;
        }