| | |
| | | oSub.HMaterID = DBUtility.ClsPub.isLong(subList[i].HMaterIDCol); |
| | | oSub.HProcID = DBUtility.ClsPub.isLong(subList[i].HProcIDCol); |
| | | oSub.HSourceID = DBUtility.ClsPub.isLong(subList[i].HSourceIDCol); |
| | | oSub.HPrice = DBUtility.ClsPub.isLong(subList[i].HPriceCol); |
| | | oSub.HPrice = DBUtility.ClsPub.isDoule(subList[i].HPriceCol); |
| | | oSub.HBeginDate = DBUtility.ClsPub.isDate(subList[i].HBeginDateCol); |
| | | oSub.HEndDate = DBUtility.ClsPub.isDate(subList[i].HEndDateCol); |
| | | oSub.HCostFlag = DBUtility.ClsPub.GridToBool(subList[i].HCostFlagCol); |
| | |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region ç»´æ¤å·¥ä»·æ¶è¿åå·¥èºè·¯çº¿ä¿¡æ¯ |
| | | [Route("Gy_RoutingBill/EditPrice")] |
| | | [HttpGet] |
| | | public object EditPrice(string HMaterNumber) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | |
| | | ds = oCN.RunProcReturn("exec Gy_RoutingBill_EditPrice '" + HMaterNumber + "'", "Gy_RoutingBill_EditPrice"); |
| | | |
| | | //æ·»å åå |
| | | 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 = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |