public static DataSet QryData(CHeader header) { wcfHighTop.Service1Client HighTops = new wcfHighTop.Service1Client(); CCompress cp = new CCompress(); return(cp.DeCompressDataToDataSet(HighTops.ProcByNoneParam(header.SerializeTo()))); }
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)); } }
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); }
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; }