| WebAPI/Controllers/CJGL/Cj_CallGoodsBillMainController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebAPI/Controllers/仓存管理/调拨盘点/Kf_MoveStockRequestBillController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebAPI/WebAPI.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
WebAPI/Controllers/CJGL/Cj_CallGoodsBillMainController.cs
New file @@ -0,0 +1,52 @@ using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Web; using System.Web.Http; using WebAPI.Models; namespace WebAPI.Controllers.CJGL { public class Cj_CallGoodsBillMainController : ApiController { private json objJsonResult = new json(); SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); DataSet ds; [Route("Cj_CallGoodsBillMain/CallGoodsBillMainList")] [HttpGet] public object CallGoodsBillMainList(string sWhere,string user) { try { //夿æ¯å¦ææ¥è¯¢æé if (!DBUtility.ClsPub.Security_Log("Cj_CallGoodsBill_Query", 1, false, user)) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ æ¥è¯¢æé"; objJsonResult.data = null; return objJsonResult; } ds = oCN.RunProcReturn("select * from h_v_IF_JIT_CallGoodsBillList where 1=1 " + sWhere + " order by hmainid desc", "h_v_IF_JIT_CallGoodsBillList"); objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucessï¼"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } } } WebAPI/Controllers/²Ö´æ¹ÜÀí/µ÷²¦Å̵ã/Kf_MoveStockRequestBillController.cs
@@ -43,22 +43,11 @@ ds = oCn.RunProcReturn(sql, "h_v_IF_MoveStockRequestBillList_Litee"); } //if (ds.Tables[0].Rows.Count != 0 || ds != null) //{ objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucessï¼"; objJsonResult.data = ds.Tables[0]; return objJsonResult; //} //else //{ //objJsonResult.code = "0"; //objJsonResult.count = 0; //objJsonResult.Message = "æ æ°æ®"; //objJsonResult.data = null; //return objJsonResult; //} } catch (Exception ex) { WebAPI/WebAPI.csproj
@@ -349,6 +349,7 @@ <Compile Include="Controllers\CGGL\WW_EntrustOrderBillController.cs" /> <Compile Include="Controllers\CGGL\Cg_POInStockBillController.cs" /> <Compile Include="Controllers\CGGL\Cg_POInStockBackBillController.cs" /> <Compile Include="Controllers\CJGL\Cj_CallGoodsBillMainController.cs" /> <Compile Include="Controllers\CJGL\Cj_NoPassProcController.cs" /> <Compile Include="Controllers\CJGL\Sc_ProcessExchangeBillController.cs" /> <Compile Include="Controllers\CJGL\Cj_StationOutBillController.cs" /> @@ -771,6 +772,7 @@ <Folder Include="App_Data\" /> <Folder Include="obj\x86\Debug\" /> <Folder Include="Views\Cg_PurchaseReturn\" /> <Folder Include="Views\Cj_CallGoodsBillMain\" /> <Folder Include="Views\Gy_EquipType\" /> <Folder Include="Views\Gy_ICBomBill\" /> <Folder Include="Views\Gy_RoutingGroup\" />