コード例 #1
0
        public List <TC_OA_PurchasePriceModel> GetTC_OA_PurchasePriceList(string SortColumns, int StartRecord, int MaxRecords, int CodeEqual, string UserCodeEqual, string UnitCodeEqual, DateTime ApplayDateEqual, string NameEqual, string UseWayEqual, string TypeEqual, string SuggestEqual, int AuditingEqual)
        {
            List <TC_OA_PurchasePriceModel> models        = new List <TC_OA_PurchasePriceModel>();
            TC_OA_PurchasePriceQueryModel   objQueryModel = new TC_OA_PurchasePriceQueryModel();

            objQueryModel.StartRecord     = StartRecord;
            objQueryModel.MaxRecords      = MaxRecords;
            objQueryModel.SortColumns     = SortColumns;
            objQueryModel.CodeEqual       = CodeEqual;
            objQueryModel.UserCodeEqual   = UserCodeEqual;
            objQueryModel.UnitCodeEqual   = UnitCodeEqual;
            objQueryModel.ApplayDateEqual = ApplayDateEqual;
            objQueryModel.NameEqual       = NameEqual;
            objQueryModel.UseWayEqual     = UseWayEqual;
            objQueryModel.TypeEqual       = TypeEqual;
            objQueryModel.SuggestEqual    = SuggestEqual;
            objQueryModel.AuditingEqual   = AuditingEqual;
            using (SqlConnection connection = new SqlConnection(FunctionRule.GetConnectionString()))
            {
                try
                {
                    connection.Open();
                    models = new TC_OA_PurchasePriceBLL().GetModels(objQueryModel, connection);
                    connection.Close();
                }
                catch (SqlException exception)
                {
                    throw exception;
                }
            }
            return(models);
        }
コード例 #2
0
        public List <TC_OA_PurchasePriceModel> GetTC_OA_PurchasePriceList(TC_OA_PurchasePriceQueryModel QueryModel)
        {
            List <TC_OA_PurchasePriceModel> models = new List <TC_OA_PurchasePriceModel>();

            using (SqlConnection connection = new SqlConnection(FunctionRule.GetConnectionString()))
            {
                try
                {
                    connection.Open();
                    if (QueryModel == null)
                    {
                        QueryModel = new TC_OA_PurchasePriceQueryModel();
                    }
                    models = new TC_OA_PurchasePriceBLL().GetModels(QueryModel, connection);
                    connection.Close();
                }
                catch (SqlException exception)
                {
                    throw exception;
                }
            }
            return(models);
        }
コード例 #3
0
ファイル: TC_OA_PurchasePriceBLL.cs プロジェクト: ishui/rms2
        public List <TC_OA_PurchasePriceModel> GetModels(TC_OA_PurchasePriceQueryModel ObjQueryModel, SqlTransaction Transaction)
        {
            TC_OA_PurchasePriceDAL edal = new TC_OA_PurchasePriceDAL(Transaction);

            return(edal.Select(ObjQueryModel));
        }