//导出 public DataSet ExportSettlementBySettlementNumber_b(GetSettlementByConditionRequest request) { DataSet response = new DataSet(); try { response = new SettlementAccessor().ExportSettlementBySettlementNumber_b(request.WLSearchCondition); } catch (Exception ex) { LogError(ex); } return(response); }
public string GetSettlementDone(GetSettlementByConditionRequest request) { string Message = string.Empty; try { Message = new SettlementAccessor().GetSettlementDone(request.WLSearchCondition); } catch (Exception ex) { return("更新错误" + ex.Message); } return(Message); }
public string SaveSettlementBySettlementNumber(GetSettlementByConditionRequest request) { string Message = string.Empty; try { Message = new SettlementAccessor().SaveSettlementBySettlementNumber(request.WLSearchCondition); } catch (Exception ex) { return("更新错误"); } return(Message); }
//导出 public DataTable ExportSettlement(GetSettlementByConditionRequest request, DateTime?StartSettlementdate, DateTime?EndSettlementdate, string DateTime1) { DataTable dt = new DataTable(); try { int RowCount; dt = new SettlementAccessor().ExportSettlement(request.HiltibjSettled, StartSettlementdate, EndSettlementdate, DateTime1, out RowCount); } catch (Exception ex) { LogError(ex); } return(dt); }
//删除 public int DeleteHiltibjSettled(string ID) { int a = 0; try { a = new SettlementAccessor().DeleteHiltibjSettled(ID); } catch (Exception ex) { throw; } return(a); }
public Response <GetSettlementByConditionResponse> GetSettlementSave(GetSettlementByConditionRequest request) { Response <GetSettlementByConditionResponse> response = new Response <GetSettlementByConditionResponse>() { Result = new GetSettlementByConditionResponse() }; string News = string.Empty; try { News = new SettlementAccessor().GetSettlementSave(request.WLSearchCondition); response.IsSuccess = true; response.Result.Message = News; } catch (Exception ex) { LogError(ex); response.IsSuccess = false; response.ErrorCode = ErrorCode.Technical; response.Result.Message = "操作失败(" + ex.Message + ")"; } return(response); }