public string sSaveTransVouchChkQty(string sCode, DataTable dtBarCode, string sUid) { string sReturn = ""; try { TH.WebService.DAL.TransVouch DAL = new TH.WebService.DAL.TransVouch(); if (dtBarCode == null || dtBarCode.Rows.Count == 0) { sReturn = "获得条形码列表失败"; } else { int iCou = DAL.iSaveGetTransVouchChkQty(sCode, dtBarCode, sUid); sReturn = "成功保存条形码:" + dtBarCode.Rows.Count.ToString() + "条"; } } catch (Exception ee) { sReturn = ee.Message; } return(sReturn); }
public string sTransVouch(string sCode) { string sReturn = ""; try { TH.WebService.DAL.TransVouch DAL = new TH.WebService.DAL.TransVouch(); DataTable dt = DAL.GetTransVouch(sCode); if (dt != null && dt.Rows.Count > 0) { sReturn = Cls序列化.SerializeDataTableXml(dt); } } catch (Exception ee) { } return(sReturn); }