| | |
| | | #endregion |
| | | |
| | | |
| | | #region åºè¿å è·åæ¿è¿ååæ°æ® |
| | | [Route("WLYayBillController/initDataForSelectContractTransportBill")] |
| | | [HttpGet] |
| | | public object initDataForSelectContractTransportBill(int hmainid) |
| | | { |
| | | try |
| | | { |
| | | string sql = "exec WL_YayBill_initDataForSelectContractTransportBill " + hmainid; |
| | | |
| | | // æ§è¡æ¥è¯¢ |
| | | DataSet ds = oCN.RunProcReturn(sql, "WL_YayBill_initDataForSelectContractTransportBill"); |
| | | |
| | | |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼" + ex.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region åºè¿å æ ¹æ® æ¿è¿åidãè¿è¾è·¯çº¿åç§°ã车åidãè¿è¾æ¹å¼ è·å æ¿è¿ååæ°æ® |
| | | [Route("WLYayBillController/getSelectContractTransportBillEntryData")] |
| | | [HttpGet] |
| | | public object getSelectContractTransportBillEntryData(int Cg_ContractTransportBillInterID,int HSupID, string HTransportLineName, int HCarTypeID, string HTransportTyep) |
| | | { |
| | | try |
| | | { |
| | | string sql = "exec WL_YayBill_getSelectContractTransportBillEntryData " + Cg_ContractTransportBillInterID + "," + HSupID + ",'" + HTransportLineName + "'," + HCarTypeID + ",'" + HTransportTyep + "'"; |
| | | |
| | | // æ§è¡æ¥è¯¢ |
| | | DataSet ds = oCN.RunProcReturn(sql, "WL_YayBill_getSelectContractTransportBillEntryData"); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼" + ex.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |