update_dmamanager_3.5.4.js 6.85 KB
use DMAMANAGER
db.auth("mongoapp", "mOng0@pp")
db.dma_configuration.drop()
db.createCollection("dma_configuration")
db.dma_configuration.insertOne(
	{
    "configName" : "versionInfo",
    "data" : {     
    },
    "nativeJson" : {"data" : "{\"$jason\":{\"head\":{\"title\":\"SoftwareUpdateTemplate\",\"description\":\"SoftwareUpdateTemplate\",\"styles\":{},\"actions\":{\"$load\":{\"type\":\"$set\",\"options\":{\"headerColor\":\"#000000\",\"headerBgColor\":\"#ffffff\",\"headerTitle\":\"Software Update\",\"version\":\"{{$env.app.version}}\",\"typeMobile\":\"{{$env.device.os.name}}\",\"lasted_version_ios\":\"2.5.4\",\"lasted_version_android\":\"3.6.4\",\"desc_android\":\"Version 3.6.4 \\n -Fix Header must be single line and split to '...' \\n -Add local image resource [icon_navigate.png,icon_currentlocation.png] \\n\\nVerion 3.6.3 \\n -Change refresh image for DVS \\n\\n Version 3.6.1 \\n -Fix bug dropdown not send value \\n\\n  Version 3.6.0 \\n -Add Feature SignaturePad \\n\\nVersion 3.5.0 \\n - Add able to set visibility of Layout  \\n\\nVersion 3.4.1 \\n - Fix bug loading dialog not close when Click deny permission. \\n\\n Version 3.4.0 \\n - Add feature tap info window of marker pin \\n \\n  Version 3.3.1 \\n - Add feature Set Action to onclick window of Marker pin.  \\n - Add feature Compress file image before upload.  \\n - Fix bug when using map GPS not close.\",\"desc_ios\":\"Version 2.5.4\\n - fix bug check box couponent\\n - add image Current Location to local\\n \\nVersion 2.5.3\\n - fix bug button size with text length\\n \\nVersion 2.5.2\\n - edit icon clear signature\\n \\nVersion 2.5.1\\n - fix bug type visible\\n - fix bug default image component\\n - add feature signature\\n \\nVersion 2.4.0\\n - add feature set visible to layout\\n \\nVersion 2.3.0\\n - add feature auto save photo to gallery\",\"link_download_android\":\"https://dl.dropbox.com/s/iu8e62b8htqx3jt/dma_dev-3.6.4.apk\",\"link_download_ios\":\"itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/8u5ia9fj8q4p9ov/DMA.plist\",\"icon_android\":\"https://cdn2.iconfinder.com/data/icons/ios-7-style-metro-ui-icons/512/MetroUI_OS_Android.png\",\"icon_ios\":\"https://cdn2.iconfinder.com/data/icons/ios-7-style-metro-ui-icons/512/MetroUI_OS_Apple.png\"},\"success\":{\"type\":\"$set\",\"options\":{\"resultData\":\"{{$jason}}\",\"lastedVersion\":\"{{$get.typeMobile =='ios' ? $get.lasted_version_ios : $get.lasted_version_android}}\",\"desc\":\"{{$get.typeMobile =='ios' ?$get.desc_ios : $get.desc_android}}\",\"link_install\":\"{{$get.typeMobile =='ios' ? $get.link_download_ios : $get.link_download_android}}\",\"icon\":\"{{$get.typeMobile =='ios' ? $get.icon_ios : $get.icon_android}}\"},\"success\":{\"type\":\"$set\",\"options\":{\"currentFlag\":\"{{$get.version >= $get.lastedVersion ? 'true' : 'false'}}\"},\"success\":{\"type\":\"$render\",\"success\":{},\"error\":{}}},\"error\":{}},\"error\":{}},\"installApp\":{\"type\":\"$loading\",\"options\":{\"lock\":\"true\"},\"success\":{\"type\":\"$loading\",\"options\":{\"lock\":\"false\"},\"success\":{\"type\":\"$util.browser\",\"options\":{\"url\":\"{{$get.link_install}}\"},\"success\":{},\"error\":{}}}}},\"templates\":{\"body\":{\"header\":{\"style\":{\"background\":\"{{$get.headerBgColor}}\",\"height\":\"20\",\"color\":\"{{$get.headerColor}}\"},\"title\":\"{{$get.headerTitle}}\"},\"style\":{\"border\":\"none\",\"background\":\"#e2e2e2\"},\"sections\":[{\"items\":[{\"type\":\"vertical\",\"style\":{\"padding\":\"0\",\"spacing\":\"20\"},\"components\":[{\"type\":\"space\",\"style\":{\"background\":\"#e2e2e2\",\"height\":\"10\"}},{\"type\":\"horizontal\",\"style\":{\"padding\":[{\"{{#if $get.currentFlag == 'true'}}\":\"0\"},{\"{{#else}}\":\"10\"}],\"spacing\":\"0\",\"height\":[{\"{{#if $get.currentFlag == 'true'}}\":\"0\"},{\"{{#else}}\":\"50\"}],\"newFlag\":\"true\",\"align\":\"center\",\"background\":\"#ffffff\"},\"components\":[{\"type\":\"label\",\"text\":\"Current version : {{$env.app.version}}\",\"style\":{\"padding\":\"0\",\"size\":\"20\",\"color\":\"#555555\"},\"visible\":[{\"{{#if $get.currentFlag == 'true'}}\":\"false\"},{\"{{#else}}\":\"true\"}]}]},{\"type\":\"vertical\",\"style\":{\"padding\":\"0\",\"spacing\":\"0\",\"background\":\"#ffffff\",\"newFlag\":\"true\"},\"components\":[{\"type\":\"label\",\"text\":\"Software Update\",\"style\":{\"padding\":\"10\",\"size\":\"26\",\"color\":\"#555555\"},\"visible\":[{\"{{#if $get.currentFlag == 'true'}}\":\"false\"},{\"{{#else}}\":\"true\"}]},{\"type\":\"horizontal\",\"style\":{\"padding\":[{\"{{#if $get.currentFlag == 'true'}}\":\"0\"},{\"{{#else}}\":\"10\"}],\"spacing\":[{\"{{#if $get.currentFlag == 'true'}}\":\"0\"},{\"{{#else}}\":\"10\"}]},\"components\":[{\"type\":\"image\",\"url\":\"{{$get.icon}}\",\"style\":{\"width\":\"100\",\"height\":[{\"{{#if $get.currentFlag == 'true'}}\":\"0\"},{\"{{#else}}\":\"100\"}]},\"visible\":[{\"{{#if $get.currentFlag == 'true'}}\":\"false\"},{\"{{#else}}\":\"true\"}]},{\"type\":\"vertical\",\"style\":{\"padding\":[{\"{{#if $get.currentFlag == 'true'}}\":\"0\"},{\"{{#else}}\":\"10\"}],\"spacing\":\"0\"},\"components\":[{\"type\":\"label\",\"text\":\"{{$env.device.os.name}} {{$get.lastedVersion}}\",\"style\":{\"padding\":\"0\",\"size\":\"18\",\"color\":\"#555555\"},\"visible\":[{\"{{#if $get.currentFlag == 'true'}}\":\"false\"},{\"{{#else}}\":\"true\"}]}]}]},{\"type\":\"vertical\",\"style\":{\"padding_left\":[{\"{{#if $get.currentFlag == 'true'}}\":\"0\"},{\"{{#else}}\":\"20\"}],\"padding_right\":[{\"{{#if $get.currentFlag == 'true'}}\":\"0\"},{\"{{#else}}\":\"20\"}],\"padding_bottom\":[{\"{{#if $get.currentFlag == 'true'}}\":\"0\"},{\"{{#else}}\":\"20\"}],\"spacing\":\"0\"},\"components\":[{\"type\":\"label\",\"text\":\"{{$get.desc}}\",\"style\":{\"size\":\"18\",\"color\":\"#555555\"},\"visible\":[{\"{{#if $get.currentFlag == 'true'}}\":\"false\"},{\"{{#else}}\":\"true\"}]}]}]},{\"type\":\"vertical\",\"style\":{\"padding_left\":\"20\",\"spacing\":\"0\",\"background\":\"#ffffff\"},\"components\":[{\"type\":\"button\",\"text\":\"Install Now\",\"style\":{\"width\":\"100%\",\"height\":[{\"{{#if $get.currentFlag == 'true'}}\":\"0\"},{\"{{#else}}\":\"50\"}],\"size\":\"18\",\"align\":\"left\",\"color\":\"#4993d1\"},\"visible\":[{\"{{#if $get.currentFlag == 'true'}}\":\"false\"},{\"{{#else}}\":\"true\"}],\"action\":{\"trigger\":\"installApp\"}}]},{\"type\":\"space\",\"style\":{\"height\":[{\"{{#if $get.currentFlag == 'true'}}\":\"20%\"},{\"{{#else}}\":\"0\"}]}},{\"type\":\"vertical\",\"style\":{\"padding\":\"0\",\"spacing\":\"0\",\"align\":\"center\"},\"components\":[{\"type\":\"label\",\"text\":\"{{$env.device.os.name}} {{$env.app.version}}\",\"style\":{\"padding\":\"0\",\"size\":\"20\",\"color\":\"#555555\"},\"visible\":\"{{$get.currentFlag}}\"},{\"type\":\"label\",\"text\":\"Your app is up to date.\",\"style\":{\"padding\":\"0\",\"size\":\"20\",\"color\":\"#555555\"},\"visible\":\"{{$get.currentFlag}}\"}]}]}]}]}}}}}"
    },
    "lastUpdateBy" : "systemadmin"
}
)