WebAPI/Controllers/夏宝售后接口/ASSController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Properties/PublishProfiles/FolderProfile.pubxml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Web.config | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/WebAPI.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/WebAPI.csproj.user | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
WebAPI/Controllers/Ïı¦ÊÛºó½Ó¿Ú/ASSController.cs
New file @@ -0,0 +1,124 @@  using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using SQLHelper; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using System.Windows.Forms; using WebAPI; using WebAPI.Models; namespace WebAPI.Controllers { public class ASSController : ApiController { public DataSet ds = new DataSet(); private json objJsonResult = new json(); SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); #region å®åæ¥å£ä¸è°ç¨ /// <summary> /// å®åæ¥å£ä¸è°ç¨ /// </summary> /// <returns></returns> [Route("ASSController/GetASS_SellOutInterFace_Json")] [HttpGet] public object GetASS_SellOutInterFace_Json(string HBarCode) { try { ds = oCn.RunProcReturn("exec h_p_ASS_SellOut_InterFace '" + HBarCode + "'", "h_p_ASS_SellOut_InterFace"); if (ds == null || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "没æè¿åä»»ä½ç»æï¼"; objJsonResult.data = null; return objJsonResult; } else { List<object> columnNameList = new List<object>(); //æ·»å åå foreach (DataColumn col in ds.Tables[0].Columns) { Type dataType = col.DataType; string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; columnNameList.Add(JsonConvert.DeserializeObject(ColmString)); //è·åå°DataColumnå对象çåå } objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "æåï¼"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; } } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ¥è¯¢å®åæ¥å£ä¸ä¿¡æ¯å¤±è´¥ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #region å®åæ¥å£äºè°ç¨ /// <summary> /// å®åæ¥å£äºè°ç¨ /// </summary> /// <returns></returns> [Route("ASSController/GetASS_ProductInInterFace_Json")] [HttpGet] public object GetASS_ProductInInterFace_Json(string HBarCode) { try { ds = oCn.RunProcReturn("exec h_p_ASS_ProductIn_InterFace '" + HBarCode + "'", "h_p_ASS_ProductIn_InterFace"); if (ds == null || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "没æè¿åä»»ä½ç»æï¼"; objJsonResult.data = null; return objJsonResult; } else { List<object> columnNameList = new List<object>(); //æ·»å åå foreach (DataColumn col in ds.Tables[0].Columns) { Type dataType = col.DataType; string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; columnNameList.Add(JsonConvert.DeserializeObject(ColmString)); //è·åå°DataColumnå对象çåå } objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "æåï¼"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; } } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ¥è¯¢å®åæ¥å£äºä¿¡æ¯å¤±è´¥ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion } } WebAPI/Properties/PublishProfiles/FolderProfile.pubxml
@@ -10,7 +10,7 @@ <LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration> <LastUsedPlatform>x86</LastUsedPlatform> <PublishProvider>FileSystem</PublishProvider> <PublishUrl>G:\issWeb\ç½ç«åå¸\API</PublishUrl> <PublishUrl>D:\ç½ç«åå¸\æºäºMESWMS\API</PublishUrl> <WebPublishMethod>FileSystem</WebPublishMethod> <SiteUrlToLaunchAfterPublish /> </PropertyGroup> WebAPI/Web.config
@@ -22,7 +22,7 @@ <!--<add key="FileIP" value="http://localhost:8082/LuBaoAPI"/>--> <!--<add key="FileIP" value="http://localhost:8080/" />--> <!--<add key="sUrl" value="http://183.129.128.86:9090/WEBS-WMSTest/WebService1.asmx"/> --> <add key="sUrl" value="http://192.168.63.53/WEBS-WMS/WebService1.asmx"/> <!--é¢å°å¼æº--> <add key="sUrl" value="http://192.168.0.81/WEBS-WMS/WebService1.asmx"/> <!--é¢å°å¼æº--> <!--<add key="sUrl" value="http://60.190.4.42:9003/WebService/WebService1.asmx" /> å¤å®--> <!--<add key="sUrl" value="http://60.190.4.42:9003/WebService/WebService1.asmx" /> --> <!--<add key="sUrl" value="http://10.10.130.181/WEBS-WMS/WebService1.asmx"/> åæ¥ç§æ--> @@ -105,7 +105,7 @@ </basicHttpBinding> </bindings> <client> <endpoint address="http://192.168.63.53/WEBS-WMS/WebService1.asmx" binding="basicHttpBinding" <endpoint address="http://192.168.0.81/WEBS-WMS/WebService1.asmx" binding="basicHttpBinding" bindingConfiguration="WebService1Soap" contract="Webs1.WebService1Soap" name="WebService1Soap" /> </client> @@ -114,7 +114,7 @@ <applicationSettings> <WebAPI.Properties.Settings> <setting name="WebAPI_WebS_WebService1" serializeAs="String"> <value>http://192.168.63.53/WEBS-WMS/WebService1.asmx</value> <value>http://192.168.0.81/WEBS-WMS/WebService1.asmx</value> </setting> </WebAPI.Properties.Settings> </applicationSettings> WebAPI/WebAPI.csproj
@@ -557,6 +557,7 @@ <Compile Include="Controllers\åºç¡èµæ\å·¥èµåºç¡èµæ\Gy_WorkPayTypeController.cs" /> <Compile Include="Controllers\åºç¡èµæ\å·¥èµåºç¡èµæ\Gy_ClassTimePrjGroupController.cs" /> <Compile Include="Controllers\åºç¡èµæ\ç产åºç¡èµæ\Gy_ShiftsController.cs" /> <Compile Include="Controllers\å¤å®å®åæ¥å£\ASSController.cs" /> <Compile Include="Controllers\å·¥èµç®¡ç\HR_EmployeeSkillBillController.cs" /> <Compile Include="Controllers\å·¥èµç®¡ç\Pay_OutApplyBillController.cs" /> <Compile Include="Controllers\å·¥èµç®¡ç\Pay_OverApplyBillController.cs" /> WebAPI/WebAPI.csproj.user
@@ -9,7 +9,7 @@ <WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected> <NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>D:\Git\houduan\WebAPI\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>C:\Users\86130\Desktop\æºäºè¿æ\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>D:\GITä»åº\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> <UseIISExpress>true</UseIISExpress> <Use64BitIISExpress />