public List <TC_OA_LingYongMoneyDetailModel> GetTC_OA_LingYongMoneyDetailList(string SortColumns, int StartRecord, int MaxRecords, string MastCodeEqual, int IsSubmitEqual) { List <TC_OA_LingYongMoneyDetailModel> models = new List <TC_OA_LingYongMoneyDetailModel>(); TC_OA_LingYongMoneyDetailQueryModel objQueryModel = new TC_OA_LingYongMoneyDetailQueryModel(); objQueryModel.StartRecord = StartRecord; objQueryModel.MaxRecords = MaxRecords; if (SortColumns == null) { SortColumns = ""; } objQueryModel.SortColumns = SortColumns; objQueryModel.MastCodeEqual = MastCodeEqual; objQueryModel.IsSubmitEqual = IsSubmitEqual; using (SqlConnection connection = new SqlConnection(FunctionRule.GetConnectionString())) { try { connection.Open(); models = new TC_OA_LingYongMoneyDetailBLL().GetModels(objQueryModel, connection); connection.Close(); } catch (SqlException exception) { throw exception; } } return(models); }
public List <TC_OA_LingYongMoneyDetailModel> GetTC_OA_LingYongMoneyDetailList(TC_OA_LingYongMoneyDetailQueryModel QueryModel) { List <TC_OA_LingYongMoneyDetailModel> models = new List <TC_OA_LingYongMoneyDetailModel>(); using (SqlConnection connection = new SqlConnection(FunctionRule.GetConnectionString())) { try { connection.Open(); if (QueryModel == null) { QueryModel = new TC_OA_LingYongMoneyDetailQueryModel(); } models = new TC_OA_LingYongMoneyDetailBLL().GetModels(QueryModel, connection); connection.Close(); } catch (SqlException exception) { throw exception; } } return(models); }
public List <TC_OA_LingYongMoneyDetailModel> GetModels(TC_OA_LingYongMoneyDetailQueryModel ObjQueryModel, SqlTransaction Transaction) { TC_OA_LingYongMoneyDetailDAL ldal = new TC_OA_LingYongMoneyDetailDAL(Transaction); return(ldal.Select(ObjQueryModel)); }