| | |
| | | BillOld.omodel.HYear = int.Parse(BillOld.omodel.HDate.ToString("yyyy-MM-dd").Split('-')[0]); |
| | | BillOld.omodel.HPeriod = int.Parse(BillOld.omodel.HDate.ToString("yyyy-MM-dd").Split('-')[1]); |
| | | //åæ®å表2æ°æ®èµå¼ |
| | | string[] HCopyManList = mainList[0].HCopyMan.ToString().Split(new string[] { "ã" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string HSub2List = mainList[0].HCopyMan.ToString() + "ã" + mainList[0].HSendMan.ToString() + "ã" + mainList[0].HReceiveMan; |
| | | string[] HCopyManList = HSub2List.Split(new string[] { "ã" }, StringSplitOptions.RemoveEmptyEntries); |
| | | for(int i = 0; i < HCopyManList.Length; i++) |
| | | { |
| | | Model.ClsOA_ErrMsgBackBillSub2 oSub = new Model.ClsOA_ErrMsgBackBillSub2(); |
| | |
| | | oSub.HEntryID = i+1; |
| | | oSub.HReceiveMan = HCopyManList[i]; |
| | | oSub.HReadFlag = false; |
| | | if(oSub.HReceiveMan == mainList[0].HSendMan) |
| | | { |
| | | oSub.HReadFlag = true; |
| | | } |
| | | subList2.Add(oSub); |
| | | } |
| | | Model.ClsOA_ErrMsgBackBillSub2 oSub1 = new Model.ClsOA_ErrMsgBackBillSub2(); |
| | | oSub1.HInterID = mainList[0].HInterID; |
| | | oSub1.HEntryID = subList2.Count + 1; |
| | | oSub1.HReceiveMan = mainList[0].HReceiveMan; |
| | | oSub1.HReadFlag = false; |
| | | subList2.Add(oSub1); |
| | | BillOld.DetailColl2 = subList2; |
| | | |
| | | if (!BillOld.AddBill(ref DBUtility.ClsPub.sExeReturnInfo)) |
| | |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | //æ¥çæé |
| | | //if (!DBUtility.ClsPub.Security_Log("Gy_ProjectStage_Query", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | if (!DBUtility.ClsPub.Security_Log("OA_ErrMsgBackBill_Query", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |