• 使用EntitysCodeGenerate


    http://bbs.csdn.net/topics/360256700

    public DataSet xxx(DateTime start, DateTime end, string type)
            {
                            string[,] strArray = new string[6, 2] {{"0", "11"}, {"1", "11"}, {"2", "22"}, {"3", "11"}, {"4", "11"}, {"5", "11"}};
    
                DataSet dst = new DataSet();
                DbCore dbCore = new DbCore(DatabaseType.Oracle, BaseEntity.GetConnectionString());
                dbCore.Open();
                dst = dbCore.Select().SelectColumns(new string[]{A.s_FEECELLED, 
                                                            B.s_SSXCELLED, 
                                                            B.s_MSPHONE1, 
                                                            B.s_MSPHONE2, 
                                                            B.s_MSPHONE3, 
                                                            B.s_MSPHONE4,
                                                            A.s_ADDDATE,
                                                            A.s_ORDERFLAG,
                                                            A.s_RESPTIME})
                                .From(new string[]{A.s_TableName,
                                                    B.s_TableName})
                                .Where().ConditionAndEqual(A.s_ORDERTYPE, type)
                                        .ConditionAndBetweenAnd(A.s_ADDDATE, start.ToString(), end.ToString())
                                        .ConditionColumnAndEqual(A.s_FEECELLED, B.s_ADMINCELLING)
                                        .ConditionColumnAndEqual(A.s_USECELLED, B.s_SSXCELLED)
                                        .ConditionAndNotIn(A.s_FEECELLED, 
                                                            new string[] { "136xxxx", "135xxxx", "135xxxx", "136xxxx" }).ExecuteDataSet();
                dbCore.Close();
    
                DataTable dt = TableHelp.ReplacleTableColValue(dst.Tables[0], dst.Tables[0].Columns["ORDERFLAG"], strArray);
    //            TableHelp.SortTable(dst.Tables[0], dst.Tables[0].Columns[6]);
                TableHelp.SortTable(dt, "ADDDATE", SortDirection.Asc);//"ORDERFLAG", SortDirection.Asc);//, 
    
    //            TableHelp.SortTableAsc(dst.Tables[0], dst.Tables[0].Columns["ADDDATE"], dst.Tables[0].Columns["ORDERFLAG"]);
                           return dst;
            }
  • 相关阅读:
    Android studio 安装,JDK 出错解决方案
    Struts2 一、 视图转发跳转
    @Transactional 注解说明
    基于Schema的AOP 配置使用详解
    CSS滤镜让图片模糊(毛玻璃效果)实例页面
    Struts 2.3.4.1完整示例
    StudentSchema student实例数据库环境搭建
    network is unreachable 解决方案之一
    Oracle 转换函数
    Oracle检查与安装操作内容
  • 原文地址:https://www.cnblogs.com/zkwarrior/p/4860287.html
Copyright © 2020-2023  润新知