public static bool CheckWoIdInvalid(string woid) { try { Dictionary <string, object> dic = new Dictionary <string, object>(); dic.Add("SHIPPING_NO", woid); dic.Add("DEB_CRED", "OUT"); SearchSapMaterialShipping ss = new SearchSapMaterialShipping(dic); ss.ExecuteQuery(); DataTable dt = ss.GetResult(); if (dt != null && dt.Rows.Count > 0) { return(true); } else { return(false); } } catch (Exception ex) { throw ex; } }
public static DataTable SearchRSapMaterialShippingByMoveType(string woid, string movetype, string deb_cred) { try { Dictionary <string, object> dic = new Dictionary <string, object>(); dic.Add("SHIPPING_NO", woid); dic.Add("MOVE_TYPE", movetype); dic.Add("DEB_CRED", deb_cred); dic.Add("UPLOAD_FLAG", "N"); SearchSapMaterialShipping ss = new SearchSapMaterialShipping(dic); ss.ExecuteQuery(); return(ss.GetResult()); } catch (Exception ex) { throw ex; } }