Ejemplo n.º 1
0
 public DataReportAnalyseApp(LogicTypeEnum logicType, Dictionary <string, DataTable> analyseDataDic,
                             Model_2806 model_2806 = null, Model_1111 model_1111 = null, TestStandardEnum testStandardEnum = TestStandardEnum.default2806)
 {
     this.logicType        = logicType;
     this.analyseDataDic   = analyseDataDic;
     this.model_2806       = model_2806;
     this.model_1111       = model_1111;
     this.testStandardEnum = testStandardEnum;
 }
Ejemplo n.º 2
0
 public bool Export(LogicTypeEnum logicType)
 {
     if (analyseReportDic.ContainsKey(logicType))
     {
         var result = analyseReportDic[logicType];
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// 数据库sql where参数封装类
        /// </summary>
        /// <param name="expression">表达式,例u=>u.Id</param>
        /// <param name="value">表达式的值</param>
        /// <param name="operateType">操作逻辑</param>
        /// <param name="logicType">连接逻辑</param>
        public DbWhere(Expression <Func <TEntity, object> > expression, object value, OperateTypeEnum operateType = OperateTypeEnum.Equal, LogicTypeEnum logicType = LogicTypeEnum.And)
        {
            PropertyInfo property = GetProperty(expression) as PropertyInfo;
            var          real     = property.GetCustomAttribute(typeof(ColumnAttribute), false);

            if (real != null && real is ColumnAttribute)
            {
                PropertyName = ((ColumnAttribute)real).Name;
            }
            else
            {
                PropertyName = property.Name;
            }
            Value       = value;
            OperateType = operateType;
            LogicType   = logicType;
        }
Ejemplo n.º 4
0
 public DataReportAnalyseApp(LogicTypeEnum logicType, Dictionary <string, DataTable> analyseDataDic)
 {
     this.logicType      = logicType;
     this.analyseDataDic = analyseDataDic;
 }
 public FormPressureCurve(DataTable dt, LogicTypeEnum logicType)
 {
     InitializeComponent();
     this.graphDt   = dt;
     this.logicType = logicType;
 }