123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- function OnInitializeData(reload, preview) {
-
- PUI(()=>{
-
-
-
-
- });
- }
- function OnReady(reload, preview) {
-
- PUI(()=>{
-
-
-
-
- });
- }
- function OnCloseForm() {
- }
- function OnException(err) {
-
- }
- function OnImage(){
- ui.pb_image.content_menu = [{
- name: "card image",
- id: 1
- }, {
- name: "-"
- }, {
- name: "no card image",
- id: 2
- }, {
- name: "-"
- }, {
- name:"same as",
- id: 3
- }];
- }
- function OnChangeCard(){
- switch (ui.pb_card.content_menu) {
- case 1:
- ui.stack_card.index = 0;
- break;
- case 2:
- ui.stack_card.index = 1;
- break;
- case 3:
- ui.stack_card.index = 2;
- break;
- }
- }
- function OnCard(){
- ui.pb_card.content_menu = [{
- name: "card image",
- id: 1
- }, {
- name: "-"
- }, {
- name: "no card image",
- id: 2
- }, {
- name: "-"
- }, {
- name:"same as",
- id: 3
- }];
- }
- function OnFile() {
- ui.pb_type.content_menu = [{
- name: "ALL",
- id: 1
- }, {
- name: "-"
- }, {
- name: "ANISOTROPIC",
- id: 2
- }, {
- name: "-"
- }, {
- name: "FLUID",
- id: 3
- }, {
- name: "-"
- }, {
- name: "GASKET",
- id: 4
- }, {
- name: "-"
- }, {
- name: "HYPERELASTIC",
- id: 5
- }, {
- name: "-"
- }, {
- name: "ISOTROPIC",
- id: 6
- }, {
- name: "-"
- }, {
- name:"ORTHOTROPIC",
- id: 7
- }];
- }
- function OnFileContentMenu() {
-
- switch (ui.pb_type.content_menu) {
- case 1:
- ui.pb_type_name.value = "ALL";
- break;
- case 2:
- ui.pb_type_name.value = "ANISOTROPIC";
- break;
- case 3:
- ui.pb_type_name.value = "FLUID";
- break;
- case 4:
- ui.pb_type_name.value = "GASKET";
- break;
- case 5:
- ui.pb_type_name.value = "HYPERELASTIC";
- break;
- case 6:
- ui.pb_type_name.value = "ISOTROPIC";
- break;
- case 7:
- ui.pb_type_name.value = "ORTHOTROPIC";
- break;
- }
- }
- function OnCreat(){
- unit.form.mainfrm.menu(20);
- }
- function OnChange(idx){
- ui.stack.index = parseInt(idx);
- }
- function OnParentDockerMessage(type, para) {
- }
- function onDragFile(filepath) {
- }
- function PUI(cb) {
- if(pui){cb();}
- }
- function BLOCK_EVENT(cb) {
- ui.block_event = true;
-
- cb();
-
- ui.block_event = false;
- }
- function CW_DeclareVariable(name, setter, getter) {
- if(typeof(__DeclareVariable) === 'function') {
- __DeclareVariable(name, setter, getter);
- }
- }
- function CW_DeclareOuterVariable(name) {
- if(typeof(__DeclareOuterVariable) === 'function') {
- __DeclareOuterVariable(name);
- }
- }
|