Ejemplo n.º 1
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(PresentProjectEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into PresentProject (" +
                            "ProjectName," +
                            "BeginDate," +
                            "EndDate," +
                            "MinMoney," +
                            "MaxMoney," +
                            "PresentContent," +
                            "Price," +
                            "PresentID," +
                            "Cash," +
                            "PresentExp," +
                            "PresentPoint," +
                            "IsDisabled) " +
                            "values(" +
                            "@ProjectName," +
                            "@BeginDate," +
                            "@EndDate," +
                            "@MinMoney," +
                            "@MaxMoney," +
                            "@PresentContent," +
                            "@Price," +
                            "@PresentID," +
                            "@Cash," +
                            "@PresentExp," +
                            "@PresentPoint," +
                            "@IsDisabled)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(StockOutEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into StockOut (" +
                            "Email," +
                            "UserId," +
                            "Mobile," +
                            "ProductId," +
                            "OrderNum," +
                            "InputTime," +
                            "IP," +
                            "EmailStatus," +
                            "MobileStatus," +
                            "Property) " +
                            "values(" +
                            "@Email," +
                            "@UserId," +
                            "@Mobile," +
                            "@ProductId," +
                            "@OrderNum," +
                            "@InputTime," +
                            "@IP," +
                            "@EmailStatus," +
                            "@MobileStatus," +
                            "@Property)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(PointLogEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into PointLog (" +
                            "UserName," +
                            "ModuleType," +
                            "InfoID," +
                            "Point," +
                            "LogTime," +
                            "Times," +
                            "IncomePayOut," +
                            "Remark," +
                            "IP," +
                            "Inputer," +
                            "Memo) " +
                            "values(" +
                            "@UserName," +
                            "@ModuleType," +
                            "@InfoID," +
                            "@Point," +
                            "@LogTime," +
                            "@Times," +
                            "@IncomePayOut," +
                            "@Remark," +
                            "@IP," +
                            "@Inputer," +
                            "@Memo)";

            return(_DB.ReturnID(strSQL, dict));
        }
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(CreditLinesLogEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into CreditLinesLog (" +
                            "UserName," +
                            "CreditLines," +
                            "IncomePayout," +
                            "LogTime," +
                            "Remark," +
                            "IP," +
                            "Inputer) " +
                            "values(" +
                            "@UserName," +
                            "@CreditLines," +
                            "@IncomePayout," +
                            "@LogTime," +
                            "@Remark," +
                            "@IP," +
                            "@Inputer)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(DeliverChargeEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into DeliverCharge (" +
                            "DeliverTypeID," +
                            "AreaType," +
                            "arrArea," +
                            "Charge_Min," +
                            "Weight_Min," +
                            "ChargePerUnit," +
                            "WeightPerUnit," +
                            "Charge_Max) " +
                            "values(" +
                            "@DeliverTypeID," +
                            "@AreaType," +
                            "@arrArea," +
                            "@Charge_Min," +
                            "@Weight_Min," +
                            "@ChargePerUnit," +
                            "@WeightPerUnit," +
                            "@Charge_Max)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 6
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(MentionLogEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into MentionLog (" +
                            "Applicant," +
                            "ApplicationTime," +
                            "ApplicationAmount," +
                            "HandlingCharge," +
                            "BankAccount," +
                            "MentionStatus," +
                            "Operator," +
                            "OperatingTime," +
                            "Remark," +
                            "LogTime) " +
                            "values(" +
                            "@Applicant," +
                            "@ApplicationTime," +
                            "@ApplicationAmount," +
                            "@HandlingCharge," +
                            "@BankAccount," +
                            "@MentionStatus," +
                            "@Operator," +
                            "@OperatingTime," +
                            "@Remark," +
                            "@LogTime)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 7
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(CourierEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into Courier (" +
                            "ShortName," +
                            "FullName," +
                            "Address," +
                            "Telephone," +
                            "Contacter," +
                            "SearchUrl," +
                            "SearchUrlMobile) " +
                            "values(" +
                            "@ShortName," +
                            "@FullName," +
                            "@Address," +
                            "@Telephone," +
                            "@Contacter," +
                            "@SearchUrl," +
                            "@SearchUrlMobile)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 8
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(DeliverLogEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into DeliverLog (" +
                            "OrderID," +
                            "DeliverDate," +
                            "DeliverDirection," +
                            "HandlerName," +
                            "CourierId," +
                            "ExpressNumber," +
                            "Inputer," +
                            "Remark," +
                            "IsReceived," +
                            "ReceivedDate," +
                            "Memo) " +
                            "values(" +
                            "@OrderID," +
                            "@DeliverDate," +
                            "@DeliverDirection," +
                            "@HandlerName," +
                            "@CourierId," +
                            "@ExpressNumber," +
                            "@Inputer," +
                            "@Remark," +
                            "@IsReceived," +
                            "@ReceivedDate," +
                            "@Memo)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 9
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(KeywordsEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into Keywords (" +
                            "KeywordText," +
                            "KeywordType," +
                            "Priority," +
                            "Hits," +
                            "LastUseTime," +
                            "GeneralID," +
                            "QuoteTimes) " +
                            "values(" +
                            "@KeywordText," +
                            "@KeywordType," +
                            "@Priority," +
                            "@Hits," +
                            "@LastUseTime," +
                            "@GeneralID," +
                            "@QuoteTimes)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 10
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(UserMessageEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into UserMessage (" +
                            "Title," +
                            "Content," +
                            "Sender," +
                            "Incept," +
                            "SendTime," +
                            "IsSend," +
                            "IsDelInbox," +
                            "IsDelSendbox," +
                            "IsRead) " +
                            "values(" +
                            "@Title," +
                            "@Content," +
                            "@Sender," +
                            "@Incept," +
                            "@SendTime," +
                            "@IsSend," +
                            "@IsDelInbox," +
                            "@IsDelSendbox," +
                            "@IsRead)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 11
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(StatVisitEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into StatVisit (" +
                            "D1," +
                            "D2," +
                            "D3," +
                            "D4," +
                            "D5," +
                            "D6," +
                            "D7," +
                            "D8," +
                            "D9," +
                            "D10) " +
                            "values(" +
                            "@D1," +
                            "@D2," +
                            "@D3," +
                            "@D4," +
                            "@D5," +
                            "@D6," +
                            "@D7," +
                            "@D8," +
                            "@D9," +
                            "@D10)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 12
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(StatVisitorEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into StatVisitor (" +
                            "VTime," +
                            "Ip," +
                            "Address," +
                            "System," +
                            "Browser," +
                            "Screen," +
                            "Color," +
                            "Referer," +
                            "Timezone) " +
                            "values(" +
                            "@VTime," +
                            "@Ip," +
                            "@Address," +
                            "@System," +
                            "@Browser," +
                            "@Screen," +
                            "@Color," +
                            "@Referer," +
                            "@Timezone)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 13
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(HirePurchaseEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into HirePurchase (" +
                            "NodeID," +
                            "ProductID," +
                            "DownPayment," +
                            "DownPaymentMax," +
                            "YearRate," +
                            "Fee," +
                            "MerchantRebate," +
                            "Deadline," +
                            "MinLoanMoney," +
                            "MaxLoanMoney) " +
                            "values(" +
                            "@NodeID," +
                            "@ProductID," +
                            "@DownPayment," +
                            "@DownPaymentMax," +
                            "@YearRate," +
                            "@Fee," +
                            "@MerchantRebate," +
                            "@Deadline," +
                            "@MinLoanMoney," +
                            "@MaxLoanMoney)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 14
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(TransferLogEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into TransferLog (" +
                            "OrderID," +
                            "TransferTime," +
                            "OwnerUserName," +
                            "PayerUserName," +
                            "TargetUserName," +
                            "Poundage," +
                            "Inputer," +
                            "Remark) " +
                            "values(" +
                            "@OrderID," +
                            "@TransferTime," +
                            "@OwnerUserName," +
                            "@PayerUserName," +
                            "@TargetUserName," +
                            "@Poundage," +
                            "@Inputer," +
                            "@Remark)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 15
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(LogEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into Log (" +
                            "Category," +
                            "Priority," +
                            "Title," +
                            "Message," +
                            "Timestamp," +
                            "UserName," +
                            "UserIP," +
                            "Source," +
                            "ScriptName," +
                            "PostString) " +
                            "values(" +
                            "@Category," +
                            "@Priority," +
                            "@Title," +
                            "@Message," +
                            "@Timestamp," +
                            "@UserName," +
                            "@UserIP," +
                            "@Source," +
                            "@ScriptName," +
                            "@PostString)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 16
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(SortingLogEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into SortingLog (" +
                            "Payer," +
                            "PaymentTime," +
                            "MoneyPay," +
                            "Status," +
                            "Operator," +
                            "OperatingTime," +
                            "Remark," +
                            "LogTime) " +
                            "values(" +
                            "@Payer," +
                            "@PaymentTime," +
                            "@MoneyPay," +
                            "@Status," +
                            "@Operator," +
                            "@OperatingTime," +
                            "@Remark," +
                            "@LogTime)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 17
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(RegionEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into Region (" +
                            "Country," +
                            "Province," +
                            "City," +
                            "Area," +
                            "Area1," +
                            "Area2," +
                            "PostCode," +
                            "AreaCode) " +
                            "values(" +
                            "@Country," +
                            "@Province," +
                            "@City," +
                            "@Area," +
                            "@Area1," +
                            "@Area2," +
                            "@PostCode," +
                            "@AreaCode)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 18
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(ValidLogEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into ValidLog (" +
                            "UserName," +
                            "ValidNum," +
                            "IncomePayout," +
                            "LogTime," +
                            "Remark," +
                            "IP," +
                            "Inputer," +
                            "Memo) " +
                            "values(" +
                            "@UserName," +
                            "@ValidNum," +
                            "@IncomePayout," +
                            "@LogTime," +
                            "@Remark," +
                            "@IP," +
                            "@Inputer," +
                            "@Memo)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 19
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(PresentBuyLogEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into PresentBuyLog (" +
                            "ProductID," +
                            "UserID," +
                            "Msg," +
                            "IsSuccess," +
                            "NeedS," +
                            "UpdateTime," +
                            "BuyCounts) " +
                            "values(" +
                            "@ProductID," +
                            "@UserID," +
                            "@Msg," +
                            "@IsSuccess," +
                            "@NeedS," +
                            "@UpdateTime," +
                            "@BuyCounts)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 20
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(OrderFeedbackEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into OrderFeedback (" +
                            "OrderID," +
                            "UserName," +
                            "Content," +
                            "WriteTime," +
                            "ReplyName," +
                            "ReplyContent," +
                            "ReplyTime) " +
                            "values(" +
                            "@OrderID," +
                            "@UserName," +
                            "@Content," +
                            "@WriteTime," +
                            "@ReplyName," +
                            "@ReplyContent," +
                            "@ReplyTime)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 21
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(RepaymentEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into Repayment (" +
                            "OrderID," +
                            "OrderItemID," +
                            "UserID," +
                            "Deadline," +
                            "CurrentDeadline," +
                            "RePayDate," +
                            "RePayMoney," +
                            "Principal," +
                            "Interest," +
                            "MonthFeeMoney," +
                            "VIPMoney," +
                            "InsuranceMoney," +
                            "RePayMoneySub," +
                            "RepaymentType," +
                            "RepaymentStatus," +
                            "TrueRePayDate," +
                            "TrueRePayMoney," +
                            "OverdueDays," +
                            "LateFee," +
                            "PressMoneyStatus," +
                            "PressMoneyStaff," +
                            "Remark," +
                            "Remark1," +
                            "Remark2) " +
                            "values(" +
                            "@OrderID," +
                            "@OrderItemID," +
                            "@UserID," +
                            "@Deadline," +
                            "@CurrentDeadline," +
                            "@RePayDate," +
                            "@RePayMoney," +
                            "@Principal," +
                            "@Interest," +
                            "@MonthFeeMoney," +
                            "@VIPMoney," +
                            "@InsuranceMoney," +
                            "@RePayMoneySub," +
                            "@RepaymentType," +
                            "@RepaymentStatus," +
                            "@TrueRePayDate," +
                            "@TrueRePayMoney," +
                            "@OverdueDays," +
                            "@LateFee," +
                            "@PressMoneyStatus," +
                            "@PressMoneyStaff," +
                            "@Remark," +
                            "@Remark1," +
                            "@Remark2)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 22
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(AuthorEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into Author (" +
                            "UserID," +
                            "Type," +
                            "Name," +
                            "IsPassed," +
                            "IsTop," +
                            "IsElite," +
                            "Hits," +
                            "LastUseTime," +
                            "TemplateID," +
                            "AuthorPic," +
                            "AuthorIntro," +
                            "Address," +
                            "Tel," +
                            "Fax," +
                            "Mail," +
                            "Email," +
                            "ZipCode," +
                            "HomePage," +
                            "Im," +
                            "Sex," +
                            "BirthDay," +
                            "Company," +
                            "Department) " +
                            "values(" +
                            "@UserID," +
                            "@Type," +
                            "@Name," +
                            "@IsPassed," +
                            "@IsTop," +
                            "@IsElite," +
                            "@Hits," +
                            "@LastUseTime," +
                            "@TemplateID," +
                            "@AuthorPic," +
                            "@AuthorIntro," +
                            "@Address," +
                            "@Tel," +
                            "@Fax," +
                            "@Mail," +
                            "@Email," +
                            "@ZipCode," +
                            "@HomePage," +
                            "@Im," +
                            "@Sex," +
                            "@BirthDay," +
                            "@Company," +
                            "@Department)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 23
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(ProductDataEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into ProductData (" +
                            "ProductID," +
                            "TableName," +
                            "PropertyValue," +
                            "Stocks," +
                            "OrderNum," +
                            "AlarmNum," +
                            "BuyTimes," +
                            "Weight," +
                            "Volume," +
                            "Price," +
                            "Price_Market," +
                            "Price_Activity," +
                            "Price_Settlement," +
                            "Price_Member," +
                            "Price_Agent," +
                            "Price_Wholesale1," +
                            "Price_Wholesale2," +
                            "Price_Wholesale3," +
                            "Number_Wholesale1," +
                            "Number_Wholesale2," +
                            "Number_Wholesale3," +
                            "IsValid) " +
                            "values(" +
                            "@ProductID," +
                            "@TableName," +
                            "@PropertyValue," +
                            "@Stocks," +
                            "@OrderNum," +
                            "@AlarmNum," +
                            "@BuyTimes," +
                            "@Weight," +
                            "@Volume," +
                            "@Price," +
                            "@Price_Market," +
                            "@Price_Activity," +
                            "@Price_Settlement," +
                            "@Price_Member," +
                            "@Price_Agent," +
                            "@Price_Wholesale1," +
                            "@Price_Wholesale2," +
                            "@Price_Wholesale3," +
                            "@Number_Wholesale1," +
                            "@Number_Wholesale2," +
                            "@Number_Wholesale3," +
                            "@IsValid)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 24
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(SubscriptionItemsEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into SubscriptionItems (" +
                            "Name) " +
                            "values(" +
                            "@Name)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 25
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(MailListEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into MailList (" +
                            "Email) " +
                            "values(" +
                            "@Email)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 26
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(ServiceLogEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into ServiceLog (" +
                            "ClientID," +
                            "ContacterID," +
                            "OrderID," +
                            "ServiceTime," +
                            "ServiceType," +
                            "ServiceMode," +
                            "ServiceTitle," +
                            "ServiceContent," +
                            "ServiceResult," +
                            "TakeTime," +
                            "ServicePoint," +
                            "Processor," +
                            "Inputer," +
                            "Feedback," +
                            "ConfirmTime," +
                            "ConfirmCaller," +
                            "ConfirmScore," +
                            "ConfirmFeedback," +
                            "Remark) " +
                            "values(" +
                            "@ClientID," +
                            "@ContacterID," +
                            "@OrderID," +
                            "@ServiceTime," +
                            "@ServiceType," +
                            "@ServiceMode," +
                            "@ServiceTitle," +
                            "@ServiceContent," +
                            "@ServiceResult," +
                            "@TakeTime," +
                            "@ServicePoint," +
                            "@Processor," +
                            "@Inputer," +
                            "@Feedback," +
                            "@ConfirmTime," +
                            "@ConfirmCaller," +
                            "@ConfirmScore," +
                            "@ConfirmFeedback," +
                            "@Remark)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 27
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(KeywordRelationEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into KeywordRelation (" +
                            "KeywordID," +
                            "GeneralID) " +
                            "values(" +
                            "@KeywordID," +
                            "@GeneralID)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 28
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(SourceEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into Source (" +
                            "Type," +
                            "Name," +
                            "IsPassed," +
                            "IsTop," +
                            "IsElite," +
                            "Hits," +
                            "LastUseTime," +
                            "Photo," +
                            "Intro," +
                            "Address," +
                            "Tel," +
                            "Fax," +
                            "Mail," +
                            "Email," +
                            "ZipCode," +
                            "HomePage," +
                            "Im," +
                            "Contacter) " +
                            "values(" +
                            "@Type," +
                            "@Name," +
                            "@IsPassed," +
                            "@IsTop," +
                            "@IsElite," +
                            "@Hits," +
                            "@LastUseTime," +
                            "@Photo," +
                            "@Intro," +
                            "@Address," +
                            "@Tel," +
                            "@Fax," +
                            "@Mail," +
                            "@Email," +
                            "@ZipCode," +
                            "@HomePage," +
                            "@Im," +
                            "@Contacter)";

            return(_DB.ReturnID(strSQL, dict));
        }
Ejemplo n.º 29
0
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(StatIpInfoEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into StatIpInfo (" +
                            "StartIp," +
                            "EndIp," +
                            "Address) " +
                            "values(" +
                            "@StartIp," +
                            "@EndIp," +
                            "@Address)";

            return(_DB.ReturnID(strSQL, dict));
        }
        /// <summary>
        /// 增加一条记录,返回新的ID号。需要有一个单一主键,并且开启有标识符属性
        /// </summary>
        /// <param name="entity">实体模型</param>
        /// <returns></returns>
        public virtual int Insert(FileRelationInfoEntity entity)
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            GetParameters(entity, dict);

            string strSQL = "insert into FileRelationInfo (" +
                            "InfoID," +
                            "InfoType," +
                            "Path) " +
                            "values(" +
                            "@InfoID," +
                            "@InfoType," +
                            "@Path)";

            return(_DB.ReturnID(strSQL, dict));
        }