示例#1
0
 public AssembleFormatController(int formatId, AssembleMode mode, string connectionParameter, bool isCustomerCode, AssembleLocation fixedLocation, DatabaseType dbType = DatabaseType.SqlServer)
     : base(connectionParameter, isCustomerCode, dbType)
 {
     UseFixedLocation = true;
     FixedLocation    = fixedLocation;
     FillController(formatId, mode);
 }
示例#2
0
 public void FillController(int formatId, AssembleMode mode, string sqlQuery, DataTable data)
 {
     FormatId            = formatId;
     CurrentAssembleMode = mode;
     if (data != null)
     {
         Info = new AssembleInfo(this, data);
     }
     else if (!string.IsNullOrEmpty(sqlQuery))
     {
         Info = new AssembleInfo(this, sqlQuery);
     }
 }
示例#3
0
        private void FillController(int formatId, AssembleMode mode)
        {
            var sqlQuery =
                " SELECT pt.*, p.*, s.*, obj.object_id, obj.object_name, objf.format_name " + Renames +
                " FROM object_format objf " +
                " INNER JOIN object obj on objf.object_id = obj.object_id" +
                " INNER JOIN page_template AS pt ON pt.page_template_id=obj.page_template_id" +
                " LEFT JOIN page AS p ON p.page_id=obj.page_id" +
                " INNER JOIN site AS s ON pt.site_id = s.site_id" +
                " WHERE objf.object_format_id=" + formatId;

            FillController(formatId, mode, sqlQuery, null);
        }
示例#4
0
 public AssembleFormatController(int formatId, AssembleMode mode, DataTable data)
 {
     FillController(formatId, mode, string.Empty, data);
 }
示例#5
0
 public AssembleFormatController(int formatId, AssembleMode mode, string connectionParameter, DatabaseType dbType = DatabaseType.SqlServer)
     : base(connectionParameter, dbType)
 {
     FillController(formatId, mode);
 }
示例#6
0
 public override void Default()
 {
     FlipbookNumU = 5;
     FlipbookNumV = 5;
     Mode         = AssembleMode.FullSpriteSheet;
 }