| | |
| | | //oItemSub.HSourceBillType = ""; //源单类型 |
| | | //oItemSub.HRelationQty = 0; //关联数量 |
| | | //oItemSub.HRelationMoney = 0; //关联金额 |
| | | oBill.DetailColl.Add(oItemSub); |
| | | |
| | | if (oItemSub.HMaterID != 0) |
| | | { |
| | | oBill.DetailColl.Add(oItemSub); |
| | | } |
| | | } |
| | | //保存 |
| | | //保存完毕后处理 |
| | |
| | | objJsonResult.Message = "单据未审核!不需要反审核!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | foreach(Model.ClsXs_SeOrderBillSub oSub in oBill.DetailColl) |
| | | { |
| | | if (oSub.HCloseMan != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "单据中存在行关闭的记录!反审核失败!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | else |
| | | { |
| | | sWhere = " and HCusID in (select hcusid from Gy_UserCustomerRelation Where HUserID = '" + CurUserID + "') "; |
| | | sWhere = " and HCusID in (select hcusid from Gy_UserCustomerRelation Where HUserID = '" + CurUserID + "' union all select 166351 hcusid)"; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |