| | |
| | | string msg3 = sArray[1].ToString(); //å表 |
| | | string refSav = sArray[2].ToString();//æä½æ¹å¼æ°æ®ç±»å 1æ·»å 3ä¿®æ¹ 2 å¤å¶ |
| | | string msg4 = sArray[3].ToString();//ç¨æ·å |
| | | string msg5 = sArray[4].ToString(); |
| | | if (msg5 != null || msg5 != "") |
| | | { |
| | | |
| | | msg5 = msg5.Substring(1); |
| | | } |
| | | DBUtility.ClsPub.CurUserName = msg4; |
| | | |
| | | string UserName = ""; |
| | |
| | | { |
| | | |
| | | bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); |
| | | if (msg5 != "") |
| | | { |
| | | oCN.RunProc("update WL_YayBillMain set HDate_Accounting=getdate() , HSurer_Accounting='" + msg4 +"'" +" where HInterID in (" + msg5 + ")"); |
| | | } |
| | | } |
| | | else if (refSav == "Update") |
| | | { |
| | |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region è·åè¿åæºåæ°æ® |
| | | [Route("Pay_WayBillPaymentBillController/getOrginBill")] |
| | | [HttpGet] |
| | | public object getOrginBill(int HInterID,int HEntryID) |
| | | { |
| | | string sql1 = "select * from h_v_WL_YayBillEdit where HInterID= "+ HInterID+ " and HEntryID="+ HEntryID; |
| | | //string sql = sql1 + sWhere + " order by åæ®å· desc"; |
| | | ds = oCN.RunProcReturn(sql1, "h_v_WL_YayBill"); |
| | | if(ds!=null||ds.Tables.Count>0) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | #endregion |
| | | } |
| | | } |