| | |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region æ«ç è®°å½ç¼åå表 |
| | | [Route("Kf_ICStockInOutBill/GetKF_PonderationBillMain_Temp")] |
| | | [HttpGet] |
| | | public object GetKF_PonderationBillMain_Temp(string sWhere) |
| | | { |
| | | try |
| | | { |
| | | DataSet ds = new DataSet(); |
| | | string sql1 = string.Format(@"select * from h_v_KF_PonderationBillList_Query where 1=1 "); |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn(sql1 + "order by å¶åæ¥æ desc", "h_v_KF_PonderationBillList_Query"); |
| | | } |
| | | else |
| | | { |
| | | ds = oCN.RunProcReturn(sql1 + sWhere + "order by å¶åæ¥æ desc", "h_v_KF_PonderationBillList_Query"); |
| | | } |
| | | if (ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¥è¯¢æ°æ®å¼å¸¸ï¼è¯·ä¸ç®¡çåèç³»ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "è¿åè®°å½æåï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = e.Message.ToString(); |
| | | objJsonResult.data = null; |
| | | } |
| | | return objJsonResult; |
| | | } |
| | | #endregion |
| | | |
| | | } |
| | | } |