Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        public List <TCheckPaymentSumModel> GetModels(TCheckPaymentSumQueryModel ObjQueryModel, SqlTransaction Transaction)
        {
            TCheckPaymentSumDAL mdal = new TCheckPaymentSumDAL(Transaction);

            return(mdal.Select(ObjQueryModel));
        }