Example #1
0
        public static DataSet QryData(CHeader header)
        {
            wcfHighTop.Service1Client HighTops = new wcfHighTop.Service1Client();

            CCompress cp = new CCompress();

            return(cp.DeCompressDataToDataSet(HighTops.ProcByNoneParam(header.SerializeTo())));
        }
Example #2
0
        public static DataSet QryData(CHeader header, DataSet Param)
        {
            try
            {
                wcfHighTop.Service1Client HighTops = new wcfHighTop.Service1Client();

                CCompress cp = new CCompress();

                return(cp.DeCompressDataToDataSet(HighTops.ProcByParam(header.SerializeTo(), cp.CompressDataFromDataSet(Param))));
            }
            catch (Exception err)
            { return(GetErrDs(err)); }
        }
Example #3
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);
        }
Example #4
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;
        }