public List <TCheckPaymentSumModel> GetTCheckPaymentSumList(string SortColumns, int StartRecord, int MaxRecords, int CodeEqual, string SendUnitEqual, DateTime SumDateEqual, string AuditingEqual) { List <TCheckPaymentSumModel> models = new List <TCheckPaymentSumModel>(); TCheckPaymentSumQueryModel objQueryModel = new TCheckPaymentSumQueryModel(); objQueryModel.StartRecord = StartRecord; objQueryModel.MaxRecords = MaxRecords; objQueryModel.SortColumns = SortColumns; objQueryModel.CodeEqual = CodeEqual; objQueryModel.SendUnitEqual = SendUnitEqual; objQueryModel.SumDateEqual = SumDateEqual; objQueryModel.AuditingEqual = AuditingEqual; using (SqlConnection connection = new SqlConnection(FunctionRule.GetConnectionString())) { try { models = new TCheckPaymentSumBLL().GetModels(objQueryModel, connection); connection.Close(); } catch (SqlException exception) { throw exception; } } return(models); }
public List <TCheckPaymentSumModel> GetTCheckPaymentSumList(TCheckPaymentSumQueryModel QueryModel) { List <TCheckPaymentSumModel> models = new List <TCheckPaymentSumModel>(); using (SqlConnection connection = new SqlConnection(FunctionRule.GetConnectionString())) { try { if (QueryModel == null) { QueryModel = new TCheckPaymentSumQueryModel(); } models = new TCheckPaymentSumBLL().GetModels(QueryModel, connection); connection.Close(); } catch (SqlException exception) { throw exception; } } return(models); }
public List <TCheckPaymentSumModel> GetModels(TCheckPaymentSumQueryModel ObjQueryModel, SqlTransaction Transaction) { TCheckPaymentSumDAL mdal = new TCheckPaymentSumDAL(Transaction); return(mdal.Select(ObjQueryModel)); }