| | |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region ç¼è¾æ¶è¿åå·¥åºå·¥ä»·ä¿¡æ¯ |
| | | [Route("Gy_ProcPrice/GetProcPriceValue")] |
| | | [HttpGet] |
| | | public object GetProcPriceValue(int HItemID) |
| | | { |
| | | try |
| | | { |
| | | ds = oCN.RunProcReturn("select " + |
| | | "a.HItemID,a.HDeptID,b.HName HDeptName" + |
| | | ",a.HMaterID HMaterIDCol,c.HNumber HMaterNumberCol,c.HName HMaterNameCol,c.HModel HMaterModelCol" + |
| | | ",a.HProcID HProcIDCol,d.HNumber HProcNumberCol,d.HName HProcNameCol" + |
| | | ",a.HSourceID HSourceIDCol,e.HNumber HSourceNumberCol,e.HName HSourceNameCol" + |
| | | ",a.HPrice HPriceCol,a.HBeginDate HBeginDateCol,a.HEndDate HEndDateCol" + |
| | | ",case when a.HCostFlag<>0 then 'true'else 'false'end HCostFlagCol" + |
| | | ",case when a.HFlowFlag<>0 then 'true'else 'false'end HFlowFlagCol" + |
| | | ",case when a.HPayFlag<>0 then 'true'else 'false'end HPayFlagCol,a.HRemark HRemarkCol " + |
| | | " from Gy_ProcPrice a " + |
| | | " left join Gy_Department b on a.HDeptID = b.HItemID " + |
| | | " left join Gy_Material c on a.HMaterID = c.HItemID " + |
| | | " left join Gy_Process d on a.HProcID = d.HItemID " + |
| | | " left join Gy_Source e on a.HSourceID = e.HItemID where HItemID = " + HItemID, "Gy_ProcPrice"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "falseï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | 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 = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |