| | |
| | | public string SeOrderBillNo;//(éå®è®¢åå·) |
| | | } |
| | | |
| | | //æ¡ç æç»æ¥è¯¢ åå¨è¿ç¨ æ°æ®ç±» |
| | | public class BarCodeDetail |
| | | { |
| | | public BarCodeDetail() |
| | | { |
| | | |
| | | } |
| | | public int HInterID; |
| | | public string HBillType; |
| | | public string HBillNo; |
| | | } |
| | | |
| | | |
| | | #region åºå
¥åºè®°å½æ¥è¯¢ |
| | | [Route("Kf_ICStockInOutBill/StockInOutBillList")] |
| | | [HttpGet] |
| | |
| | | return objJsonResult; |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region åºå
¥åºåæ®æ¡ç æç»æ¥è¯¢ |
| | | [Route("Kf_ICStockInOutBill/Kf_BarCodeDetailQuery")] |
| | | [HttpGet] |
| | | public object Kf_BarCodeDetailQuery(string sWhere) |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | |
| | | try |
| | | { |
| | | //var data = JsonConvert.DeserializeObject<BarCodeDetail>(sWhere); |
| | | //sWhere = "12727077,'1207','DB00000475'"; |
| | | ds = oCN.RunProcReturn("exec h_p_Kf_BarCodeDetailQuery "+sWhere, "h_p_Kf_BarCodeDetailQuery"); |
| | | |
| | | 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å对象çåå |
| | | } |
| | | |
| | | //if (ds.Tables[0].Rows.Count > 0) |
| | | //{ |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = ds.Tables[0].Rows.Count; |
| | | objJsonResult.Message = "è·åèµæºç»å®æ°æ®æåï¼"; |
| | | objJsonResult.data = JsonConvert.DeserializeObject<DataTable>(JsonConvert.SerializeObject(ds.Tables[0], new IsoDateTimeConverter { DateTimeFormat = "yyyy-MM-dd HH:mm:ss" })); //åºååDataSetä¸çæ¶é´æ ¼å¼ï¼ç¶ååååºåå忥 |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | //} |
| | | //else |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "ææ èµæºç»å®ï¼"; |
| | | // objJsonResult.data = null; |
| | | // objJsonResult.list = columnNameList; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = e.Message.ToString(); |
| | | objJsonResult.data = null; |
| | | objJsonResult.list = columnNameList; |
| | | } |
| | | return objJsonResult; |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region æ¡ç åºå
¥åºç¼å |
| | | #region æ¡ç åºå
¥åºç¼åå表 |