| | |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | string sql = "select * from h_v_OA_ErrMsgBackBillList order by 单据号 desc"; |
| | | ds = oCN.RunProcReturn(sql, "p_v_OA_ErrMsgBackBillList"); |
| | | ds = oCN.RunProcReturn(sql, "h_v_OA_ErrMsgBackBillList"); |
| | | } |
| | | else |
| | | { |
| | |
| | | A.HReceiveMan,A.HCopyMan,A.HHasten, |
| | | A.HLevel,A.HMaterName,A.HMaterModel, |
| | | B.HReadFlag, A.HMaker,A.HMakeDate,A.HUpDater,A.HUpDateDate,A.HChecker,A.HCheckDate,A.HCloseMan,A.HCloseDate,A.HDeleteMan,A.HDeleteDate, |
| | | A.HSourceInterID,A.HSourceEntryID,A.HSourceBillNo,A.HSourceBillType |
| | | A.HSourceInterID,A.HSourceEntryID,A.HSourceBillNo,A.HSourceBillType, |
| | | A.HHandleEmpID,f.HName HHandleEmpName |
| | | from OA_ErrMsgBackBillMain A |
| | | inner join OA_ErrMsgBackBillSub2 B on A.HInterID=B.HInterID |
| | | left join Gy_Department D on A.HDeptID=D.HItemID |
| | | left join Gy_Employee f on A.HHandleEmpID=f.HItemID |
| | | where A.HInterID='" + HID + "' and b.HEntryID='" + HEntryID + "'"); |
| | | var dataSet = oCN.RunProcReturn(sql, "OA_ErrMsgBackBillMain"); |
| | | if (dataSet == null || dataSet.Tables[0].Rows.Count == 0) |