Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }