| | |
| | | { |
| | | bResult = false; |
| | | } |
| | | |
| | | //自动审核设置 |
| | | if (refSav == "Add") |
| | | { |
| | | objJsonResult.HInterID = oBill.omodel.HInterID.ToString(); //返回主ID |
| | | //系统参数 自动审核 |
| | | string sReturn = ""; |
| | | if (oSystemParameter.ShowBill(ref sReturn) == true) |
| | | { |
| | | if (oSystemParameter.omodel.YS_ReceiveBill_AutoCheck == "Y") //系统参数 自动审核 |
| | | { |
| | | objJsonResult.Verify = "Y"; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.Verify = "N"; |
| | | } |
| | | } |
| | | } |
| | | else if (refSav == "Update") |
| | | { |
| | | objJsonResult.HInterID = oBill.omodel.HInterID.ToString(); //返回主ID |
| | | objJsonResult.Verify = "N"; |
| | | } |
| | | |
| | | if (bResult) |
| | | { |
| | | objJsonResult.code = "0"; |
| | |
| | | |
| | | oCN.BeginTran(); |
| | | |
| | | ds = oCN.RunProcReturn("select * from h_v_YS_ReceiveBillList where hmainid=" + HInterID, "h_v_YS_ReceiveBillList"); |
| | | string hSourceBillType = ds.Tables[0].Rows[0]["源单类型"].ToString(); |
| | | if (hSourceBillType == "1426") |
| | | { |
| | | //收款单 删除回填 应付单关联数量 |
| | | oCN.RunProc("exec h_p_Xs_UpDateRelation_ReceiveToReceivableIn_Del " + HInterID); |
| | | } |
| | | |
| | | oCN.RunProc("delete from YS_ReceiveBillMain where HInterID = " + HInterID); |
| | | oCN.RunProc("delete from YS_ReceiveBillSub where HInterID= " + HInterID); |
| | | |