public bool SendBusinessNotification(string noticeJson, string SubSystemName) { //Data Hub 查询命令 string SqlCommand = noticeJson; bool itemList = DataHubHelper.UpLoadDataToDataHub(DataHubHelper.WeixinBaseUrl, DataHubHelper.apiUrl, SubSystemName, SqlCommand); return(true); }
public ActionResult <IEnumerable <ProductionOrder> > GetSapProductionOrder() { //Data Hub 查询命令 string SqlCommand = "select MaterialNo,MaterialName,Format," + "UnitCode,MaterialType,SafetyInventoryLowerLimit,SafetyInventoryUpperLimit from item"; List <ProductionOrder> itemList = DataHubHelper.GetDataFromDataHub <ProductionOrder>(DataHubHelper.SAPBaseUrl, DataHubHelper.SAPApiUrl, DataHubHelper.SAPSubSystemName, SqlCommand); return(itemList); }
public ActionResult <IEnumerable <WXUser> > GetAllWeixinUsers(string SubSystemName) { //Data Hub 查询命令 string SqlCommand = "select * from wxuser"; List <WXUser> itemList = DataHubHelper.GetDataFromDataHub <WXUser>(DataHubHelper.WeixinBaseUrl, DataHubHelper.apiUrl, SubSystemName, SqlCommand); return(itemList); }