Пример #1
0
        public static void ExpData(string name, System.Data.DataTable dt, object[] inputParam)
        {
            DataExpSchema Schema       = new DataExpSchema();
            DataExpObject SchemaObject = Schema.GetDataExpObject(name);

            if (SchemaObject == null)
            {
                return;
            }

            BaseEngine eng = null;

            if (SchemaObject.Type == "Text")
            {
                eng = new TextEngine();
            }
            else if (SchemaObject.Type == "Excel")
            {
                eng = new ExcelEngine();
            }

            if (eng != null)
            {
                eng.Exp(name, dt, inputParam);
            }
        }
Пример #2
0
 public void Exp(string name, System.Data.DataTable dt, object[] inputParam)
 {
     this.PSB          = BenQGuru.eMES.Common.PersistBroker.PersistBrokerManager.PersistBroker();
     this.InputParam   = inputParam;
     this.Name         = name;
     this.Data         = dt;
     this.Schema       = new DataExpSchema();
     this.SchemaObject = Schema.GetDataExpObject(name);
     this.DoExp();
 }