public List <TC_OA_LingYongMenonySumModel> GetTC_OA_LingYongMenonySumList(string SortColumns, int StartRecord, int MaxRecords, int CodeEqual, string SendUnitEqual, DateTime SumDateEqual, int AuditingEqual) { List <TC_OA_LingYongMenonySumModel> models = new List <TC_OA_LingYongMenonySumModel>(); TC_OA_LingYongMenonySumQueryModel objQueryModel = new TC_OA_LingYongMenonySumQueryModel(); 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 TC_OA_LingYongMenonySumBLL().GetModels(objQueryModel, connection); connection.Close(); } catch (SqlException exception) { throw exception; } } return(models); }
public List <TC_OA_LingYongMenonySumModel> GetTC_OA_LingYongMenonySumList(TC_OA_LingYongMenonySumQueryModel QueryModel) { List <TC_OA_LingYongMenonySumModel> models = new List <TC_OA_LingYongMenonySumModel>(); using (SqlConnection connection = new SqlConnection(FunctionRule.GetConnectionString())) { try { if (QueryModel == null) { QueryModel = new TC_OA_LingYongMenonySumQueryModel(); } models = new TC_OA_LingYongMenonySumBLL().GetModels(QueryModel, connection); connection.Close(); } catch (SqlException exception) { throw exception; } } return(models); }
public List <TC_OA_LingYongMenonySumModel> GetModels(TC_OA_LingYongMenonySumQueryModel ObjQueryModel, SqlTransaction Transaction) { TC_OA_LingYongMenonySumDAL mdal = new TC_OA_LingYongMenonySumDAL(Transaction); return(mdal.Select(ObjQueryModel)); }