CLodopfuncs2.js 100 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492
  1. (function(win) {
  2. var CLODOP = {
  3. strWebPageID: "C21AAAH",
  4. strTaskID: "",
  5. strHostURI: "http://192.168.1.41:8000",
  6. VERSION: "6.5.7.1",
  7. IVERSION: "6571",
  8. CVERSION: "6.5.7.1",
  9. HTTPS_STATUS: 0,
  10. VERSION_EXT: true,
  11. iBaseTask: 0,
  12. timeThreshold: 5,
  13. Priority: 0,
  14. blIslocal: true,
  15. Iframes: [],
  16. ItemDatas: {},
  17. PageData: {},
  18. defStyleJson: {},
  19. PageDataEx: {},
  20. ItemCNameStyles: {},
  21. blWorking: false,
  22. blNormalItemAdded: false,
  23. blTmpSelectedIndex: null,
  24. Caption: null,
  25. Color: null,
  26. CompanyName: null,
  27. strBroadcastMS: null,
  28. Border: null,
  29. Inbrowse: null,
  30. webskt: null,
  31. SocketEnable: false,
  32. SocketOpened: false,
  33. NoClearAfterPrint: false,
  34. On_Return_Remain: false,
  35. On_Broadcast_Remain: false,
  36. On_Return: null,
  37. Result: null,
  38. OBO_Mode: 1,
  39. blOneByone: false,
  40. DelimChar: "\f\f",
  41. Printers: {
  42. "default": "5",
  43. "list": [{
  44. "name": "导出为WPS PDF",
  45. "DriverName": "Kingsoft Virtual Printer Driver",
  46. "PortName": "Kingsoft Virtual Printer Port",
  47. "Orientation": "1",
  48. "PaperSize": "9",
  49. "PaperLength": "2970",
  50. "PaperWidth": "2100",
  51. "Copies": "1",
  52. "DefaultSource": "1",
  53. "PrintQuality": "600",
  54. "Color": "2",
  55. "Duplex": "1",
  56. "FormName": "A4",
  57. "Comment": "",
  58. "DriverVersion": "20481",
  59. "DCOrientation": "90",
  60. "MaxExtentWidth": "65535",
  61. "MaxExtentLength": "65535",
  62. "MinExtentWidth": "10",
  63. "MinExtentlength": "10",
  64. "pagelist": [{
  65. "name": "信纸"
  66. }, {
  67. "name": "小号信纸"
  68. }, {
  69. "name": "Tabloid"
  70. }, {
  71. "name": "Ledger"
  72. }, {
  73. "name": "法律专用纸"
  74. }, {
  75. "name": "Statement"
  76. }, {
  77. "name": "Executive"
  78. }, {
  79. "name": "A3"
  80. }, {
  81. "name": "A4"
  82. }, {
  83. "name": "A4 小号"
  84. }, {
  85. "name": "A5"
  86. }, {
  87. "name": "B4 (JIS)"
  88. }, {
  89. "name": "B5 (JIS)"
  90. }, {
  91. "name": "Folio"
  92. }, {
  93. "name": "Quarto"
  94. }, {
  95. "name": "10x14"
  96. }, {
  97. "name": "11x17"
  98. }, {
  99. "name": "便笺"
  100. }, {
  101. "name": "信封 #9"
  102. }, {
  103. "name": "信封 #10"
  104. }, {
  105. "name": "信封 #11"
  106. }, {
  107. "name": "信封 #12"
  108. }, {
  109. "name": "信封 #14"
  110. }, {
  111. "name": "C size sheet"
  112. }, {
  113. "name": "D size sheet"
  114. }, {
  115. "name": "E size sheet"
  116. }, {
  117. "name": "信封 DL"
  118. }, {
  119. "name": "信封 C5"
  120. }, {
  121. "name": "信封 C3"
  122. }, {
  123. "name": "信封 C4"
  124. }, {
  125. "name": "信封 C6"
  126. }, {
  127. "name": "信封 C65"
  128. }, {
  129. "name": "信封 B4"
  130. }, {
  131. "name": "信封 B5"
  132. }, {
  133. "name": "信封 B6"
  134. }, {
  135. "name": "信封"
  136. }, {
  137. "name": "信封 Monarch"
  138. }, {
  139. "name": "6 3/4 信封"
  140. }, {
  141. "name": "美国标准 Fanfold"
  142. }, {
  143. "name": "德国标准 Fanfold"
  144. }, {
  145. "name": "德国法律专用纸 Fanfold"
  146. }, {
  147. "name": "B4 (ISO)"
  148. }, {
  149. "name": "日式明信片"
  150. }, {
  151. "name": "9x11"
  152. }, {
  153. "name": "10x11"
  154. }, {
  155. "name": "15x11"
  156. }, {
  157. "name": "信封邀请函"
  158. }, {
  159. "name": "特大信纸"
  160. }, {
  161. "name": "特大法律专用纸"
  162. }, {
  163. "name": "Tabloid 特大"
  164. }, {
  165. "name": "A4 特大"
  166. }, {
  167. "name": "信纸横向"
  168. }, {
  169. "name": "A4 横向"
  170. }, {
  171. "name": "特大信纸横向"
  172. }, {
  173. "name": "Super A"
  174. }, {
  175. "name": "Super B"
  176. }, {
  177. "name": "信纸加大"
  178. }, {
  179. "name": "A4 加大"
  180. }, {
  181. "name": "A5 横向"
  182. }, {
  183. "name": "B5 (JIS) 横向"
  184. }, {
  185. "name": "A3 特大"
  186. }, {
  187. "name": "A5 特大"
  188. }, {
  189. "name": "B5 (ISO) 特大"
  190. }, {
  191. "name": "A2"
  192. }, {
  193. "name": "A3 横向"
  194. }, {
  195. "name": "A3 特大横向"
  196. }, {
  197. "name": "日式往返明信片"
  198. }, {
  199. "name": "A6"
  200. }, {
  201. "name": "日式信封 Kaku #2"
  202. }, {
  203. "name": "日式信封 Kaku #3"
  204. }, {
  205. "name": "日式信封 Chou #3"
  206. }, {
  207. "name": "日式信封 Chou #4"
  208. }, {
  209. "name": "信纸旋转"
  210. }, {
  211. "name": "A3 旋转"
  212. }, {
  213. "name": "A4 旋转"
  214. }, {
  215. "name": "A5 旋转"
  216. }, {
  217. "name": "B4 (JIS) 旋转"
  218. }, {
  219. "name": "B5 (JIS) 旋转"
  220. }, {
  221. "name": "日式明信片旋转"
  222. }, {
  223. "name": "双层日式明信片旋转"
  224. }, {
  225. "name": "A6 旋转"
  226. }, {
  227. "name": "日式信封 Kaku #2 旋转"
  228. }, {
  229. "name": "日式信封 Kaku #3 旋转"
  230. }, {
  231. "name": "日式信封 Chou #3 旋转"
  232. }, {
  233. "name": "日式信封 Chou #4 旋转"
  234. }, {
  235. "name": "B6 (JIS)"
  236. }, {
  237. "name": "B6 (JIS) 旋转"
  238. }, {
  239. "name": "12x11"
  240. }, {
  241. "name": "日式信封 You #4"
  242. }, {
  243. "name": "日式信封 You #4 旋转"
  244. }, {
  245. "name": "PRC 16K"
  246. }, {
  247. "name": "PRC 32K"
  248. }, {
  249. "name": "PRC 32K(Big)"
  250. }, {
  251. "name": "PRC 信封 #1"
  252. }, {
  253. "name": "PRC 信封 #2"
  254. }, {
  255. "name": "PRC 信封 #3"
  256. }, {
  257. "name": "PRC 信封 #4"
  258. }, {
  259. "name": "PRC 信封 #5"
  260. }, {
  261. "name": "PRC 信封 #6"
  262. }, {
  263. "name": "PRC 信封 #7"
  264. }, {
  265. "name": "PRC 信封 #8"
  266. }, {
  267. "name": "PRC 信封 #9"
  268. }, {
  269. "name": "PRC 信封 #10"
  270. }, {
  271. "name": "PRC 16K 旋转"
  272. }, {
  273. "name": "PRC 32K 旋转"
  274. }, {
  275. "name": "PRC 32K(大)旋转"
  276. }, {
  277. "name": "PRC 信封 #1 旋转"
  278. }, {
  279. "name": "PRC 信封 #2 旋转"
  280. }, {
  281. "name": "PRC 信封 #3 旋转"
  282. }, {
  283. "name": "PRC 信封 #4 旋转"
  284. }, {
  285. "name": "PRC 信封 #5 旋转"
  286. }, {
  287. "name": "PRC 信封 #6 旋转"
  288. }, {
  289. "name": "PRC 信封 #7 旋转"
  290. }, {
  291. "name": "PRC 信封 #8 旋转"
  292. }, {
  293. "name": "PRC 信封 #9 旋转"
  294. }, {
  295. "name": "PRC 信封 #10 旋转"
  296. }],
  297. "subdevlist": []
  298. }, {
  299. "name": "OneNote (Desktop)",
  300. "DriverName": "Send to Microsoft OneNote 16 Driver",
  301. "PortName": "nul:",
  302. "Orientation": "1",
  303. "PaperSize": "9",
  304. "PaperLength": "2970",
  305. "PaperWidth": "2100",
  306. "Copies": "1",
  307. "DefaultSource": "15",
  308. "PrintQuality": "600",
  309. "Color": "2",
  310. "Duplex": "1",
  311. "FormName": "A4",
  312. "Comment": "",
  313. "DriverVersion": "1539",
  314. "DCOrientation": "270",
  315. "MaxExtentWidth": "2970",
  316. "MaxExtentLength": "4318",
  317. "MinExtentWidth": "984",
  318. "MinExtentlength": "1905",
  319. "pagelist": [{
  320. "name": "信纸"
  321. }, {
  322. "name": "Tabloid"
  323. }, {
  324. "name": "法律专用纸"
  325. }, {
  326. "name": "Executive"
  327. }, {
  328. "name": "A3"
  329. }, {
  330. "name": "A4"
  331. }, {
  332. "name": "B4 (JIS)"
  333. }, {
  334. "name": "B5 (JIS)"
  335. }, {
  336. "name": "信封 #10"
  337. }, {
  338. "name": "信封 Monarch"
  339. }],
  340. "subdevlist": []
  341. }, {
  342. "name": "Microsoft XPS Document Writer",
  343. "DriverName": "Microsoft XPS Document Writer v4",
  344. "PortName": "PORTPROMPT:",
  345. "Orientation": "1",
  346. "PaperSize": "9",
  347. "PaperLength": "2970",
  348. "PaperWidth": "2100",
  349. "Copies": "1",
  350. "DefaultSource": "15",
  351. "PrintQuality": "600",
  352. "Color": "2",
  353. "Duplex": "1",
  354. "FormName": "A4",
  355. "Comment": "",
  356. "DriverVersion": "1539",
  357. "DCOrientation": "270",
  358. "MaxExtentWidth": "8636",
  359. "MaxExtentLength": "11176",
  360. "MinExtentWidth": "900",
  361. "MinExtentlength": "900",
  362. "pagelist": [{
  363. "name": "信纸"
  364. }, {
  365. "name": "小号信纸"
  366. }, {
  367. "name": "Tabloid"
  368. }, {
  369. "name": "Ledger"
  370. }, {
  371. "name": "法律专用纸"
  372. }, {
  373. "name": "Statement"
  374. }, {
  375. "name": "Executive"
  376. }, {
  377. "name": "A3"
  378. }, {
  379. "name": "A4"
  380. }, {
  381. "name": "A4 小号"
  382. }, {
  383. "name": "A5"
  384. }, {
  385. "name": "B4 (JIS)"
  386. }, {
  387. "name": "B5 (JIS)"
  388. }, {
  389. "name": "Folio"
  390. }, {
  391. "name": "Quarto"
  392. }, {
  393. "name": "10x14"
  394. }, {
  395. "name": "11x17"
  396. }, {
  397. "name": "便笺"
  398. }, {
  399. "name": "信封 #9"
  400. }, {
  401. "name": "信封 #10"
  402. }, {
  403. "name": "信封 #11"
  404. }, {
  405. "name": "信封 #12"
  406. }, {
  407. "name": "信封 #14"
  408. }, {
  409. "name": "C size sheet"
  410. }, {
  411. "name": "D size sheet"
  412. }, {
  413. "name": "E size sheet"
  414. }, {
  415. "name": "信封 DL"
  416. }, {
  417. "name": "信封 C5"
  418. }, {
  419. "name": "信封 C3"
  420. }, {
  421. "name": "信封 C4"
  422. }, {
  423. "name": "信封 C6"
  424. }, {
  425. "name": "信封 C65"
  426. }, {
  427. "name": "信封 B4"
  428. }, {
  429. "name": "信封 B5"
  430. }, {
  431. "name": "信封 B6"
  432. }, {
  433. "name": "信封"
  434. }, {
  435. "name": "信封 Monarch"
  436. }, {
  437. "name": "6 3/4 信封"
  438. }, {
  439. "name": "美国标准 Fanfold"
  440. }, {
  441. "name": "德国标准 Fanfold"
  442. }, {
  443. "name": "德国法律专用纸 Fanfold"
  444. }, {
  445. "name": "B4 (ISO)"
  446. }, {
  447. "name": "日式明信片"
  448. }, {
  449. "name": "9x11"
  450. }, {
  451. "name": "10x11"
  452. }, {
  453. "name": "15x11"
  454. }, {
  455. "name": "信封邀请函"
  456. }, {
  457. "name": "特大信纸"
  458. }, {
  459. "name": "特大法律专用纸"
  460. }, {
  461. "name": "A4 特大"
  462. }, {
  463. "name": "信纸横向"
  464. }, {
  465. "name": "A4 横向"
  466. }, {
  467. "name": "特大信纸横向"
  468. }, {
  469. "name": "Super A"
  470. }, {
  471. "name": "Super B"
  472. }, {
  473. "name": "信纸加大"
  474. }, {
  475. "name": "A4 加大"
  476. }, {
  477. "name": "A5 横向"
  478. }, {
  479. "name": "B5 (JIS) 横向"
  480. }, {
  481. "name": "A3 特大"
  482. }, {
  483. "name": "A5 特大"
  484. }, {
  485. "name": "B5 (ISO) 特大"
  486. }, {
  487. "name": "A2"
  488. }, {
  489. "name": "A3 横向"
  490. }, {
  491. "name": "A3 特大横向"
  492. }, {
  493. "name": "日式往返明信片"
  494. }, {
  495. "name": "A6"
  496. }, {
  497. "name": "日式信封 Kaku #2"
  498. }, {
  499. "name": "日式信封 Kaku #3"
  500. }, {
  501. "name": "日式信封 Chou #3"
  502. }, {
  503. "name": "日式信封 Chou #4"
  504. }, {
  505. "name": "信纸旋转"
  506. }, {
  507. "name": "A3 旋转"
  508. }, {
  509. "name": "A4 旋转"
  510. }, {
  511. "name": "A5 旋转"
  512. }, {
  513. "name": "B4 (JIS) 旋转"
  514. }, {
  515. "name": "B5 (JIS) 旋转"
  516. }, {
  517. "name": "日式明信片旋转"
  518. }, {
  519. "name": "双层日式明信片旋转"
  520. }, {
  521. "name": "A6 旋转"
  522. }, {
  523. "name": "日式信封 Kaku #2 旋转"
  524. }, {
  525. "name": "日式信封 Kaku #3 旋转"
  526. }, {
  527. "name": "日式信封 Chou #3 旋转"
  528. }, {
  529. "name": "日式信封 Chou #4 旋转"
  530. }, {
  531. "name": "B6 (JIS)"
  532. }, {
  533. "name": "B6 (JIS) 旋转"
  534. }, {
  535. "name": "12x11"
  536. }, {
  537. "name": "日式信封 You #4"
  538. }, {
  539. "name": "日式信封 You #4 旋转"
  540. }, {
  541. "name": "PRC 信封 #1"
  542. }, {
  543. "name": "PRC 信封 #3"
  544. }, {
  545. "name": "PRC 信封 #4"
  546. }, {
  547. "name": "PRC 信封 #5"
  548. }, {
  549. "name": "PRC 信封 #6"
  550. }, {
  551. "name": "PRC 信封 #7"
  552. }, {
  553. "name": "PRC 信封 #8"
  554. }, {
  555. "name": "PRC 信封 #9"
  556. }, {
  557. "name": "PRC 信封 #10"
  558. }, {
  559. "name": "PRC 信封 #1 旋转"
  560. }, {
  561. "name": "PRC 信封 #3 旋转"
  562. }, {
  563. "name": "PRC 信封 #4 旋转"
  564. }, {
  565. "name": "PRC 信封 #5 旋转"
  566. }, {
  567. "name": "PRC 信封 #6 旋转"
  568. }, {
  569. "name": "PRC 信封 #7 旋转"
  570. }, {
  571. "name": "PRC 信封 #8 旋转"
  572. }, {
  573. "name": "PRC 信封 #9 旋转"
  574. }, {
  575. "name": "用户定义大小"
  576. }],
  577. "subdevlist": []
  578. }, {
  579. "name": "Microsoft Print to PDF",
  580. "DriverName": "Microsoft Print To PDF",
  581. "PortName": "PORTPROMPT:",
  582. "Orientation": "1",
  583. "PaperSize": "9",
  584. "PaperLength": "2970",
  585. "PaperWidth": "2100",
  586. "Copies": "1",
  587. "DefaultSource": "15",
  588. "PrintQuality": "600",
  589. "Color": "2",
  590. "Duplex": "1",
  591. "FormName": "A4",
  592. "Comment": "",
  593. "DriverVersion": "1539",
  594. "DCOrientation": "90",
  595. "MaxExtentWidth": "2970",
  596. "MaxExtentLength": "4318",
  597. "MinExtentWidth": "1397",
  598. "MinExtentlength": "2100",
  599. "pagelist": [{
  600. "name": "信纸"
  601. }, {
  602. "name": "Tabloid"
  603. }, {
  604. "name": "法律专用纸"
  605. }, {
  606. "name": "Statement"
  607. }, {
  608. "name": "Executive"
  609. }, {
  610. "name": "A3"
  611. }, {
  612. "name": "A4"
  613. }, {
  614. "name": "A5"
  615. }, {
  616. "name": "B4 (JIS)"
  617. }, {
  618. "name": "B5 (JIS)"
  619. }],
  620. "subdevlist": []
  621. }, {
  622. "name": "Fax",
  623. "DriverName": "Microsoft Shared Fax Driver",
  624. "PortName": "SHRFAX:",
  625. "Orientation": "1",
  626. "PaperSize": "9",
  627. "PaperLength": "0",
  628. "PaperWidth": "0",
  629. "Copies": "1",
  630. "DefaultSource": "1",
  631. "PrintQuality": "200",
  632. "Color": "1",
  633. "Duplex": "1",
  634. "FormName": "A4",
  635. "Comment": "",
  636. "DriverVersion": "1024",
  637. "DCOrientation": "90",
  638. "MaxExtentWidth": "2160",
  639. "MaxExtentLength": "3556",
  640. "MinExtentWidth": "0",
  641. "MinExtentlength": "0",
  642. "pagelist": [{
  643. "name": "信纸"
  644. }, {
  645. "name": "小号信纸"
  646. }, {
  647. "name": "法律专用纸"
  648. }, {
  649. "name": "Statement"
  650. }, {
  651. "name": "Executive"
  652. }, {
  653. "name": "A4"
  654. }, {
  655. "name": "A4 小号"
  656. }, {
  657. "name": "A5"
  658. }, {
  659. "name": "B5 (JIS)"
  660. }, {
  661. "name": "Folio"
  662. }, {
  663. "name": "Quarto"
  664. }, {
  665. "name": "便笺"
  666. }, {
  667. "name": "信封 #9"
  668. }, {
  669. "name": "信封 #10"
  670. }, {
  671. "name": "信封 #11"
  672. }, {
  673. "name": "信封 #12"
  674. }, {
  675. "name": "信封 #14"
  676. }, {
  677. "name": "信封 DL"
  678. }, {
  679. "name": "信封 C5"
  680. }, {
  681. "name": "信封 C6"
  682. }, {
  683. "name": "信封 C65"
  684. }, {
  685. "name": "信封 B5"
  686. }, {
  687. "name": "信封 B6"
  688. }, {
  689. "name": "信封"
  690. }, {
  691. "name": "信封 Monarch"
  692. }, {
  693. "name": "6 3/4 信封"
  694. }, {
  695. "name": "德国标准 Fanfold"
  696. }, {
  697. "name": "德国法律专用纸 Fanfold"
  698. }, {
  699. "name": "日式明信片"
  700. }, {
  701. "name": "Reserved48"
  702. }, {
  703. "name": "Reserved49"
  704. }, {
  705. "name": "信纸横向"
  706. }, {
  707. "name": "A4 横向"
  708. }, {
  709. "name": "信纸加大"
  710. }, {
  711. "name": "A4 加大"
  712. }, {
  713. "name": "A5 横向"
  714. }, {
  715. "name": "B5 (JIS) 横向"
  716. }, {
  717. "name": "A5 特大"
  718. }, {
  719. "name": "B5 (ISO) 特大"
  720. }, {
  721. "name": "日式往返明信片"
  722. }, {
  723. "name": "A6"
  724. }, {
  725. "name": "日式信封 Kaku #3"
  726. }, {
  727. "name": "日式信封 Chou #3"
  728. }, {
  729. "name": "日式信封 Chou #4"
  730. }, {
  731. "name": "A5 旋转"
  732. }, {
  733. "name": "日式明信片旋转"
  734. }, {
  735. "name": "双层日式明信片旋转"
  736. }, {
  737. "name": "A6 旋转"
  738. }, {
  739. "name": "日式信封 Chou #4 旋转"
  740. }, {
  741. "name": "B6 (JIS)"
  742. }, {
  743. "name": "B6 (JIS) 旋转"
  744. }, {
  745. "name": "日式信封 You #4"
  746. }, {
  747. "name": "PRC 16K"
  748. }, {
  749. "name": "PRC 32K"
  750. }, {
  751. "name": "PRC 32K(Big)"
  752. }, {
  753. "name": "PRC 信封 #1"
  754. }, {
  755. "name": "PRC 信封 #2"
  756. }, {
  757. "name": "PRC 信封 #3"
  758. }, {
  759. "name": "PRC 信封 #4"
  760. }, {
  761. "name": "PRC 信封 #5"
  762. }, {
  763. "name": "PRC 信封 #6"
  764. }, {
  765. "name": "PRC 信封 #7"
  766. }, {
  767. "name": "PRC 信封 #8"
  768. }, {
  769. "name": "PRC 32K 旋转"
  770. }, {
  771. "name": "PRC 32K(大)旋转"
  772. }, {
  773. "name": "PRC 信封 #1 旋转"
  774. }, {
  775. "name": "PRC 信封 #2 旋转"
  776. }, {
  777. "name": "PRC 信封 #3 旋转"
  778. }, {
  779. "name": "PRC 信封 #4 旋转"
  780. }, {
  781. "name": "North America 5x 8"
  782. }, {
  783. "name": "North America 4x 6"
  784. }, {
  785. "name": "North America 5x 7"
  786. }, {
  787. "name": "English Photo L"
  788. }, {
  789. "name": "North America 8x 10"
  790. }],
  791. "subdevlist": []
  792. }, {
  793. "name": "EPSONAB8583 (L4260 Series)",
  794. "DriverName": "Microsoft IPP Class Driver",
  795. "PortName": "WSD-a9d5e3c4-ae3d-4690-b036-906b8b07ec46",
  796. "Orientation": "1",
  797. "PaperSize": "9",
  798. "PaperLength": "2970",
  799. "PaperWidth": "2100",
  800. "Copies": "1",
  801. "DefaultSource": "15",
  802. "PrintQuality": "360",
  803. "Color": "2",
  804. "Duplex": "1",
  805. "FormName": "A4",
  806. "Comment": "",
  807. "DriverVersion": "1539",
  808. "DCOrientation": "90",
  809. "MaxExtentWidth": "2159",
  810. "MaxExtentLength": "3556",
  811. "MinExtentWidth": "889",
  812. "MinExtentlength": "1270",
  813. "pagelist": [{
  814. "name": "信纸"
  815. }, {
  816. "name": "法律专用纸"
  817. }, {
  818. "name": "A4"
  819. }, {
  820. "name": "A5"
  821. }, {
  822. "name": "B5 (JIS)"
  823. }, {
  824. "name": "信封 #10"
  825. }, {
  826. "name": "信封 DL"
  827. }, {
  828. "name": "日式明信片"
  829. }, {
  830. "name": "A6"
  831. }, {
  832. "name": "North America 5x 8"
  833. }, {
  834. "name": "North America 4x 6"
  835. }, {
  836. "name": "North America 5x 7"
  837. }, {
  838. "name": "English Photo L"
  839. }, {
  840. "name": "North America 8x 10"
  841. }],
  842. "subdevlist": []
  843. }, {
  844. "name": "(AO)Client-Bridge Driver",
  845. "DriverName": "",
  846. "PortName": "",
  847. "Orientation": "",
  848. "PaperSize": "",
  849. "PaperLength": "",
  850. "PaperWidth": "",
  851. "Copies": "",
  852. "DefaultSource": "",
  853. "PrintQuality": "",
  854. "Color": "",
  855. "Duplex": "",
  856. "FormName": "",
  857. "Comment": "",
  858. "DriverVersion": "",
  859. "DCOrientation": "",
  860. "MaxExtentWidth": "",
  861. "MaxExtentLength": "",
  862. "MinExtentWidth": "",
  863. "MinExtentlength": "",
  864. "pagelist": [],
  865. "subdevlist": [{
  866. "name": "HEXIN",
  867. "id": "C7253561256",
  868. "ssbprinter": {
  869. "default": "5",
  870. "list": [{
  871. "name": "导出为WPS PDF",
  872. "DriverName": "Kingsoft Virtual Printer Driver",
  873. "PortName": "Kingsoft Virtual Printer Port",
  874. "Orientation": "0",
  875. "PaperSize": "9",
  876. "PaperLength": "2970",
  877. "PaperWidth": "2100",
  878. "Copies": "1",
  879. "DefaultSource": "1",
  880. "PrintQuality": "600",
  881. "Color": "2",
  882. "Duplex": "1",
  883. "FormName": "A4",
  884. "Comment": "",
  885. "DriverVersion": "20481",
  886. "DCOrientation": "90",
  887. "MaxExtentWidth": "65535",
  888. "MaxExtentLength": "65535",
  889. "MinExtentWidth": "10",
  890. "MinExtentlength": "10",
  891. "pagelist": [{
  892. "name": "信纸"
  893. }, {
  894. "name": "小号信纸"
  895. }, {
  896. "name": "Tabloid"
  897. }, {
  898. "name": "Ledger"
  899. }, {
  900. "name": "法律专用纸"
  901. }, {
  902. "name": "Statement"
  903. }, {
  904. "name": "Executive"
  905. }, {
  906. "name": "A3"
  907. }, {
  908. "name": "A4"
  909. }, {
  910. "name": "A4 小号"
  911. }, {
  912. "name": "A5"
  913. }, {
  914. "name": "B4 (JIS)"
  915. }, {
  916. "name": "B5 (JIS)"
  917. }, {
  918. "name": "Folio"
  919. }, {
  920. "name": "Quarto"
  921. }, {
  922. "name": "10x14"
  923. }, {
  924. "name": "11x17"
  925. }, {
  926. "name": "便笺"
  927. }, {
  928. "name": "信封 #9"
  929. }, {
  930. "name": "信封 #10"
  931. }, {
  932. "name": "信封 #11"
  933. }, {
  934. "name": "信封 #12"
  935. }, {
  936. "name": "信封 #14"
  937. }, {
  938. "name": "C size sheet"
  939. }, {
  940. "name": "D size sheet"
  941. }, {
  942. "name": "E size sheet"
  943. }, {
  944. "name": "信封 DL"
  945. }, {
  946. "name": "信封 C5"
  947. }, {
  948. "name": "信封 C3"
  949. }, {
  950. "name": "信封 C4"
  951. }, {
  952. "name": "信封 C6"
  953. }, {
  954. "name": "信封 C65"
  955. }, {
  956. "name": "信封 B4"
  957. }, {
  958. "name": "信封 B5"
  959. }, {
  960. "name": "信封 B6"
  961. }, {
  962. "name": "信封"
  963. }, {
  964. "name": "信封 Monarch"
  965. }, {
  966. "name": "6 3/4 信封"
  967. }, {
  968. "name": "美国标准 Fanfold"
  969. }, {
  970. "name": "德国标准 Fanfold"
  971. }, {
  972. "name": "德国法律专用纸 Fanfold"
  973. }, {
  974. "name": "B4 (ISO)"
  975. }, {
  976. "name": "日式明信片"
  977. }, {
  978. "name": "9x11"
  979. }, {
  980. "name": "10x11"
  981. }, {
  982. "name": "15x11"
  983. }, {
  984. "name": "信封邀请函"
  985. }, {
  986. "name": "特大信纸"
  987. }, {
  988. "name": "特大法律专用纸"
  989. }, {
  990. "name": "Tabloid 特大"
  991. }, {
  992. "name": "A4 特大"
  993. }, {
  994. "name": "信纸横向"
  995. }, {
  996. "name": "A4 横向"
  997. }, {
  998. "name": "特大信纸横向"
  999. }, {
  1000. "name": "Super A"
  1001. }, {
  1002. "name": "Super B"
  1003. }, {
  1004. "name": "信纸加大"
  1005. }, {
  1006. "name": "A4 加大"
  1007. }, {
  1008. "name": "A5 横向"
  1009. }, {
  1010. "name": "B5 (JIS) 横向"
  1011. }, {
  1012. "name": "A3 特大"
  1013. }, {
  1014. "name": "A5 特大"
  1015. }, {
  1016. "name": "B5 (ISO) 特大"
  1017. }, {
  1018. "name": "A2"
  1019. }, {
  1020. "name": "A3 横向"
  1021. }, {
  1022. "name": "A3 特大横向"
  1023. }, {
  1024. "name": "日式往返明信片"
  1025. }, {
  1026. "name": "A6"
  1027. }, {
  1028. "name": "日式信封 Kaku #2"
  1029. }, {
  1030. "name": "日式信封 Kaku #3"
  1031. }, {
  1032. "name": "日式信封 Chou #3"
  1033. }, {
  1034. "name": "日式信封 Chou #4"
  1035. }, {
  1036. "name": "信纸旋转"
  1037. }, {
  1038. "name": "A3 旋转"
  1039. }, {
  1040. "name": "A4 旋转"
  1041. }, {
  1042. "name": "A5 旋转"
  1043. }, {
  1044. "name": "B4 (JIS) 旋转"
  1045. }, {
  1046. "name": "B5 (JIS) 旋转"
  1047. }, {
  1048. "name": "日式明信片旋转"
  1049. }, {
  1050. "name": "双层日式明信片旋转"
  1051. }, {
  1052. "name": "A6 旋转"
  1053. }, {
  1054. "name": "日式信封 Kaku #2 旋转"
  1055. }, {
  1056. "name": "日式信封 Kaku #3 旋转"
  1057. }, {
  1058. "name": "日式信封 Chou #3 旋转"
  1059. }, {
  1060. "name": "日式信封 Chou #4 旋转"
  1061. }, {
  1062. "name": "B6 (JIS)"
  1063. }, {
  1064. "name": "B6 (JIS) 旋转"
  1065. }, {
  1066. "name": "12x11"
  1067. }, {
  1068. "name": "日式信封 You #4"
  1069. }, {
  1070. "name": "日式信封 You #4 旋转"
  1071. }, {
  1072. "name": "PRC 16K"
  1073. }, {
  1074. "name": "PRC 32K"
  1075. }, {
  1076. "name": "PRC 32K(Big)"
  1077. }, {
  1078. "name": "PRC 信封 #1"
  1079. }, {
  1080. "name": "PRC 信封 #2"
  1081. }, {
  1082. "name": "PRC 信封 #3"
  1083. }, {
  1084. "name": "PRC 信封 #4"
  1085. }, {
  1086. "name": "PRC 信封 #5"
  1087. }, {
  1088. "name": "PRC 信封 #6"
  1089. }, {
  1090. "name": "PRC 信封 #7"
  1091. }, {
  1092. "name": "PRC 信封 #8"
  1093. }, {
  1094. "name": "PRC 信封 #9"
  1095. }, {
  1096. "name": "PRC 信封 #10"
  1097. }, {
  1098. "name": "PRC 16K 旋转"
  1099. }, {
  1100. "name": "PRC 32K 旋转"
  1101. }, {
  1102. "name": "PRC 32K(大)旋转"
  1103. }, {
  1104. "name": "PRC 信封 #1 旋转"
  1105. }, {
  1106. "name": "PRC 信封 #2 旋转"
  1107. }, {
  1108. "name": "PRC 信封 #3 旋转"
  1109. }, {
  1110. "name": "PRC 信封 #4 旋转"
  1111. }, {
  1112. "name": "PRC 信封 #5 旋转"
  1113. }, {
  1114. "name": "PRC 信封 #6 旋转"
  1115. }, {
  1116. "name": "PRC 信封 #7 旋转"
  1117. }, {
  1118. "name": "PRC 信封 #8 旋转"
  1119. }, {
  1120. "name": "PRC 信封 #9 旋转"
  1121. }, {
  1122. "name": "PRC 信封 #10 旋转"
  1123. }]
  1124. }, {
  1125. "name": "OneNote (Desktop)",
  1126. "DriverName": "Send to Microsoft OneNote 16 Driver",
  1127. "PortName": "nul:",
  1128. "Orientation": "0",
  1129. "PaperSize": "9",
  1130. "PaperLength": "2970",
  1131. "PaperWidth": "2100",
  1132. "Copies": "1",
  1133. "DefaultSource": "15",
  1134. "PrintQuality": "600",
  1135. "Color": "2",
  1136. "Duplex": "1",
  1137. "FormName": "A4",
  1138. "Comment": "",
  1139. "DriverVersion": "1539",
  1140. "DCOrientation": "270",
  1141. "MaxExtentWidth": "2970",
  1142. "MaxExtentLength": "4318",
  1143. "MinExtentWidth": "984",
  1144. "MinExtentlength": "1905",
  1145. "pagelist": [{
  1146. "name": "信纸"
  1147. }, {
  1148. "name": "Tabloid"
  1149. }, {
  1150. "name": "法律专用纸"
  1151. }, {
  1152. "name": "Executive"
  1153. }, {
  1154. "name": "A3"
  1155. }, {
  1156. "name": "A4"
  1157. }, {
  1158. "name": "B4 (JIS)"
  1159. }, {
  1160. "name": "B5 (JIS)"
  1161. }, {
  1162. "name": "信封 #10"
  1163. }, {
  1164. "name": "信封 Monarch"
  1165. }]
  1166. }, {
  1167. "name": "Microsoft XPS Document Writer",
  1168. "DriverName": "Microsoft XPS Document Writer v4",
  1169. "PortName": "PORTPROMPT:",
  1170. "Orientation": "0",
  1171. "PaperSize": "9",
  1172. "PaperLength": "2970",
  1173. "PaperWidth": "2100",
  1174. "Copies": "1",
  1175. "DefaultSource": "15",
  1176. "PrintQuality": "600",
  1177. "Color": "2",
  1178. "Duplex": "1",
  1179. "FormName": "A4",
  1180. "Comment": "",
  1181. "DriverVersion": "1539",
  1182. "DCOrientation": "270",
  1183. "MaxExtentWidth": "8636",
  1184. "MaxExtentLength": "11176",
  1185. "MinExtentWidth": "900",
  1186. "MinExtentlength": "900",
  1187. "pagelist": [{
  1188. "name": "信纸"
  1189. }, {
  1190. "name": "小号信纸"
  1191. }, {
  1192. "name": "Tabloid"
  1193. }, {
  1194. "name": "Ledger"
  1195. }, {
  1196. "name": "法律专用纸"
  1197. }, {
  1198. "name": "Statement"
  1199. }, {
  1200. "name": "Executive"
  1201. }, {
  1202. "name": "A3"
  1203. }, {
  1204. "name": "A4"
  1205. }, {
  1206. "name": "A4 小号"
  1207. }, {
  1208. "name": "A5"
  1209. }, {
  1210. "name": "B4 (JIS)"
  1211. }, {
  1212. "name": "B5 (JIS)"
  1213. }, {
  1214. "name": "Folio"
  1215. }, {
  1216. "name": "Quarto"
  1217. }, {
  1218. "name": "10x14"
  1219. }, {
  1220. "name": "11x17"
  1221. }, {
  1222. "name": "便笺"
  1223. }, {
  1224. "name": "信封 #9"
  1225. }, {
  1226. "name": "信封 #10"
  1227. }, {
  1228. "name": "信封 #11"
  1229. }, {
  1230. "name": "信封 #12"
  1231. }, {
  1232. "name": "信封 #14"
  1233. }, {
  1234. "name": "C size sheet"
  1235. }, {
  1236. "name": "D size sheet"
  1237. }, {
  1238. "name": "E size sheet"
  1239. }, {
  1240. "name": "信封 DL"
  1241. }, {
  1242. "name": "信封 C5"
  1243. }, {
  1244. "name": "信封 C3"
  1245. }, {
  1246. "name": "信封 C4"
  1247. }, {
  1248. "name": "信封 C6"
  1249. }, {
  1250. "name": "信封 C65"
  1251. }, {
  1252. "name": "信封 B4"
  1253. }, {
  1254. "name": "信封 B5"
  1255. }, {
  1256. "name": "信封 B6"
  1257. }, {
  1258. "name": "信封"
  1259. }, {
  1260. "name": "信封 Monarch"
  1261. }, {
  1262. "name": "6 3/4 信封"
  1263. }, {
  1264. "name": "美国标准 Fanfold"
  1265. }, {
  1266. "name": "德国标准 Fanfold"
  1267. }, {
  1268. "name": "德国法律专用纸 Fanfold"
  1269. }, {
  1270. "name": "B4 (ISO)"
  1271. }, {
  1272. "name": "日式明信片"
  1273. }, {
  1274. "name": "9x11"
  1275. }, {
  1276. "name": "10x11"
  1277. }, {
  1278. "name": "15x11"
  1279. }, {
  1280. "name": "信封邀请函"
  1281. }, {
  1282. "name": "特大信纸"
  1283. }, {
  1284. "name": "特大法律专用纸"
  1285. }, {
  1286. "name": "A4 特大"
  1287. }, {
  1288. "name": "信纸横向"
  1289. }, {
  1290. "name": "A4 横向"
  1291. }, {
  1292. "name": "特大信纸横向"
  1293. }, {
  1294. "name": "Super A"
  1295. }, {
  1296. "name": "Super B"
  1297. }, {
  1298. "name": "信纸加大"
  1299. }, {
  1300. "name": "A4 加大"
  1301. }, {
  1302. "name": "A5 横向"
  1303. }, {
  1304. "name": "B5 (JIS) 横向"
  1305. }, {
  1306. "name": "A3 特大"
  1307. }, {
  1308. "name": "A5 特大"
  1309. }, {
  1310. "name": "B5 (ISO) 特大"
  1311. }, {
  1312. "name": "A2"
  1313. }, {
  1314. "name": "A3 横向"
  1315. }, {
  1316. "name": "A3 特大横向"
  1317. }, {
  1318. "name": "日式往返明信片"
  1319. }, {
  1320. "name": "A6"
  1321. }, {
  1322. "name": "日式信封 Kaku #2"
  1323. }, {
  1324. "name": "日式信封 Kaku #3"
  1325. }, {
  1326. "name": "日式信封 Chou #3"
  1327. }, {
  1328. "name": "日式信封 Chou #4"
  1329. }, {
  1330. "name": "信纸旋转"
  1331. }, {
  1332. "name": "A3 旋转"
  1333. }, {
  1334. "name": "A4 旋转"
  1335. }, {
  1336. "name": "A5 旋转"
  1337. }, {
  1338. "name": "B4 (JIS) 旋转"
  1339. }, {
  1340. "name": "B5 (JIS) 旋转"
  1341. }, {
  1342. "name": "日式明信片旋转"
  1343. }, {
  1344. "name": "双层日式明信片旋转"
  1345. }, {
  1346. "name": "A6 旋转"
  1347. }, {
  1348. "name": "日式信封 Kaku #2 旋转"
  1349. }, {
  1350. "name": "日式信封 Kaku #3 旋转"
  1351. }, {
  1352. "name": "日式信封 Chou #3 旋转"
  1353. }, {
  1354. "name": "日式信封 Chou #4 旋转"
  1355. }, {
  1356. "name": "B6 (JIS)"
  1357. }, {
  1358. "name": "B6 (JIS) 旋转"
  1359. }, {
  1360. "name": "12x11"
  1361. }, {
  1362. "name": "日式信封 You #4"
  1363. }, {
  1364. "name": "日式信封 You #4 旋转"
  1365. }, {
  1366. "name": "PRC 信封 #1"
  1367. }, {
  1368. "name": "PRC 信封 #3"
  1369. }, {
  1370. "name": "PRC 信封 #4"
  1371. }, {
  1372. "name": "PRC 信封 #5"
  1373. }, {
  1374. "name": "PRC 信封 #6"
  1375. }, {
  1376. "name": "PRC 信封 #7"
  1377. }, {
  1378. "name": "PRC 信封 #8"
  1379. }, {
  1380. "name": "PRC 信封 #9"
  1381. }, {
  1382. "name": "PRC 信封 #10"
  1383. }, {
  1384. "name": "PRC 信封 #1 旋转"
  1385. }, {
  1386. "name": "PRC 信封 #3 旋转"
  1387. }, {
  1388. "name": "PRC 信封 #4 旋转"
  1389. }, {
  1390. "name": "PRC 信封 #5 旋转"
  1391. }, {
  1392. "name": "PRC 信封 #6 旋转"
  1393. }, {
  1394. "name": "PRC 信封 #7 旋转"
  1395. }, {
  1396. "name": "PRC 信封 #8 旋转"
  1397. }, {
  1398. "name": "PRC 信封 #9 旋转"
  1399. }, {
  1400. "name": "用户定义大小"
  1401. }]
  1402. }, {
  1403. "name": "Microsoft Print to PDF",
  1404. "DriverName": "Microsoft Print To PDF",
  1405. "PortName": "PORTPROMPT:",
  1406. "Orientation": "0",
  1407. "PaperSize": "9",
  1408. "PaperLength": "2970",
  1409. "PaperWidth": "2100",
  1410. "Copies": "1",
  1411. "DefaultSource": "15",
  1412. "PrintQuality": "600",
  1413. "Color": "2",
  1414. "Duplex": "1",
  1415. "FormName": "A4",
  1416. "Comment": "",
  1417. "DriverVersion": "1539",
  1418. "DCOrientation": "90",
  1419. "MaxExtentWidth": "2970",
  1420. "MaxExtentLength": "4318",
  1421. "MinExtentWidth": "1397",
  1422. "MinExtentlength": "2100",
  1423. "pagelist": [{
  1424. "name": "信纸"
  1425. }, {
  1426. "name": "Tabloid"
  1427. }, {
  1428. "name": "法律专用纸"
  1429. }, {
  1430. "name": "Statement"
  1431. }, {
  1432. "name": "Executive"
  1433. }, {
  1434. "name": "A3"
  1435. }, {
  1436. "name": "A4"
  1437. }, {
  1438. "name": "A5"
  1439. }, {
  1440. "name": "B4 (JIS)"
  1441. }, {
  1442. "name": "B5 (JIS)"
  1443. }]
  1444. }, {
  1445. "name": "Fax",
  1446. "DriverName": "Microsoft Shared Fax Driver",
  1447. "PortName": "SHRFAX:",
  1448. "Orientation": "0",
  1449. "PaperSize": "9",
  1450. "PaperLength": "2970",
  1451. "PaperWidth": "2100",
  1452. "Copies": "1",
  1453. "DefaultSource": "1",
  1454. "PrintQuality": "200",
  1455. "Color": "1",
  1456. "Duplex": "1",
  1457. "FormName": "A4",
  1458. "Comment": "",
  1459. "DriverVersion": "1024",
  1460. "DCOrientation": "90",
  1461. "MaxExtentWidth": "2160",
  1462. "MaxExtentLength": "3556",
  1463. "MinExtentWidth": "0",
  1464. "MinExtentlength": "0",
  1465. "pagelist": [{
  1466. "name": "信纸"
  1467. }, {
  1468. "name": "小号信纸"
  1469. }, {
  1470. "name": "法律专用纸"
  1471. }, {
  1472. "name": "Statement"
  1473. }, {
  1474. "name": "Executive"
  1475. }, {
  1476. "name": "A4"
  1477. }, {
  1478. "name": "A4 小号"
  1479. }, {
  1480. "name": "A5"
  1481. }, {
  1482. "name": "B5 (JIS)"
  1483. }, {
  1484. "name": "Folio"
  1485. }, {
  1486. "name": "Quarto"
  1487. }, {
  1488. "name": "便笺"
  1489. }, {
  1490. "name": "信封 #9"
  1491. }, {
  1492. "name": "信封 #10"
  1493. }, {
  1494. "name": "信封 #11"
  1495. }, {
  1496. "name": "信封 #12"
  1497. }, {
  1498. "name": "信封 #14"
  1499. }, {
  1500. "name": "信封 DL"
  1501. }, {
  1502. "name": "信封 C5"
  1503. }, {
  1504. "name": "信封 C6"
  1505. }, {
  1506. "name": "信封 C65"
  1507. }, {
  1508. "name": "信封 B5"
  1509. }, {
  1510. "name": "信封 B6"
  1511. }, {
  1512. "name": "信封"
  1513. }, {
  1514. "name": "信封 Monarch"
  1515. }, {
  1516. "name": "6 3/4 信封"
  1517. }, {
  1518. "name": "德国标准 Fanfold"
  1519. }, {
  1520. "name": "德国法律专用纸 Fanfold"
  1521. }, {
  1522. "name": "日式明信片"
  1523. }, {
  1524. "name": "Reserved48"
  1525. }, {
  1526. "name": "Reserved49"
  1527. }, {
  1528. "name": "信纸横向"
  1529. }, {
  1530. "name": "A4 横向"
  1531. }, {
  1532. "name": "信纸加大"
  1533. }, {
  1534. "name": "A4 加大"
  1535. }, {
  1536. "name": "A5 横向"
  1537. }, {
  1538. "name": "B5 (JIS) 横向"
  1539. }, {
  1540. "name": "A5 特大"
  1541. }, {
  1542. "name": "B5 (ISO) 特大"
  1543. }, {
  1544. "name": "日式往返明信片"
  1545. }, {
  1546. "name": "A6"
  1547. }, {
  1548. "name": "日式信封 Kaku #3"
  1549. }, {
  1550. "name": "日式信封 Chou #3"
  1551. }, {
  1552. "name": "日式信封 Chou #4"
  1553. }, {
  1554. "name": "A5 旋转"
  1555. }, {
  1556. "name": "日式明信片旋转"
  1557. }, {
  1558. "name": "双层日式明信片旋转"
  1559. }, {
  1560. "name": "A6 旋转"
  1561. }, {
  1562. "name": "日式信封 Chou #4 旋转"
  1563. }, {
  1564. "name": "B6 (JIS)"
  1565. }, {
  1566. "name": "B6 (JIS) 旋转"
  1567. }, {
  1568. "name": "日式信封 You #4"
  1569. }, {
  1570. "name": "PRC 16K"
  1571. }, {
  1572. "name": "PRC 32K"
  1573. }, {
  1574. "name": "PRC 32K(Big)"
  1575. }, {
  1576. "name": "PRC 信封 #1"
  1577. }, {
  1578. "name": "PRC 信封 #2"
  1579. }, {
  1580. "name": "PRC 信封 #3"
  1581. }, {
  1582. "name": "PRC 信封 #4"
  1583. }, {
  1584. "name": "PRC 信封 #5"
  1585. }, {
  1586. "name": "PRC 信封 #6"
  1587. }, {
  1588. "name": "PRC 信封 #7"
  1589. }, {
  1590. "name": "PRC 信封 #8"
  1591. }, {
  1592. "name": "PRC 32K 旋转"
  1593. }, {
  1594. "name": "PRC 32K(大)旋转"
  1595. }, {
  1596. "name": "PRC 信封 #1 旋转"
  1597. }, {
  1598. "name": "PRC 信封 #2 旋转"
  1599. }, {
  1600. "name": "PRC 信封 #3 旋转"
  1601. }, {
  1602. "name": "PRC 信封 #4 旋转"
  1603. }, {
  1604. "name": "North America 5x 8"
  1605. }, {
  1606. "name": "North America 4x 6"
  1607. }, {
  1608. "name": "North America 5x 7"
  1609. }, {
  1610. "name": "English Photo L"
  1611. }, {
  1612. "name": "North America 8x 10"
  1613. }]
  1614. }, {
  1615. "name": "EPSONAB8583 (L4260 Series)",
  1616. "DriverName": "Microsoft IPP Class Driver",
  1617. "PortName": "WSD-a9d5e3c4-ae3d-4690-b036-906b8b07ec46",
  1618. "Orientation": "0",
  1619. "PaperSize": "9",
  1620. "PaperLength": "2970",
  1621. "PaperWidth": "2100",
  1622. "Copies": "1",
  1623. "DefaultSource": "15",
  1624. "PrintQuality": "360",
  1625. "Color": "2",
  1626. "Duplex": "1",
  1627. "FormName": "A4",
  1628. "Comment": "",
  1629. "DriverVersion": "1539",
  1630. "DCOrientation": "90",
  1631. "MaxExtentWidth": "2159",
  1632. "MaxExtentLength": "3556",
  1633. "MinExtentWidth": "889",
  1634. "MinExtentlength": "1270",
  1635. "pagelist": [{
  1636. "name": "信纸"
  1637. }, {
  1638. "name": "法律专用纸"
  1639. }, {
  1640. "name": "A4"
  1641. }, {
  1642. "name": "A5"
  1643. }, {
  1644. "name": "B5 (JIS)"
  1645. }, {
  1646. "name": "信封 #10"
  1647. }, {
  1648. "name": "信封 DL"
  1649. }, {
  1650. "name": "日式明信片"
  1651. }, {
  1652. "name": "A6"
  1653. }, {
  1654. "name": "North America 5x 8"
  1655. }, {
  1656. "name": "North America 4x 6"
  1657. }, {
  1658. "name": "North America 5x 7"
  1659. }, {
  1660. "name": "English Photo L"
  1661. }, {
  1662. "name": "North America 8x 10"
  1663. }]
  1664. }]
  1665. }
  1666. }]
  1667. }]
  1668. },
  1669. altMessageWebSocketInvalid: "WebSocket没准备好,请稍后重试!",
  1670. altMessageNoReadWriteFile: "不能远程读写文件!",
  1671. altMessageNoReadFile: "不能远程读文件!",
  1672. altMessageNoWriteFile: "不能远程写文件!",
  1673. altMessageNoPrintDesign: "不能远程打印设计!",
  1674. altMessageNoPrintSetup: "不能远程打印维护!",
  1675. altMessageSomeWindowExist: "有窗口已打开,先关闭它(持续如此时请刷新页面)!",
  1676. altMessageBusy: "上一个请求正忙,请稍后再试!",
  1677. Browser: (function() {
  1678. var ua = navigator.userAgent;
  1679. var isOpera = Object.prototype.toString.call(window.opera) == "[object Opera]";
  1680. return {
  1681. IE: !!window.attachEvent && !isOpera,
  1682. Opera: isOpera,
  1683. WebKit: ua.indexOf("AppleWebKit/") > -1,
  1684. Gecko: ua.indexOf("Gecko") > -1 && ua.indexOf("KHTML") === -1,
  1685. MobileSafari: /Apple.*Mobile/.test(ua)
  1686. }
  1687. })(),
  1688. GetTaskID: function() {
  1689. if (!this.strTaskID || this.strTaskID == "") {
  1690. var dt = new Date();
  1691. this.iBaseTask++;
  1692. this.strTaskID = "" + dt.getHours() + dt.getMinutes() + dt.getSeconds() + "_" + this
  1693. .iBaseTask;
  1694. }
  1695. return this.strWebPageID + this.strTaskID;
  1696. },
  1697. DoInit: function() {
  1698. this.strTaskID = "";
  1699. if (this.NoClearAfterPrint) return;
  1700. this.ItemDatas = {
  1701. "count": 0
  1702. };
  1703. this.PageData = {};
  1704. this.ItemCNameStyles = {};
  1705. this.defStyleJson = {
  1706. "beginpage": 0,
  1707. "beginpagea": 0
  1708. };
  1709. this.blNormalItemAdded = false;
  1710. },
  1711. OpenWebSocket: function() {
  1712. if (!window.WebSocket && !window.MozWebSocket) {
  1713. if (window.On_CLodop_Opened) {
  1714. if (CLODOP.Priority == window.CLODOP_OK_Priority) setTimeout(
  1715. "window.On_CLodop_Opened(CLODOP)", 1);
  1716. }
  1717. return;
  1718. }
  1719. this.SocketEnable = true;
  1720. try {
  1721. if (!this.webskt || this.webskt.readyState == 3) {
  1722. if (!window.WebSocket && window.MozWebSocket) window.WebSocket = window.MozWebSocket;
  1723. this.webskt = new WebSocket('ws://192.168.1.41:8000/c_webskt/');
  1724. this.webskt.onopen = function(e) {
  1725. CLODOP.SocketOpened = true;
  1726. if (window.On_CLodop_Opened) {
  1727. if (CLODOP.Priority == window.CLODOP_OK_Priority) setTimeout(
  1728. "window.On_CLodop_Opened(CLODOP)", 1);
  1729. }
  1730. };
  1731. this.webskt.onmessage = function(e) {
  1732. CLODOP.blOneByone = false;
  1733. var strResult = e.data;
  1734. CLODOP.Result = strResult;
  1735. try {
  1736. var strFTaskID = null;
  1737. var iPos = strResult.indexOf("=");
  1738. if (iPos >= 0 && iPos < 30) {
  1739. strFTaskID = strResult.slice(0, iPos);
  1740. strResult = strResult.slice(iPos + 1);
  1741. }
  1742. if (strFTaskID.indexOf("ErrorMS") > -1) {
  1743. alert(strResult);
  1744. return;
  1745. }
  1746. if (strFTaskID.indexOf("BroadcastMS") > -1) {
  1747. CLODOP.strBroadcastMS = strResult;
  1748. if (CLODOP.On_Broadcast) {
  1749. var selfFunc = CLODOP.On_Broadcast;
  1750. CLODOP.On_Broadcast(strResult);
  1751. if (!CLODOP.On_Broadcast_Remain && selfFunc === CLODOP.On_Broadcast)
  1752. CLODOP.On_Broadcast = null;
  1753. }
  1754. return;
  1755. }
  1756. if (CLODOP.On_Return) {
  1757. var selfFunc = CLODOP.On_Return;
  1758. if ((strResult.toLowerCase() == "true") || (strResult.toLowerCase() ==
  1759. "false"))
  1760. CLODOP.On_Return(strFTaskID, strResult.toLowerCase() == "true");
  1761. else
  1762. CLODOP.On_Return(strFTaskID, strResult);
  1763. if (!CLODOP.On_Return_Remain && selfFunc === CLODOP.On_Return) CLODOP
  1764. .On_Return =
  1765. null;
  1766. }
  1767. } catch (err) {};
  1768. };
  1769. this.webskt.onclose = function(e) {
  1770. if (!CLODOP.SocketOpened) {
  1771. CLODOP.SocketEnable = false;
  1772. return;
  1773. }
  1774. setTimeout("CLODOP.OpenWebSocket()", 2000);
  1775. };
  1776. this.webskt.onerror = function(e) {};
  1777. }
  1778. } catch (err) {
  1779. this.webskt = null;
  1780. if (err.message.indexOf("SecurityError") > -1)
  1781. this.SocketEnable = false;
  1782. else
  1783. setTimeout("CLODOP.OpenWebSocket()", 2000);
  1784. }
  1785. },
  1786. wsSend: function(strData, blReTry) {
  1787. if (!this.SocketEnable) return;
  1788. if (this.webskt && this.webskt.readyState == 1) {
  1789. this.Result = null;
  1790. this.webskt.send(strData);
  1791. return true;
  1792. } else {
  1793. if (!blReTry)
  1794. setTimeout(function() {
  1795. CLODOP.wsSend(strData, true);
  1796. }, 600);
  1797. else {
  1798. alert(this.altMessageWebSocketInvalid);
  1799. this.OpenWebSocket();
  1800. }
  1801. }
  1802. },
  1803. FORMAT: function(oType, oValue) {
  1804. if (this.blWorking) {
  1805. alert(this.altMessageBusy);
  1806. return null;
  1807. }
  1808. var tResult = null;
  1809. if (oType !== undefined && oValue !== undefined) {
  1810. if (oType.replace(/^\s+|\s+$/g, "").toLowerCase().indexOf("time:") == 0) {
  1811. oType = oType.replace(/^\s+|\s+$/g, "").slice(5);
  1812. if (oValue.toLowerCase().indexOf("now") > -1) oValue = (new Date()).toString();
  1813. if (oValue.toLowerCase().indexOf("date") > -1) oValue = (new Date()).toString();
  1814. if (oValue.toLowerCase().indexOf("time") > -1) oValue = (new Date()).toString();
  1815. var TypeYMD = "ymd";
  1816. if (oValue.toLowerCase().indexOf("ymd") > -1) {
  1817. TypeYMD = "ymd";
  1818. oValue = oValue.slice(3);
  1819. }
  1820. if (oValue.toLowerCase().indexOf("dmy") > -1) {
  1821. TypeYMD = "dmy";
  1822. oValue = oValue.slice(3);
  1823. }
  1824. if (oValue.toLowerCase().indexOf("mdy") > -1) {
  1825. TypeYMD = "mdy";
  1826. oValue = oValue.slice(3);
  1827. }
  1828. oValue = oValue.replace(/ [^ ]*\+[^ ]* /g, " ");
  1829. oValue = oValue.replace(/\(.*\)/g, " ");
  1830. oValue = oValue.replace(/星期日|星期一|星期二|星期三|星期四|星期五|星期六/g, " ");
  1831. oValue = oValue.replace(/[A-Za-z]+day|Mon|Tue|Wed|Thu|Fri|Sat|Sun/g, " ");
  1832. var aMonth = 0;
  1833. var exp = new RegExp("Oct[A-Za-z]*|十月|10月", "i");
  1834. if (oValue.match(exp) !== null) {
  1835. aMonth = 10;
  1836. oValue = oValue.replace(exp, "");
  1837. }
  1838. exp = new RegExp("Nov[A-Za-z]*|十一月|11月", "i");
  1839. if (oValue.match(exp) !== null) {
  1840. aMonth = 11;
  1841. oValue = oValue.replace(exp, "");
  1842. }
  1843. exp = new RegExp("Dec[A-Za-z]*|十二月|12月", "i");
  1844. if (oValue.match(exp) !== null) {
  1845. aMonth = 12;
  1846. oValue = oValue.replace(exp, "");
  1847. }
  1848. exp = new RegExp("Jan[A-Za-z]*|一月|01月|1月", "i");
  1849. if (oValue.match(exp) !== null) {
  1850. aMonth = 1;
  1851. oValue = oValue.replace(exp, "");
  1852. }
  1853. exp = new RegExp("Feb[A-Za-z]*|二月|02月|2月", "i");
  1854. if (oValue.match(exp) !== null) {
  1855. aMonth = 2;
  1856. oValue = oValue.replace(exp, "");
  1857. }
  1858. exp = new RegExp("Mar[A-Za-z]*|三月|03月|3月", "i");
  1859. if (oValue.match(exp) !== null) {
  1860. aMonth = 3;
  1861. oValue = oValue.replace(exp, "");
  1862. }
  1863. exp = new RegExp("Apr[A-Za-z]*|四月|04月|4月", "i");
  1864. if (oValue.match(exp) !== null) {
  1865. aMonth = 4;
  1866. oValue = oValue.replace(exp, "");
  1867. }
  1868. exp = new RegExp("May[A-Za-z]*|五月|05月|5月", "i");
  1869. if (oValue.match(exp) !== null) {
  1870. aMonth = 5;
  1871. oValue = oValue.replace(exp, "");
  1872. }
  1873. exp = new RegExp("Jun[A-Za-z]*|六月|06月|6月", "i");
  1874. if (oValue.match(exp) !== null) {
  1875. aMonth = 6;
  1876. oValue = oValue.replace(exp, "");
  1877. }
  1878. exp = new RegExp("Jul[A-Za-z]*|七月|07月|7月", "i");
  1879. if (oValue.match(exp) !== null) {
  1880. aMonth = 7;
  1881. oValue = oValue.replace(exp, "");
  1882. }
  1883. exp = new RegExp("Aug[A-Za-z]*|八月|08月|8月", "i");
  1884. if (oValue.match(exp) !== null) {
  1885. aMonth = 8;
  1886. oValue = oValue.replace(exp, "");
  1887. }
  1888. exp = new RegExp("Sep[A-Za-z]*|九月|09月|9月", "i");
  1889. if (oValue.match(exp) !== null) {
  1890. aMonth = 9;
  1891. oValue = oValue.replace(exp, "");
  1892. }
  1893. oValue = oValue.replace(/日|秒/g, " ");
  1894. oValue = oValue.replace(/时|分/g, ":");
  1895. var subTime = oValue.match(/ \d+:\d+:\d+/);
  1896. if (subTime == null) subTime = "";
  1897. oValue = oValue.replace(/ \d+:\d+:\d+/, "") + subTime;
  1898. var dValue = new Date();
  1899. var iYear = 0;
  1900. var iMonth = 0;
  1901. var iDate = 0;
  1902. var iHour = 0;
  1903. var iMinutes = 0;
  1904. var iSecond = 0;
  1905. var tmpValue = oValue;
  1906. var sValue = "";
  1907. var MC1 = 0;
  1908. MC2 = 0;
  1909. MC3 = 0;
  1910. sValue = tmpValue.match(/\d+/);
  1911. if (sValue !== null) {
  1912. MC1 = parseInt(sValue[0]);
  1913. tmpValue = tmpValue.replace(/\d+/, "");
  1914. }
  1915. sValue = tmpValue.match(/\d+/);
  1916. if (sValue !== null) {
  1917. MC2 = parseInt(sValue[0]);
  1918. tmpValue = tmpValue.replace(/\d+/, "");
  1919. }
  1920. if (aMonth <= 0) {
  1921. sValue = tmpValue.match(/\d+/);
  1922. if (sValue !== null) {
  1923. MC3 = parseInt(sValue[0]);
  1924. tmpValue = tmpValue.replace(/\d+/, "");
  1925. }
  1926. }
  1927. if (aMonth > 0) {
  1928. iMonth = aMonth;
  1929. if (MC2 <= 31) {
  1930. iYear = MC1;
  1931. iDate = MC2;
  1932. } else {
  1933. iYear = MC2;
  1934. iDate = MC1;
  1935. }
  1936. } else
  1937. if (TypeYMD == "dmy") {
  1938. iDate = MC1;
  1939. iMonth = MC2;
  1940. iYear = MC3;
  1941. } else
  1942. if (TypeYMD == "mdy") {
  1943. iMonth = MC1;
  1944. iDate = MC2;
  1945. iYear = MC3;
  1946. } else {
  1947. iYear = MC1;
  1948. iMonth = MC2;
  1949. iDate = MC3;
  1950. if (MC3 > 31) {
  1951. iYear = MC3;
  1952. iMonth = MC1;
  1953. iDate = MC2;
  1954. if (MC1 > 12) {
  1955. iDate = MC1;
  1956. iMonth = MC2
  1957. };
  1958. } else {
  1959. if (MC2 > 12) {
  1960. iYear = MC2;
  1961. iMonth = MC1;
  1962. }
  1963. }
  1964. }
  1965. var sValue = tmpValue.match(/\d+/);
  1966. if (sValue !== null) {
  1967. iHour = parseInt(sValue[0]);
  1968. tmpValue = tmpValue.replace(/\d+/, "");
  1969. }
  1970. var sValue = tmpValue.match(/\d+/);
  1971. if (sValue !== null) {
  1972. iMinutes = parseInt(sValue[0]);
  1973. tmpValue = tmpValue.replace(/\d+/, "");
  1974. }
  1975. var sValue = tmpValue.match(/\d+/);
  1976. if (sValue !== null) {
  1977. iSecond = parseInt(sValue[0]);
  1978. tmpValue = tmpValue.replace(/\d+/, "");
  1979. }
  1980. if (oType.toLowerCase() == "isvalidformat")
  1981. oValue = (iYear > 0 && iMonth > 0 && iMonth <= 12 && iDate > 0 && iDate <= 31);
  1982. else {
  1983. if (("" + iYear).length < 4) iYear = iYear + 2000;
  1984. dValue.setFullYear(iYear, iMonth - 1, iDate);
  1985. dValue.setHours(iHour);
  1986. dValue.setMinutes(iMinutes);
  1987. dValue.setSeconds(iSecond);
  1988. var iDay = dValue.getDay();
  1989. if (oType.toLowerCase() == "weekindex")
  1990. oValue = iDay;
  1991. else
  1992. if (oType.toLowerCase() == "floatvalue")
  1993. oValue = dValue.getTime();
  1994. else {
  1995. var sWeek = "";
  1996. switch (iDay) {
  1997. case 0:
  1998. sWeek = "日";
  1999. break;
  2000. case 1:
  2001. sWeek = "一";
  2002. break;
  2003. case 2:
  2004. sWeek = "二";
  2005. break;
  2006. case 3:
  2007. sWeek = "三";
  2008. break;
  2009. case 4:
  2010. sWeek = "四";
  2011. break;
  2012. case 5:
  2013. sWeek = "五";
  2014. break;
  2015. case 6:
  2016. sWeek = "六";
  2017. break;
  2018. }
  2019. oValue = oType.replace(/dddd/ig, "星期" + sWeek);
  2020. if (/(y+)/i.test(oValue)) oValue = oValue.replace(RegExp.$1, (iYear + "")
  2021. .substr(
  2022. 4 - RegExp.$1.length));
  2023. if (/(m+:)/i.test(oValue)) oValue = oValue.replace(RegExp.$1, ("00" + iMinutes +
  2024. ":").substr(("00" + iMinutes + ":").length - RegExp.$1.length));
  2025. if (/(M+)/i.test(oValue)) {
  2026. var dsWidth = ("" + iMonth).length > RegExp.$1.length ? ("" + iMonth)
  2027. .length :
  2028. RegExp.$1.length;
  2029. oValue = oValue.replace(RegExp.$1, ("00" + iMonth).substr(("00" + iMonth)
  2030. .length -
  2031. dsWidth));
  2032. }
  2033. if (/(d+)/i.test(oValue)) {
  2034. var dsWidth = ("" + iDate).length > RegExp.$1.length ? ("" + iDate).length :
  2035. RegExp.$1.length;
  2036. oValue = oValue.replace(RegExp.$1, ("00" + iDate).substr(("00" + iDate)
  2037. .length -
  2038. dsWidth));
  2039. }
  2040. if (/(H+)/i.test(oValue)) oValue = oValue.replace(RegExp.$1, ("00" + iHour)
  2041. .substr(
  2042. ("00" + iHour).length - RegExp.$1.length));
  2043. if (/(n+)/i.test(oValue)) oValue = oValue.replace(RegExp.$1, ("00" + iMinutes)
  2044. .substr(
  2045. ("00" + iMinutes).length - RegExp.$1.length));
  2046. if (/(s+)/i.test(oValue)) oValue = oValue.replace(RegExp.$1, ("00" + iSecond)
  2047. .substr(
  2048. ("00" + iSecond).length - RegExp.$1.length));
  2049. }
  2050. }
  2051. if (CLODOP.On_Return) {
  2052. var selfFunc = CLODOP.On_Return;
  2053. CLODOP.On_Return(0, oValue);
  2054. if (!CLODOP.On_Return_Remain && selfFunc === CLODOP.On_Return) CLODOP.On_Return =
  2055. null;
  2056. }
  2057. return oValue;
  2058. } else
  2059. if (this.blIslocal || oType.indexOf("FILE:") < 0) {
  2060. this.PageData["format_type"] = oType;
  2061. this.PageData["format_value"] = oValue;
  2062. if (this.DoPostDatas("format") == true) {
  2063. this.GetLastResult(false);
  2064. tResult = this.GetTaskID();
  2065. }
  2066. } else alert(this.altMessageNoReadWriteFile)
  2067. }
  2068. this.DoInit();
  2069. this.blWorking = false;
  2070. return tResult;
  2071. },
  2072. SET_PRINT_PAPER: function(Top, Left, Width, Height, strPrintTask) {
  2073. return this.PRINT_INITA(Top, Left, Width, Height, strPrintTask);
  2074. },
  2075. PRINT_INIT: function(strPrintTask) {
  2076. return this.PRINT_INITA(null, null, null, null, strPrintTask);
  2077. },
  2078. PRINT_INITA: function(Top, Left, Width, Height, strPrintTask) {
  2079. if (Top === undefined || Top === null) Top = "";
  2080. if (Left === undefined || Left === null) Left = "";
  2081. if (Width === undefined || Width === null) Width = "";
  2082. if (Height === undefined || Height === null) Height = "";
  2083. if (strPrintTask === undefined || strPrintTask === null) strPrintTask = "";
  2084. this.NoClearAfterPrint = false;
  2085. this.DoInit();
  2086. this.PageData["top"] = Top;
  2087. this.PageData["left"] = Left;
  2088. this.PageData["width"] = Width;
  2089. this.PageData["height"] = Height;
  2090. this.PageData["printtask"] = strPrintTask;
  2091. return true;
  2092. },
  2093. SET_PRINT_MODE: function(strModeType, ModeValue) {
  2094. if (strModeType === undefined || strModeType === null) strModeType = "";
  2095. if (ModeValue === undefined || ModeValue === null) ModeValue = "";
  2096. if (strModeType === "") return false;
  2097. strModeType = strModeType.toLowerCase();
  2098. this.PageData[strModeType] = ModeValue;
  2099. if (strModeType == "noclear_after_print") this.NoClearAfterPrint = ModeValue;
  2100. if (strModeType.indexOf("window_def") > -1 || strModeType.indexOf("control_printer") > -1) {
  2101. var tResult = null;
  2102. if (this.DoPostDatas("onlysetprint") == true) {
  2103. this.GetLastResult(false);
  2104. tResult = this.GetTaskID();
  2105. }
  2106. this.DoInit();
  2107. this.blWorking = false;
  2108. return tResult;
  2109. }
  2110. },
  2111. ADD_PRINT_TEXT: function(top, left, width, height, strText) {
  2112. return this.AddItemArray(2, top, left, width, height, strText);
  2113. },
  2114. ADD_PRINT_TEXTA: function(itemName, top, left, width, height, strText) {
  2115. return this.AddItemArray(2, top, left, width, height, strText, itemName);
  2116. },
  2117. ADD_PRINT_HTM: function(top, left, width, height, strHTML) {
  2118. return this.AddItemArray(4, top, left, width, height, strHTML);
  2119. },
  2120. ADD_PRINT_HTML: function(top, left, width, height, strHTML) {
  2121. return this.AddItemArray(1, top, left, width, height, strHTML);
  2122. },
  2123. ADD_PRINT_HTMLA: function(itemName, top, left, width, height, strHTML) {
  2124. return this.AddItemArray(1, top, left, width, height, strHTML, itemName);
  2125. },
  2126. ADD_PRINT_BARCODE: function(top, left, width, height, BarType, BarValue) {
  2127. return this.AddItemArray(9, top, left, width, height, BarValue, null, null, null, null, null,
  2128. null, BarType);
  2129. },
  2130. ADD_PRINT_BARCODEA: function(ItemName, top, left, width, height, BarType, BarValue) {
  2131. return this.AddItemArray(9, top, left, width, height, BarValue, ItemName, null, null, null,
  2132. null, null, BarType);
  2133. },
  2134. ADD_PRINT_RECTA: function(top, left, width, height, intPenStyle, intPenWidth, intColor) {
  2135. return this.AddItemArray(3, top, left, width, height, null, null, 2, intPenStyle, intPenWidth,
  2136. intColor, null);
  2137. },
  2138. ADD_PRINT_RECT: function(top, left, width, height, intPenStyle, intPenWidth) {
  2139. return this.AddItemArray(3, top, left, width, height, null, null, 2, intPenStyle, intPenWidth,
  2140. null, null);
  2141. },
  2142. ADD_PRINT_ELLIPSEA: function(top, left, width, height, intPenStyle, intPenWidth, intColor) {
  2143. return this.AddItemArray(3, top, left, width, height, null, null, 3, intPenStyle, intPenWidth,
  2144. intColor, null);
  2145. },
  2146. ADD_PRINT_ELLIPSE: function(top, left, width, height, intPenStyle, intPenWidth) {
  2147. return this.AddItemArray(3, top, left, width, height, null, null, 3, intPenStyle, intPenWidth,
  2148. null, null);
  2149. },
  2150. ADD_PRINT_SHAPE: function(ShapeType, top, left, width, height, intPenStyle, intPenWidth, intColor) {
  2151. return this.AddItemArray(3, top, left, width, height, null, null, ShapeType, intPenStyle,
  2152. intPenWidth, intColor, null);
  2153. },
  2154. ADD_PRINT_LINE: function(top1, left1, top2, left2, intPenStyle, intPenWidth) {
  2155. return this.AddItemArray(3, top1, left1, top2, left2, null, null, 0, intPenStyle, intPenWidth,
  2156. null, "1");
  2157. },
  2158. ADD_PRINT_DNLINE: function(Top, Left, Width, Height, intPenStyle, intPenWidth) {
  2159. return this.AddItemArray(3, Top, Left, Width, Height, null, null, 1, intPenStyle, intPenWidth,
  2160. null, null);
  2161. },
  2162. ADD_PRINT_DNLINEA: function(Top, Left, Width, Height, intPenStyle, intPenWidth, intColor) {
  2163. return this.AddItemArray(3, Top, Left, Width, Height, null, null, 1, intPenStyle, intPenWidth,
  2164. intColor, null);
  2165. },
  2166. ADD_PRINT_UPLINE: function(Top, Left, Width, Height, intPenStyle, intPenWidth) {
  2167. return this.AddItemArray(3, Top, Left, Width, Height, null, null, 0, intPenStyle, intPenWidth,
  2168. null, null);
  2169. },
  2170. ADD_PRINT_UPLINEA: function(Top, Left, Width, Height, intPenStyle, intPenWidth, intColor) {
  2171. return this.AddItemArray(3, Top, Left, Width, Height, null, null, 0, intPenStyle, intPenWidth,
  2172. intColor, null);
  2173. },
  2174. ADD_PRINT_TABLE: function(top, left, width, height, strHTML) {
  2175. return this.AddItemArray(6, top, left, width, height, strHTML);
  2176. },
  2177. ADD_PRINT_TBURL: function(top, left, width, height, strURL) {
  2178. return this.AddItemArray(7, top, left, width, height, strURL);
  2179. },
  2180. ADD_PRINT_URL: function(top, left, width, height, strURL) {
  2181. return this.AddItemArray(5, top, left, width, height, strURL);
  2182. },
  2183. ADD_PRINT_IMAGE: function(top, left, width, height, strHTML) {
  2184. return this.AddItemArray(8, top, left, width, height, strHTML);
  2185. },
  2186. ADD_PRINT_CHART: function(top, left, width, height, strChartTypess, strHTML) {
  2187. return this.AddItemArray(10, top, left, width, height, strHTML, null, null, null, null, null,
  2188. null, null, strChartTypess);
  2189. },
  2190. ADD_PRINT_PDF: function(top, left, width, height, strContent) {
  2191. if (!this.blIslocal && strContent[1] == ":")
  2192. alert("Unable to print or view remote service files");
  2193. else
  2194. return this.AddItemArray(11, top, left, width, height, strContent);
  2195. },
  2196. SET_PRINT_PROPERTY: function(ItemNO, intPageType, intHorzOrient, intVertOrient) {
  2197. this.SET_PRINT_STYLEA(ItemNO, "ItemType", intPageType);
  2198. this.SET_PRINT_STYLEA(ItemNO, "HOrient", intHorzOrient);
  2199. this.SET_PRINT_STYLEA(ItemNO, "VOrient", intVertOrient);
  2200. },
  2201. SET_PRINT_PROPERTYA: function(ItemName, intPageType, intHorzOrient, intVertOrient) {
  2202. this.SET_PRINT_PROPERTY(ItemName, intPageType, intHorzOrient, intVertOrient);
  2203. },
  2204. SET_PRINT_STYLE: function(strStyleName, StyleValue) {
  2205. if (strStyleName === undefined || strStyleName === null) strStyleName = "";
  2206. if (StyleValue === undefined || StyleValue === null) StyleValue = "";
  2207. if (strStyleName === "") return false;
  2208. strStyleName = strStyleName.toLowerCase();
  2209. this.defStyleJson[strStyleName] = StyleValue;
  2210. },
  2211. SET_PRINT_STYLEA: function(ItemNo, strKey, Value) {
  2212. if (ItemNo === undefined || ItemNo === null) ItemNo = "";
  2213. if (strKey === undefined || strKey === null) strKey = "";
  2214. if (Value === undefined || Value === null) Value = "";
  2215. if (ItemNo === "" || strKey === "") return false;
  2216. if (this.ItemDatas["count"] <= 0) {
  2217. if (this.PageData["add_print_program_data"] !== undefined) {
  2218. this.ItemCNameStyles[strKey.toLowerCase() + "-" + ItemNo] = Value;
  2219. return true;
  2220. } else {
  2221. return false;
  2222. }
  2223. }
  2224. strKey = strKey.toLowerCase();
  2225. if (strKey == "type") return false;
  2226. var blResult = false;
  2227. if (ItemNo == 0) {
  2228. ItemNo = this.ItemDatas["count"];
  2229. }
  2230. for (var vItemNO in this.ItemDatas) {
  2231. var ItemName = this.ItemDatas[vItemNO]["itemname"];
  2232. if ((ItemNo == vItemNO) || (ItemNo == ItemName) || ((typeof ItemNo === "string") && (
  2233. typeof ItemName ===
  2234. "string") && (ItemNo.toUpperCase() == ItemName.toUpperCase()))) {
  2235. this.ItemDatas[vItemNO][strKey] = Value;
  2236. blResult = true;
  2237. }
  2238. }
  2239. if (blResult) return true;
  2240. return false;
  2241. },
  2242. SET_PRINT_TEXT_STYLE: function(ItemNO, strFontName, intSize, intBold, intItalic, intUnderline,
  2243. intAlignment) {
  2244. this.SET_PRINT_STYLEA(ItemNO, "fontname", strFontName);
  2245. this.SET_PRINT_STYLEA(ItemNO, "fontsize", intSize);
  2246. this.SET_PRINT_STYLEA(ItemNO, "bold", intBold);
  2247. this.SET_PRINT_STYLEA(ItemNO, "italic", intItalic);
  2248. this.SET_PRINT_STYLEA(ItemNO, "underline", intUnderline);
  2249. this.SET_PRINT_STYLEA(ItemNO, "alignment", intAlignment);
  2250. },
  2251. SET_PRINT_TEXT_STYLEA: function(ItemNO, strFontName, intSize, intBold, intItalic, intUnderline,
  2252. intAlignment, Color) {
  2253. this.SET_PRINT_TEXT_STYLE(ItemNO, strFontName, intSize, intBold, intItalic, intUnderline,
  2254. intAlignment);
  2255. this.SET_PRINT_STYLEA(ItemNO, "fontcolor", Color);
  2256. },
  2257. SET_PRINT_TEXT_STYLEB: function(ItemNO, strFontName, intSize, intBold, intItalic, intUnderline,
  2258. intAlignment, Color) {
  2259. this.SET_PRINT_TEXT_STYLEA(ItemNO, strFontName, intSize, intBold, intItalic, intUnderline,
  2260. intAlignment, Color);
  2261. },
  2262. NEWPAGE: function() {
  2263. this.NewPage();
  2264. },
  2265. NewPage: function() {
  2266. var blSomeNormal = false;
  2267. var noItemType;
  2268. for (var vItemNO in this.ItemDatas) {
  2269. if (vItemNO == "count") noItemType = false;
  2270. else noItemType = true;
  2271. for (var vItemxx in this.ItemDatas[vItemNO]) {
  2272. if (vItemxx == "itemtype") {
  2273. noItemType = false;
  2274. if ((this.ItemDatas[vItemNO][vItemxx] == 0) || (this.ItemDatas[vItemNO][vItemxx] ==
  2275. 4)) {
  2276. blSomeNormal = true;
  2277. break;
  2278. }
  2279. }
  2280. }
  2281. if (noItemType) blSomeNormal = true;
  2282. if (blSomeNormal) break;
  2283. }
  2284. if (blSomeNormal) this.defStyleJson["beginpage"] = this.defStyleJson["beginpage"] + 1;
  2285. },
  2286. NEWPAGEA: function() {
  2287. this.NewPageA();
  2288. },
  2289. NewPageA: function() {
  2290. var blSomeNormal = false;
  2291. var noItemType;
  2292. for (var vItemNO in this.ItemDatas) {
  2293. if (vItemNO == "count") noItemType = false;
  2294. else noItemType = true;
  2295. for (var vItemxx in this.ItemDatas[vItemNO]) {
  2296. if (vItemxx == "itemtype") {
  2297. noItemType = false;
  2298. if ((this.ItemDatas[vItemNO][vItemxx] == 0) || (this.ItemDatas[vItemNO][vItemxx] ==
  2299. 4)) {
  2300. blSomeNormal = true;
  2301. break;
  2302. }
  2303. }
  2304. }
  2305. if (noItemType) blSomeNormal = true;
  2306. if (blSomeNormal) break;
  2307. }
  2308. if (blSomeNormal) this.defStyleJson["beginpagea"] = this.defStyleJson["beginpagea"] + 1;
  2309. },
  2310. PREVIEW: function(destView, iWidth, iHigh, iOption) {
  2311. if (this.blWorking) {
  2312. alert(this.altMessageBusy);
  2313. return null;
  2314. }
  2315. var tResult = null;
  2316. if ((!destView) && (this.blIslocal) && (!this.PageData["printersubid"])) {
  2317. if (this.DoPostDatas("preview") == true) {
  2318. this.Result = null;
  2319. this.GetLastResult(true);
  2320. tResult = this.GetTaskID();
  2321. }
  2322. } else {
  2323. if (this.DoPostDatas("cpreview") == true) {
  2324. this.DoCPreview(destView, iWidth, iHigh, iOption);
  2325. tResult = this.GetTaskID();
  2326. }
  2327. }
  2328. this.DoInit();
  2329. this.blWorking = false;
  2330. return tResult;
  2331. },
  2332. PRINT: function() {
  2333. if (this.blWorking) {
  2334. alert(this.altMessageBusy);
  2335. return null;
  2336. }
  2337. var tResult = null;
  2338. if (this.DoPostDatas("print") == true)
  2339. tResult = this.GetTaskID();
  2340. this.DoInit();
  2341. this.blWorking = false;
  2342. return tResult;
  2343. },
  2344. GET_PRINTER_COUNT: function() {
  2345. if (this.Printers === undefined) return 0;
  2346. else {
  2347. return this.Printers["list"].length;
  2348. }
  2349. },
  2350. GET_PRINTER_NAME: function(intNO) {
  2351. if (this.Printers === undefined) return "";
  2352. else {
  2353. if (typeof intNO == "string" && intNO.indexOf(":") > -1) {
  2354. var strPPname = intNO.slice(intNO.indexOf(":") + 1);
  2355. intNO = intNO.slice(0, intNO.indexOf(":"));
  2356. if (intNO == -1)
  2357. return this.Printers["list"][this.Printers["default"]][strPPname];
  2358. else
  2359. return this.Printers["list"][intNO][strPPname];
  2360. } else {
  2361. if (intNO == -1)
  2362. return this.Printers["list"][this.Printers["default"]].name;
  2363. else
  2364. if (intNO >= 0 && intNO < this.Printers["list"].length)
  2365. return this.Printers["list"][intNO].name;
  2366. else return "Printer NO. overflow";
  2367. }
  2368. }
  2369. },
  2370. GET_PAGESIZES_LIST: function(PNameIndx, Split, ListName, NameOrID) {
  2371. if (!ListName) ListName = "pagelist";
  2372. if (!NameOrID) NameOrID = "name";
  2373. if (this.Printers === undefined) return "";
  2374. else {
  2375. if (PNameIndx == -1) PNameIndx = this.Printers["list"][this.Printers["default"]].name;
  2376. for (var intNO in this.Printers["list"]) {
  2377. if (PNameIndx == intNO || PNameIndx == this.Printers["list"][intNO].name) {
  2378. var strList = "";
  2379. for (var iPNO in this.Printers["list"][intNO][ListName]) {
  2380. if ((NameOrID == "id") && this.Printers["list"][intNO][ListName][iPNO].id) {
  2381. if (strList === "") strList = this.Printers["list"][intNO][ListName][iPNO]
  2382. .id;
  2383. else
  2384. strList = strList + Split + this.Printers["list"][intNO][ListName][iPNO]
  2385. .id;
  2386. } else {
  2387. if (strList === "") strList = this.Printers["list"][intNO][ListName][iPNO]
  2388. .name;
  2389. else
  2390. strList = strList + Split + this.Printers["list"][intNO][ListName][iPNO]
  2391. .name;
  2392. }
  2393. }
  2394. return strList;
  2395. }
  2396. }
  2397. return "";
  2398. }
  2399. },
  2400. SET_PRINTER_INDEX: function(strName, strKeyModeName) {
  2401. if (this.Printers === undefined) return false;
  2402. else {
  2403. if (!strKeyModeName) strKeyModeName = "printerindex";
  2404. strName = strName + "";
  2405. strName = strName.replace(/^\s+|\s+$/g, "");
  2406. var iPos = strName.indexOf(",");
  2407. var strNameOrNO = strName;
  2408. if (iPos > -1) strNameOrNO = strName.slice(0, iPos);
  2409. if (strNameOrNO == "-1") {
  2410. this.PageData[strKeyModeName] = this.Printers["default"];
  2411. if (iPos > -1) this.PageData["printersubid"] = strName.slice(iPos + 1);
  2412. return true;
  2413. } else {
  2414. for (var vNO in this.Printers["list"]) {
  2415. var strPrinterName = this.Printers["list"][vNO].name;
  2416. if (!strPrinterName) continue;
  2417. if ((strPrinterName.replace(/\\/g, "") == strNameOrNO.replace(/\\/g, "")) || (vNO ==
  2418. strNameOrNO)) {
  2419. this.PageData[strKeyModeName] = strPrinterName;
  2420. if (iPos > -1) this.PageData["printersubid"] = strName.slice(iPos + 1);
  2421. return true;
  2422. }
  2423. }
  2424. return false;
  2425. }
  2426. }
  2427. },
  2428. SET_PRINTER_INDEXA: function(strName) {
  2429. return this.SET_PRINTER_INDEX(strName, "printerindexa");
  2430. },
  2431. PRINT_DESIGN: function() {
  2432. if (this.blWorking) {
  2433. alert(this.altMessageBusy);
  2434. return null;
  2435. }
  2436. var tResult = null;
  2437. if (this.blIslocal) {
  2438. if (this.DoPostDatas("print_design") == true) {
  2439. this.Result = null;
  2440. this.GetLastResult(true);
  2441. tResult = this.GetTaskID();
  2442. }
  2443. } else alert(this.altMessageNoPrintDesign);
  2444. this.DoInit();
  2445. this.blWorking = false;
  2446. return tResult;
  2447. },
  2448. PRINT_SETUP: function() {
  2449. if (this.blWorking) {
  2450. alert(this.altMessageBusy);
  2451. return null;
  2452. }
  2453. var tResult = null;
  2454. if (this.blIslocal) {
  2455. if (this.DoPostDatas("print_setup") == true) {
  2456. this.Result = null;
  2457. this.GetLastResult(true);
  2458. tResult = this.GetTaskID();
  2459. }
  2460. } else alert(this.altMessageNoPrintSetup);
  2461. this.DoInit();
  2462. this.blWorking = false;
  2463. return tResult;
  2464. },
  2465. SET_PRINT_PAGESIZE: function(intOrient, PageWidth, PageHeight, strPageName) {
  2466. if (intOrient !== undefined && intOrient !== null) this.PageData["orient"] = intOrient;
  2467. if (PageWidth !== undefined && PageWidth !== null) this.PageData["pagewidth"] = PageWidth;
  2468. if (PageHeight !== undefined && PageHeight !== null) this.PageData["pageheight"] = PageHeight;
  2469. if (strPageName !== undefined && strPageName !== null) this.PageData["pagename"] = strPageName;
  2470. },
  2471. SET_PRINT_COPIES: function(intCopies) {
  2472. if (intCopies !== undefined && intCopies !== null) {
  2473. this.PageData["printcopies"] = intCopies;
  2474. return true;
  2475. }
  2476. },
  2477. SELECT_PRINTER: function(blPrint) {
  2478. this.SelectBox.create(388, 240, !blPrint);
  2479. return true;
  2480. },
  2481. PRINTA: function(blPrintB, sView) {
  2482. if (this.blWorking) {
  2483. alert(this.altMessageBusy);
  2484. return null;
  2485. }
  2486. var tResult = null;
  2487. if (!sView && this.blIslocal) {
  2488. this.Result = null;
  2489. if (blPrintB) {
  2490. if (this.DoPostDatas("printb") == true) {
  2491. this.GetLastResult(false);
  2492. tResult = this.GetTaskID();
  2493. }
  2494. } else {
  2495. if (this.DoPostDatas("printa") == true) {
  2496. this.GetLastResult(true);
  2497. tResult = this.GetTaskID();
  2498. }
  2499. }
  2500. this.DoInit();
  2501. this.blWorking = false;
  2502. } else {
  2503. this.SELECT_PRINTER(true);
  2504. }
  2505. return tResult;
  2506. },
  2507. PRINTAOK: function(iPrintIndex, iPrintCopies, iStartNO, iEndNO, onlySelect) {
  2508. this.SET_PRINTER_INDEX(iPrintIndex);
  2509. this.SET_PRINT_COPIES(iPrintCopies);
  2510. if (iStartNO !== undefined && iStartNO !== 0) this.SET_PRINT_MODE("PRINT_START_PAGE", iStartNO);
  2511. if (iEndNO !== undefined && iEndNO !== 0) this.SET_PRINT_MODE("PRINT_END_PAGE", iEndNO);
  2512. if (!onlySelect) this.PRINT();
  2513. else {
  2514. this.blTmpSelectedIndex = iPrintIndex;
  2515. if (CLODOP.On_Return) {
  2516. var selfFunc = CLODOP.On_Return;
  2517. CLODOP.On_Return(0, iPrintIndex);
  2518. if (!CLODOP.On_Return_Remain && selfFunc === CLODOP.On_Return) CLODOP.On_Return = null;
  2519. }
  2520. }
  2521. },
  2522. SET_LICENSES: function(strCompanyName, strLicense, strLicenseA, strLicenseB) {
  2523. if ((strCompanyName == 'THIRD LICENSE') && (strLicense == "")) {
  2524. if (strLicenseA && strLicenseA !== "") this.PageDataEx["licensec"] = strLicenseA;
  2525. if (strLicenseB && strLicenseB !== "") this.PageDataEx["licensed"] = strLicenseB;
  2526. } else if ((strCompanyName == 'LICENSE TETCODE') && (strLicense == "") && (strLicenseB == "")) {
  2527. if (strLicenseA && strLicenseA !== "") this.PageDataEx["Licensetetcode"] = strLicenseA;
  2528. } else {
  2529. if (strCompanyName && strCompanyName !== "") this.PageDataEx["companyname"] =
  2530. strCompanyName;
  2531. if (strLicense && strLicense !== "") this.PageDataEx["license"] = strLicense;
  2532. if (strLicenseA && strLicenseA !== "") this.PageDataEx["licensea"] = strLicenseA;
  2533. if (strLicenseB && strLicenseB !== "") this.PageDataEx["licenseb"] = strLicenseB;
  2534. }
  2535. },
  2536. PRINTB: function() {
  2537. return this.PRINTA(true);
  2538. },
  2539. PREVIEWA: function() {
  2540. return this.PREVIEW();
  2541. },
  2542. PREVIEWB: function() {
  2543. return this.PREVIEW();
  2544. },
  2545. ADD_PRINT_SETUP_BKIMG: function(strContent) {
  2546. if (strContent !== undefined && strContent !== null) {
  2547. this.PageData["setup_bkimg"] = strContent;
  2548. return true;
  2549. }
  2550. },
  2551. SET_PREVIEW_WINDOW: function(intDispMode, intToolMode, blDirectPrint, oWidth, oHeight,
  2552. strPButtonCaptoin) {
  2553. if (intDispMode !== undefined && intDispMode !== null) this.PageData["pvw_dispmode"] =
  2554. intDispMode;
  2555. if (intToolMode !== undefined && intToolMode !== null) this.PageData["pvw_toolmode"] =
  2556. intToolMode;
  2557. if (blDirectPrint !== undefined && blDirectPrint !== null) this.PageData["pvw_directprint"] =
  2558. blDirectPrint;
  2559. if (oWidth !== undefined && oWidth !== null) this.PageData["pvw_width"] = oWidth;
  2560. if (oHeight !== undefined && oHeight !== null) this.PageData["pvw_height"] = oHeight;
  2561. if (strPButtonCaptoin !== undefined && strPButtonCaptoin !== null) this.PageData[
  2562. "pvw_puttoncaptoin"] = strPButtonCaptoin;
  2563. },
  2564. SET_PREVIEW_MODE: function(ModeValue) {
  2565. if (ModeValue !== undefined) this.PageData["pvw_preview_mode"] = ModeValue;
  2566. },
  2567. SET_SHOW_MODE: function(strModeType, ModeValue) {
  2568. if (strModeType === undefined || strModeType === null) strModeType = "";
  2569. if (ModeValue === undefined || ModeValue === null) ModeValue = "";
  2570. if (strModeType === "") return false;
  2571. strModeType = strModeType.toLowerCase();
  2572. this.PageData['shwmod_' + strModeType] = ModeValue;
  2573. },
  2574. SAVE_TO_FILE: function(strFileName) {
  2575. if (this.blWorking) {
  2576. alert(this.altMessageBusy);
  2577. return null;
  2578. }
  2579. var tResult = null;
  2580. if (this.blIslocal) {
  2581. if (strFileName) {
  2582. this.PageData["stf_file_name"] = strFileName;
  2583. if (this.DoPostDatas("savetofile") == true) {
  2584. this.GetLastResult(false);
  2585. tResult = this.GetTaskID();
  2586. }
  2587. }
  2588. } else alert(this.altMessageNoWriteFile);
  2589. this.DoInit();
  2590. this.blWorking = false;
  2591. return tResult;
  2592. },
  2593. SET_SAVE_MODE: function(strModeType, ModeValue) {
  2594. if (strModeType === undefined || strModeType === null) strModeType = "";
  2595. if (ModeValue === undefined || ModeValue === null) ModeValue = "";
  2596. if (strModeType === "") return false;
  2597. strModeType = strModeType.toLowerCase();
  2598. this.PageData['stfmod_' + strModeType] = ModeValue;
  2599. },
  2600. SEND_PRINT_RAWDATA: function(strRawData) {
  2601. if (this.blWorking) {
  2602. alert(this.altMessageBusy);
  2603. return null;
  2604. }
  2605. var tResult = null;
  2606. if (strRawData !== undefined) {
  2607. this.PageData["raw_print_data"] = strRawData;
  2608. if (this.DoPostDatas("sendrawdata") == true) {
  2609. this.GetLastResult(false);
  2610. tResult = this.GetTaskID();
  2611. }
  2612. }
  2613. this.DoInit();
  2614. this.blWorking = false;
  2615. return tResult;
  2616. },
  2617. WRITE_FILE_TEXT: function(WriteMode, strFileName, strText) {
  2618. if (this.blWorking) {
  2619. alert(this.altMessageBusy);
  2620. return null;
  2621. }
  2622. var tResult = null;
  2623. if (this.blIslocal) {
  2624. if (strFileName !== undefined && strText !== undefined) {
  2625. this.PageData["write_file_mode"] = WriteMode;
  2626. this.PageData["write_file_name"] = strFileName;
  2627. this.PageData["write_file_text"] = strText;
  2628. if (this.DoPostDatas("writefiletext") == true) {
  2629. this.GetLastResult(false);
  2630. tResult = this.GetTaskID();
  2631. }
  2632. }
  2633. } else alert(this.altMessageNoWriteFile);
  2634. this.DoInit();
  2635. this.blWorking = false;
  2636. return tResult;
  2637. },
  2638. GET_DIALOG_VALUE: function(oType, oPreValue) {
  2639. if (this.blWorking) {
  2640. alert(this.altMessageBusy);
  2641. return null;
  2642. }
  2643. var tResult = null;
  2644. if (oType !== undefined && oPreValue !== undefined) {
  2645. if (this.blIslocal) {
  2646. this.PageData["dialog_type"] = oType;
  2647. this.PageData["dialog_value"] = oPreValue;
  2648. if (this.DoPostDatas("dialog") == true) {
  2649. this.GetLastResult(true);
  2650. tResult = this.GetTaskID();
  2651. }
  2652. } else alert(this.altMessageNoReadWriteFile);
  2653. }
  2654. this.DoInit();
  2655. this.blWorking = false;
  2656. return tResult;
  2657. },
  2658. WRITE_PORT_DATA: function(strPortName, strData) {
  2659. if (this.blWorking) {
  2660. alert(this.altMessageBusy);
  2661. return null;
  2662. }
  2663. var tResult = null;
  2664. if (strPortName !== undefined && strData !== undefined) {
  2665. this.PageData["write_port_name"] = strPortName;
  2666. this.PageData["write_port_data"] = strData;
  2667. if (this.DoPostDatas("writeportdata") == true) {
  2668. this.GetLastResult(false);
  2669. tResult = this.GetTaskID();
  2670. }
  2671. }
  2672. this.DoInit();
  2673. this.blWorking = false;
  2674. return tResult;
  2675. },
  2676. READ_PORT_DATA: function(strPortName) {
  2677. if (this.blWorking) {
  2678. alert(this.altMessageBusy);
  2679. return null;
  2680. }
  2681. var tResult = null;
  2682. if (strPortName !== undefined) {
  2683. this.PageData["read_port_name"] = strPortName;
  2684. if (this.DoPostDatas("readportdata") == true) {
  2685. this.GetLastResult(false);
  2686. tResult = this.GetTaskID();
  2687. }
  2688. }
  2689. this.DoInit();
  2690. this.blWorking = false;
  2691. return tResult;
  2692. },
  2693. GET_SYSTEM_INFO: function(InfoType) {
  2694. if (this.blWorking) {
  2695. alert(this.altMessageBusy);
  2696. return null;
  2697. }
  2698. var tResult = null;
  2699. if (InfoType !== undefined) {
  2700. this.PageData["system_info_type"] = InfoType;
  2701. if (this.DoPostDatas("getsysteminfo") == true) {
  2702. this.GetLastResult(false);
  2703. tResult = this.GetTaskID();
  2704. }
  2705. }
  2706. this.DoInit();
  2707. this.blWorking = false;
  2708. return tResult;
  2709. },
  2710. GET_FILE_TEXT: function(strFileName) {
  2711. if (this.blWorking) {
  2712. alert(this.altMessageBusy);
  2713. return null;
  2714. }
  2715. var tResult = null;
  2716. if (this.blIslocal) {
  2717. if (strFileName !== undefined) {
  2718. this.PageData["get_file_name"] = strFileName;
  2719. if (this.DoPostDatas("getfiletext") == true) {
  2720. this.GetLastResult(false);
  2721. tResult = this.GetTaskID();
  2722. }
  2723. }
  2724. } else alert(this.altMessageNoReadFile);
  2725. this.DoInit();
  2726. this.blWorking = false;
  2727. return tResult;
  2728. },
  2729. IS_FILE_EXIST: function(strFileName) {
  2730. if (this.blWorking) {
  2731. alert(this.altMessageBusy);
  2732. return null;
  2733. }
  2734. var tResult = null;
  2735. if (this.blIslocal) {
  2736. if (strFileName !== undefined) {
  2737. this.PageData["file_exist_name"] = strFileName;
  2738. if (this.DoPostDatas("isfileexist") == true) {
  2739. this.GetLastResult(false);
  2740. tResult = this.GetTaskID();
  2741. }
  2742. }
  2743. } else alert(this.altMessageNoReadFile);
  2744. this.DoInit();
  2745. this.blWorking = false;
  2746. return tResult;
  2747. },
  2748. GET_FILE_TIME: function(strFileName) {
  2749. if (this.blWorking) {
  2750. alert(this.altMessageBusy);
  2751. return null;
  2752. }
  2753. var tResult = null;
  2754. if (this.blIslocal) {
  2755. if (strFileName !== undefined) {
  2756. this.PageData["file_time_name"] = strFileName;
  2757. if (this.DoPostDatas("getfiletime") == true) {
  2758. this.GetLastResult(false);
  2759. tResult = this.GetTaskID();
  2760. }
  2761. }
  2762. } else alert(this.altMessageNoReadFile);
  2763. this.DoInit();
  2764. this.blWorking = false;
  2765. return tResult;
  2766. },
  2767. GET_PRINT_INIFFNAME: function(strPrintTaskName) {
  2768. if (this.blWorking) {
  2769. alert(this.altMessageBusy);
  2770. return null;
  2771. }
  2772. var tResult = null;
  2773. if (this.blIslocal) {
  2774. if (strPrintTaskName !== undefined) {
  2775. this.PageData["iniff_task_name"] = strPrintTaskName;
  2776. if (this.DoPostDatas("getiniffname") == true) {
  2777. this.GetLastResult(false);
  2778. tResult = this.GetTaskID();
  2779. }
  2780. }
  2781. } else alert(this.altMessageNoReadFile);
  2782. this.DoInit();
  2783. this.blWorking = false;
  2784. return tResult;
  2785. },
  2786. GET_VALUE: function(ValueType, ValueIndex) {
  2787. if (this.blWorking) {
  2788. alert(this.altMessageBusy);
  2789. return null;
  2790. }
  2791. var tResult = null;
  2792. if (ValueType !== undefined && ValueIndex !== undefined) {
  2793. this.PageData["get_value_type"] = ValueType;
  2794. this.PageData["get_value_index"] = ValueIndex;
  2795. if (this.DoPostDatas("dogetvalue") == true) {
  2796. this.GetLastResult(false);
  2797. tResult = this.GetTaskID();
  2798. }
  2799. }
  2800. this.DoInit();
  2801. this.blWorking = false;
  2802. return tResult;
  2803. },
  2804. ADD_PRINT_DATA: function(DataType, oValue) {
  2805. if (DataType !== undefined && oValue !== null) {
  2806. if (DataType.toLowerCase().indexOf("programdata") > -1) {
  2807. this.PageData["add_print_program_data"] = oValue;
  2808. return true;
  2809. }
  2810. }
  2811. },
  2812. SHOW_CHART: function() {},
  2813. DO_ACTION: function(strActName, strActValue) {
  2814. if (this.blWorking) {
  2815. alert(this.altMessageBusy);
  2816. return null;
  2817. }
  2818. var tResult = null;
  2819. if (strActName !== undefined && strActValue !== undefined) {
  2820. this.PageData["do_action_name"] = strActName;
  2821. this.PageData["do_action_value"] = strActValue;
  2822. if (this.DoPostDatas("doaction") == true) {
  2823. this.GetLastResult(false);
  2824. tResult = this.GetTaskID();
  2825. }
  2826. }
  2827. this.DoInit();
  2828. this.blWorking = false;
  2829. return tResult;
  2830. },
  2831. Create_Printer_List: function(oElement, blNoDetailForAO) {
  2832. while (oElement.childNodes.length > 0) {
  2833. var children = oElement.childNodes;
  2834. for (var i = 0; i < children.length; i++)
  2835. oElement.removeChild(children[i]);
  2836. };
  2837. var iCount = this.GET_PRINTER_COUNT();
  2838. var iIndex = 0;
  2839. for (var i = 0; i < iCount; i++) {
  2840. var option = document.createElement('option');
  2841. option.innerHTML = this.GET_PRINTER_NAME(i);
  2842. option.value = iIndex;
  2843. oElement.appendChild(option);
  2844. iIndex++;
  2845. if (this.VERSION_EXT) {
  2846. if (this.Printers["list"][i]["subdevlist"].length > 0) {
  2847. if (blNoDetailForAO) option.innerHTML = option.innerHTML + ',..';
  2848. else {
  2849. var strDrivename = option.innerHTML;
  2850. for (var j = 0; j < this.Printers["list"][i]["subdevlist"].length; j++) {
  2851. var strDevID = this.Printers["list"][i]["subdevlist"][j].id;
  2852. var strDevName = this.Printers["list"][i]["subdevlist"][j].name;
  2853. if (j == 0) {
  2854. option.innerHTML = strDrivename + ',' + strDevName;
  2855. option.value = strDrivename + ',' + strDevID + ';' + strDevName;
  2856. } else {
  2857. option = document.createElement('option');
  2858. option.innerHTML = strDrivename + ',' + strDevName;
  2859. option.value = strDrivename + ',' + strDevID + ';' + strDevName;
  2860. oElement.appendChild(option);
  2861. iIndex++;
  2862. if (iIndex >= 100) return;
  2863. }
  2864. }
  2865. }
  2866. }
  2867. }
  2868. }
  2869. },
  2870. Create_PageSize_List: function(oElement, printIndex) {
  2871. while (oElement.childNodes.length > 0) {
  2872. var children = oElement.childNodes;
  2873. for (var i = 0; i < children.length; i++)
  2874. oElement.removeChild(children[i]);
  2875. };
  2876. var strPageSizeList = CLODOP.GET_PAGESIZES_LIST(printIndex, "\n");
  2877. var Options = new Array();
  2878. Options = strPageSizeList.split("\n");
  2879. for (var i in Options) {
  2880. var option = document.createElement('option');
  2881. option.innerHTML = Options[i];
  2882. option.value = Options[i];
  2883. oElement.appendChild(option);
  2884. }
  2885. },
  2886. SET_BRIDGE_INDEX: function(strValue) {
  2887. if (this.Printers === undefined) return false;
  2888. else {
  2889. strValue = (strValue + "").replace(/^\s+|\s+$/g, "");
  2890. for (var vNO in this.Printers["list"]) {
  2891. var strDriverOrName = this.Printers["list"][vNO].name;
  2892. if (strDriverOrName == "(AO)Client-Bridge Driver") {
  2893. this.PageData["printerindex"] = vNO;
  2894. this.PageData["printersubid"] = strValue;
  2895. return true;
  2896. }
  2897. }
  2898. return false;
  2899. }
  2900. },
  2901. Get_AOPrinters_List: function(DriverNameOrIndex, strListName, strSplit) {
  2902. if (!strSplit) strSplit = "\n";
  2903. if (!strListName) strListName = "name";
  2904. return CLODOP.GET_PAGESIZES_LIST(DriverNameOrIndex, strSplit, "subdevlist", strListName);
  2905. },
  2906. Get_AOBridges_List: function(DriverNameOrIndex, strListName, strSplit) {
  2907. return CLODOP.Get_AOPrinters_List(DriverNameOrIndex, strListName, strSplit);
  2908. },
  2909. Get_AOBridge_List: function(strListName, strSplit) {
  2910. return CLODOP.Get_AOPrinters_List("(AO)Client-Bridge Driver", strListName, strSplit);
  2911. },
  2912. Get_AOBridge_SubPrinters_List: function(BridgeNameOrIndex, strListName, strSplit, DriverNameOrIndex) {
  2913. if (!DriverNameOrIndex) DriverNameOrIndex = "(AO)Client-Bridge Driver";
  2914. if (!strSplit) strSplit = "\n";
  2915. if (!strListName) strListName = "name";
  2916. for (var iDrvNO in this.Printers["list"]) {
  2917. if (DriverNameOrIndex == iDrvNO || DriverNameOrIndex == this.Printers["list"][iDrvNO]
  2918. .name) {
  2919. for (var iBdgNO in this.Printers["list"][iDrvNO]["subdevlist"]) {
  2920. var BridgeID = this.Printers["list"][iDrvNO]["subdevlist"][iBdgNO].id;
  2921. var BridgeName = this.Printers["list"][iDrvNO]["subdevlist"][iBdgNO].name;
  2922. if (BridgeNameOrIndex == iBdgNO || BridgeNameOrIndex == BridgeID + ";" +
  2923. BridgeName) {
  2924. var strList = "";
  2925. for (var iSsbPNO in this.Printers["list"][iDrvNO]["subdevlist"][iBdgNO]
  2926. .ssbprinter[
  2927. "list"]) {
  2928. if (iSsbPNO != "0") strList = strList + strSplit;
  2929. if (strListName.toLowerCase() == "id") strList = strList + iSsbPNO;
  2930. else
  2931. strList = strList + this.Printers["list"][iDrvNO]["subdevlist"][iBdgNO]
  2932. .ssbprinter["list"][iSsbPNO].name;
  2933. }
  2934. return strList;
  2935. }
  2936. }
  2937. }
  2938. }
  2939. return "";
  2940. },
  2941. Get_AOBridge_SubPrinters_PageSize_List: function(BridgeNameOrIndex, SubPrinterNameOrIndex, strSplit,
  2942. DriverNameOrIndex) {
  2943. if (!DriverNameOrIndex) DriverNameOrIndex = "(AO)Client-Bridge Driver";
  2944. if (!strSplit) strSplit = "\n";
  2945. for (var iDrvNO in this.Printers["list"]) {
  2946. if (DriverNameOrIndex == iDrvNO || DriverNameOrIndex == this.Printers["list"][iDrvNO]
  2947. .name) {
  2948. for (var iBdgNO in this.Printers["list"][iDrvNO]["subdevlist"]) {
  2949. var BridgeID = this.Printers["list"][iDrvNO]["subdevlist"][iBdgNO].id;
  2950. var BridgeName = this.Printers["list"][iDrvNO]["subdevlist"][iBdgNO].name;
  2951. if (BridgeNameOrIndex == iBdgNO || BridgeNameOrIndex == BridgeID + ";" +
  2952. BridgeName) {
  2953. for (var iSsbPNO in this.Printers["list"][iDrvNO]["subdevlist"][iBdgNO]
  2954. .ssbprinter[
  2955. "list"]) {
  2956. if (SubPrinterNameOrIndex == iSsbPNO || SubPrinterNameOrIndex == this
  2957. .Printers[
  2958. "list"][iDrvNO]["subdevlist"][iBdgNO].ssbprinter["list"][iSsbPNO]
  2959. .name) {
  2960. var strList = "";
  2961. for (var iPageSizeNO in this.Printers["list"][iDrvNO]["subdevlist"][
  2962. iBdgNO
  2963. ].ssbprinter["list"][iSsbPNO]["pagelist"]) {
  2964. if (iPageSizeNO != "0") strList = strList + strSplit;
  2965. strList = strList + this.Printers["list"][iDrvNO]["subdevlist"][
  2966. iBdgNO
  2967. ].ssbprinter["list"][iSsbPNO]["pagelist"][iPageSizeNO]
  2968. .name;
  2969. }
  2970. return strList;
  2971. };
  2972. }
  2973. }
  2974. }
  2975. }
  2976. }
  2977. return "";
  2978. },
  2979. AddItemArray: function(type, top, left, width, height, strContent, itemname, ShapeType, intPenStyle,
  2980. intPenWidth, intColor, isLinePosition, BarType, strChartTypess) {
  2981. if (top === undefined || left === undefined || width === undefined || height === undefined ||
  2982. strContent === undefined) {
  2983. return false;
  2984. }
  2985. var sCount = this.ItemDatas["count"];
  2986. sCount++;
  2987. var oneItem = {};
  2988. for (var vstyle in this.defStyleJson) {
  2989. oneItem[vstyle] = this.defStyleJson[vstyle];
  2990. }
  2991. oneItem["type"] = type;
  2992. oneItem["top"] = top;
  2993. oneItem["left"] = left;
  2994. oneItem["width"] = width;
  2995. oneItem["height"] = height;
  2996. if (strContent != null) {
  2997. if (typeof strContent === "string" && strContent.indexOf(this.DelimChar) > -1)
  2998. oneItem["content"] = strContent.replace(new RegExp(this.DelimChar, 'g'), '');
  2999. else
  3000. oneItem["content"] = strContent;
  3001. }
  3002. if ((itemname !== undefined) && (itemname != null)) oneItem["itemname"] = itemname + "";
  3003. if ((ShapeType !== undefined) && (ShapeType != null)) oneItem["shapetype"] = ShapeType;
  3004. if ((intPenStyle !== undefined) && (intPenStyle != null)) oneItem["penstyle"] = intPenStyle;
  3005. if ((intPenWidth !== undefined) && (intPenWidth != null)) oneItem["penwidth"] = intPenWidth;
  3006. if ((intColor !== undefined) && (intColor != null)) oneItem["fontcolor"] = intColor;
  3007. if ((isLinePosition !== undefined) && (isLinePosition != null)) oneItem["lineposition"] = "1";
  3008. if ((BarType !== undefined) && (BarType != null)) oneItem["fontname"] = BarType;
  3009. if ((strChartTypess !== undefined) && (strChartTypess != null)) oneItem["charttypess"] =
  3010. strChartTypess;
  3011. oneItem["beginpage"] = this.defStyleJson["beginpage"];
  3012. oneItem["beginpagea"] = this.defStyleJson["beginpagea"];
  3013. this.ItemDatas["count"] = sCount;
  3014. this.ItemDatas[sCount] = oneItem;
  3015. this.blNormalItemAdded = true;
  3016. return true;
  3017. },
  3018. RemoveIframes: function() {
  3019. var obody = document.body || document.getElementsByTagName("body")[0] || document
  3020. .documentElement;
  3021. try {
  3022. for (var i = 0; i < this.Iframes.length; i++) {
  3023. var now = (new Date()).getTime();
  3024. if ((now - this.Iframes[i]["time"]) > this.timeThreshold * 60000) {
  3025. obody.removeChild(this.Iframes[i]["iframe"]);
  3026. this.Iframes.splice(i, 1);
  3027. }
  3028. }
  3029. } catch (err) {};
  3030. },
  3031. AddInputElement: function(odocument, oform, name, value) {
  3032. if (value !== undefined) {
  3033. var oinput = odocument.createElement("input");
  3034. oinput.name = name;
  3035. oinput.type = "hidden";
  3036. oinput.value = value;
  3037. oform.appendChild(oinput);
  3038. }
  3039. },
  3040. createPostDataString: function(afterPostAction) {
  3041. var strData = "act=" + afterPostAction + this.DelimChar;
  3042. strData = strData + "browseurl=" + window.location.href + this.DelimChar;
  3043. for (var vMode in this.PageDataEx) {
  3044. strData = strData + vMode + "=" + this.PageDataEx[vMode] + this.DelimChar;
  3045. }
  3046. var PrintModeNamess = "";
  3047. for (var vMode in this.PageData) {
  3048. strData = strData + vMode + "=" + this.PageData[vMode] + this.DelimChar;
  3049. if (vMode != "top" && vMode != "left" && vMode != "width" && vMode != "height" && vMode !=
  3050. "printtask" && vMode != "printerindex" && vMode != "printerindexa" && vMode !=
  3051. "printersubid" && vMode != "orient" && vMode != "pagewidth" && vMode != "pageheight" &&
  3052. vMode != "pagename" && vMode != "printcopies" && vMode != "setup_bkimg")
  3053. PrintModeNamess = PrintModeNamess + ";" + vMode;
  3054. }
  3055. if (PrintModeNamess !== "")
  3056. strData = strData + "printmodenames=" + PrintModeNamess + this.DelimChar;
  3057. var StyleClassNamess = "";
  3058. for (var vClassStyle in this.ItemCNameStyles) {
  3059. strData = strData + vClassStyle + "=" + this.ItemCNameStyles[vClassStyle] + this.DelimChar;
  3060. StyleClassNamess = StyleClassNamess + ";" + vClassStyle;
  3061. }
  3062. if (StyleClassNamess !== "")
  3063. strData = strData + "printstyleclassnames=" + StyleClassNamess + this.DelimChar;
  3064. strData = strData + "itemcount=" + this.ItemDatas["count"] + this.DelimChar;
  3065. for (var vItemNO in this.ItemDatas) {
  3066. var ItemStyless = "";
  3067. for (var vItemxx in this.ItemDatas[vItemNO]) {
  3068. if (vItemxx != "beginpage" && vItemxx != "beginpagea" && vItemxx != "type" && vItemxx !=
  3069. "top" && vItemxx != "left" && vItemxx != "width" && vItemxx != "height")
  3070. ItemStyless = ItemStyless + ";" + vItemxx;
  3071. }
  3072. strData = strData + vItemNO + "_itemstylenames" + "=" + ItemStyless + this.DelimChar;
  3073. for (var vItemxx in this.ItemDatas[vItemNO]) {
  3074. strData = strData + vItemNO + "_" + vItemxx + "=" + this.ItemDatas[vItemNO][vItemxx] +
  3075. this.DelimChar;
  3076. }
  3077. }
  3078. return strData;
  3079. },
  3080. wsDoPostDatas: function(afterPostAction) {
  3081. var strData = "charset=丂" + this.DelimChar;
  3082. strData = strData + "tid=" + this.GetTaskID() + this.DelimChar;
  3083. strData = strData + this.createPostDataString(afterPostAction);
  3084. return this.wsSend("post:" + strData);
  3085. },
  3086. DoPostDatas: function(afterPostAction) {
  3087. if (this.OBO_Mode && this.blOneByone) {
  3088. alert(this.altMessageSomeWindowExist);
  3089. return false;
  3090. }
  3091. this.blWorking = true;
  3092. if (this.blTmpSelectedIndex !== null)
  3093. this.SET_PRINTER_INDEX(this.blTmpSelectedIndex);
  3094. if (this.SocketEnable) {
  3095. return this.wsDoPostDatas(afterPostAction);
  3096. }
  3097. this.RemoveIframes();
  3098. var obody = document.body || document.getElementsByTagName("body")[0] || document
  3099. .documentElement;
  3100. var oiframe = document.createElement("iframe");
  3101. oiframe.setAttribute("src", "about:blank");
  3102. oiframe.setAttribute("style", "display:none");
  3103. oiframe.height = 0;
  3104. obody.appendChild(oiframe);
  3105. var contentdocument = oiframe.contentWindow.document;
  3106. contentdocument.write("<form action='" + this.strHostURI +
  3107. "/c_dopostdatas' method='post' enctype='application/x-www-form-urlencoded'></form>");
  3108. var oform = contentdocument.getElementsByTagName("form")[0];
  3109. this.AddInputElement(contentdocument, oform, "charset", "丂");
  3110. this.AddInputElement(contentdocument, oform, "tid", this.GetTaskID());
  3111. this.AddInputElement(contentdocument, oform, "post", this.createPostDataString(
  3112. afterPostAction));
  3113. oform.submit();
  3114. var IframeMS = {};
  3115. IframeMS["time"] = (new Date()).getTime();
  3116. IframeMS["iframe"] = oiframe;
  3117. this.Iframes.push(IframeMS);
  3118. return true;
  3119. },
  3120. GetLastResult: function(blFOneByone) {
  3121. if (blFOneByone) this.blOneByone = true;
  3122. if (this.SocketEnable) {
  3123. return true;
  3124. }
  3125. var url = this.strHostURI + "/c_lastresult.js";
  3126. url = url + "?times=" + (new Date().getTime());
  3127. url = url + "&tid=" + this.GetTaskID();
  3128. url = encodeURI(url).replace("%20", "+");
  3129. var oscript = document.createElement("script");
  3130. oscript.src = url;
  3131. oscript.async = false;
  3132. oscript.type = "text/javascript";
  3133. oscript.charset = "utf-8";
  3134. var head = document.head || document.getElementsByTagName("head")[0] || document
  3135. .documentElement;
  3136. head.insertBefore(oscript, head.firstChild);
  3137. oscript.onload = oscript.onreadystatechange = function() {
  3138. if (!oscript.readyState || /loaded|complete/.test(oscript.readyState)) {
  3139. CLODOP.blOneByone = false;
  3140. if (CLodop_ACTLastResult)
  3141. var strResult = decodeURIComponent(CLodop_ACTLastResult);
  3142. var strResultTaskID = CLodop_ACTTaskID;
  3143. CLODOP.Result = strResult;
  3144. if (CLodop_ACTAlert) CLodop_ACTAlert();
  3145. if (CLODOP.On_Return)
  3146. try {
  3147. var selfFunc = CLODOP.On_Return;
  3148. if (strResult == "true" || strResult == "false")
  3149. CLODOP.On_Return(strResultTaskID, strResult == "true");
  3150. else
  3151. CLODOP.On_Return(strResultTaskID, strResult);
  3152. if (!CLODOP.On_Return_Remain && selfFunc === CLODOP.On_Return) CLODOP
  3153. .On_Return =
  3154. null;
  3155. } catch (err) {};
  3156. oscript.onload = oscript.onreadystatechange = null;
  3157. if (oscript.parentNode) {
  3158. oscript.parentNode.removeChild(oscript);
  3159. }
  3160. }
  3161. };
  3162. return true;
  3163. },
  3164. DoCPreview: function(destView, iWidth, iHigh, iOption) {
  3165. var obody = document.body || document.getElementsByTagName("body")[0] || document
  3166. .documentElement;
  3167. if (typeof iWidth !== "number" || !iWidth) iWidth = Math.round(obody.offsetWidth * 2 / 3);
  3168. else
  3169. if (obody.offsetWidth < iWidth) iWidth = obody.offsetWidth;
  3170. if (typeof iHigh !== "number" || !iHigh) iHigh = Math.round(window.screen.height - 200);
  3171. else
  3172. if (window.screen.height < iHigh) iHigh = window.screen.height;
  3173. var url = this.strHostURI + "/c_dopreview";
  3174. url = url + "?times=" + (new Date().getTime());
  3175. url = url + "&tid=" + this.GetTaskID();
  3176. url = url + "&iw=" + iWidth;
  3177. url = url + "&ih=" + iHigh;
  3178. if (iOption) url = url + "&opid=" + iOption;
  3179. url = encodeURI(url).replace("%20", "+");
  3180. this.PopView(destView, url, iWidth, iHigh);
  3181. },
  3182. PopView: function(destView, strPURL, iWidth, iHigh) {
  3183. try {
  3184. if (destView && typeof destView === "string" && destView.length > 0) {
  3185. if (destView === "_dialog") {
  3186. if (window.showModalDialog) {
  3187. window.showModalDialog(strPURL, 'dialog', 'center:yes');
  3188. } else {
  3189. window.open(strPURL, "",
  3190. "scrollbars=yes,toolbar=no,left=150,top=100,resizable=yes");
  3191. }
  3192. } else
  3193. if (destView === "_self" || destView === "_top" || destView === "_parent") {
  3194. window.location.href = strPURL;
  3195. } else
  3196. if (destView === "_blank") {
  3197. this.PreviewBox.create(strPURL, iWidth, iHigh);
  3198. } else
  3199. if (destView.indexOf("_winopen:") > -1) {
  3200. var strFeatures = destView.slice(destView.indexOf("_winopen:") + 9);
  3201. if (strFeatures.indexOf("_blank") > -1)
  3202. window.open(strPURL, "_blank", strFeatures.slice(strFeatures.indexOf("_blank") +
  3203. 6));
  3204. else
  3205. window.open(strPURL, "", strFeatures);
  3206. } else
  3207. if (document.getElementById(destView)) {
  3208. document.getElementById(destView).src = strPURL;
  3209. } else
  3210. alert("iframe '" + destView + "' not exist!");
  3211. } else this.PreviewBox.create(strPURL, iWidth, iHigh);
  3212. } catch (err) {
  3213. alert("CLODOP PopView " + err);
  3214. };
  3215. },
  3216. creatMyButtonElement: function(strType, strValue) {
  3217. try {
  3218. var oElement = document.createElement("<input type='" + strType + "' value='" + strValue +
  3219. "'></input>");
  3220. } catch (e) {};
  3221. if (!oElement) {
  3222. oElement = document.createElement("input");
  3223. oElement.type = strType;
  3224. oElement.value = strValue;
  3225. }
  3226. return oElement;
  3227. },
  3228. creatLabelElement: function(Type, Value, Width, Left, Top) {
  3229. var TxtLabel = document.createElement(Type);
  3230. TxtLabel.innerHTML = Value;
  3231. TxtLabel.style.cssText = "position:absolute;width:" + Width + "px;left:" + Left + "px;top:" +
  3232. Top + "px;";
  3233. return TxtLabel;
  3234. },
  3235. SelectBox: {
  3236. dragapproved: false,
  3237. offsetx: 0,
  3238. offsety: 0,
  3239. tempx: 0,
  3240. tempy: 0,
  3241. FrantDiv: undefined,
  3242. PopDiv: undefined,
  3243. selPrinter: undefined,
  3244. selCopies: undefined,
  3245. closeit: function() {
  3246. if (CLODOP.SelectBox.PopDiv && CLODOP.SelectBox.PopDiv.parentNode)
  3247. CLODOP.SelectBox.PopDiv.parentNode.removeChild(CLODOP.SelectBox.PopDiv);
  3248. if (this.FrantDiv && this.FrantDiv.parentNode)
  3249. this.FrantDiv.parentNode.removeChild(this.FrantDiv);
  3250. this.PopDiv = undefined;
  3251. },
  3252. initializedrag: function(e) {
  3253. var we = window.event || e;
  3254. this.offsetx = we.clientX;
  3255. this.offsety = we.clientY;
  3256. this.tempx = parseInt(this.PopDiv.style.left);
  3257. this.tempy = parseInt(this.PopDiv.style.top);
  3258. this.dragapproved = true;
  3259. },
  3260. drag_drop: function(e) {
  3261. if (!this.dragapproved) return;
  3262. var we = window.event || e;
  3263. this.PopDiv.style.left = we.clientX - this.offsetx + this.tempx + "px";
  3264. this.PopDiv.style.top = we.clientY - this.offsety + this.tempy + "px";
  3265. },
  3266. stopdrag: function() {
  3267. this.dragapproved = false;
  3268. },
  3269. clickOK: function(onlySelect) {
  3270. CLODOP.PRINTAOK(CLODOP.SelectBox.selPrinter.value, CLODOP.SelectBox.selCopies.value, 0, 0,
  3271. onlySelect);
  3272. this.closeit();
  3273. },
  3274. create: function(iW, iH, onlySelect) {
  3275. if (CLODOP.SelectBox.PopDiv) this.closeit();
  3276. var obody = document.body || document.getElementsByTagName("body")[0] || document
  3277. .documentElement;
  3278. var Boxdiv = document.createElement("div");
  3279. obody.appendChild(Boxdiv);
  3280. Boxdiv.style.cssText =
  3281. "position:absolute;z-index:91100;display:block;top:2px;border:1px solid #6B97C1;background:#F5F5F5;color:#000;font-size:13px;";
  3282. Boxdiv.style.width = iW + "px";
  3283. Boxdiv.style.left = Math.max((obody.offsetWidth - iW) / 2, 0) + "px";
  3284. Boxdiv.style.top = Math.max((obody.offsetHeight - iH) / 2, 0) + "px";
  3285. Boxdiv.style.height = iH + "px";
  3286. this.PopDiv = Boxdiv;
  3287. var titleDiv = document.createElement("div");
  3288. Boxdiv.appendChild(titleDiv);
  3289. titleDiv.style.cssText =
  3290. "font: bold 13px Arial;line-height:25px;height:27px;text-indent:5px;color: white;background:#8BACCF";
  3291. titleDiv.innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;打印";
  3292. titleDiv.onmousedown = function(event) {
  3293. CLODOP.SelectBox.initializedrag(event);
  3294. };
  3295. titleDiv.onmousemove = function(event) {
  3296. CLODOP.SelectBox.drag_drop(event);
  3297. };
  3298. titleDiv.onmouseup = function() {
  3299. CLODOP.SelectBox.stopdrag();
  3300. };
  3301. var icoButton = document.createElement("button");
  3302. titleDiv.appendChild(icoButton);
  3303. icoButton.style.cssText = "background:transparent url(" + CLODOP.strHostURI +
  3304. "/c_favicon.ico) no-repeat scroll 0 0px;margin-left:5px;position:absolute;height:20px;line-height:100px;width:34px;left:3px;border:0;top:5px";
  3305. var CloseButton = document.createElement("button");
  3306. titleDiv.appendChild(CloseButton);
  3307. CloseButton.style.cssText = "background:transparent url(" + CLODOP.strHostURI +
  3308. "/images/c_winclose.png) no-repeat scroll 0 0px;margin-right:5px;position:absolute;height:20px;line-height:100px;width:34px;right:3px;border:0;top:4px";
  3309. CloseButton.onclick = function() {
  3310. CLODOP.SelectBox.closeit();
  3311. if (onlySelect && CLODOP.On_Return) {
  3312. var selfFunc = CLODOP.On_Return;
  3313. CLODOP.On_Return(0, -1);
  3314. if (!CLODOP.On_Return_Remain && selfFunc === CLODOP.On_Return) CLODOP
  3315. .On_Return =
  3316. null;
  3317. }
  3318. };
  3319. var areaDiv = document.createElement("div");
  3320. Boxdiv.appendChild(areaDiv);
  3321. areaDiv.style.cssText = "background:#F5F5F5;color:#000;border:0px;left:0px;top:0px;";
  3322. areaDiv.style.width = iW - 2 + "px";
  3323. areaDiv.style.height = (iH - 27) + "px";
  3324. var OKButton = CLODOP.creatMyButtonElement("button", "确定");
  3325. Boxdiv.appendChild(OKButton);
  3326. OKButton.style.cssText = "position:absolute;width:80px;height:23px;";
  3327. OKButton.style.left = "110px";
  3328. OKButton.style.top = (iH - 64) + "px";
  3329. OKButton.onclick = function() {
  3330. CLODOP.SelectBox.clickOK(onlySelect);
  3331. };
  3332. var CancelButton = CLODOP.creatMyButtonElement("button", "取消");
  3333. Boxdiv.appendChild(CancelButton);
  3334. CancelButton.style.cssText = "position:absolute;width:80px;;height:23px;";
  3335. CancelButton.style.left = "240px";
  3336. CancelButton.style.top = (iH - 64) + "px";
  3337. CancelButton.onclick = function() {
  3338. CLODOP.SelectBox.closeit();
  3339. if (onlySelect && CLODOP.On_Return) {
  3340. var selfFunc = CLODOP.On_Return;
  3341. CLODOP.On_Return(0, -1);
  3342. if (!CLODOP.On_Return_Remain && selfFunc === CLODOP.On_Return) CLODOP
  3343. .On_Return =
  3344. null;
  3345. }
  3346. };
  3347. areaDiv.appendChild(CLODOP.creatLabelElement("span", "选打印机:", 200, 46, 67));
  3348. var oSelect = document.createElement("select");
  3349. Boxdiv.appendChild(oSelect);
  3350. this.selPrinter = oSelect;
  3351. oSelect.style.cssText = "position:absolute;size:1;width:212px;left:110px;top:62px;";
  3352. CLODOP.Create_Printer_List(oSelect);
  3353. areaDiv.appendChild(CLODOP.creatLabelElement("span", "打印份数:", 200, 46, 121));
  3354. var oCopies = CLODOP.creatMyButtonElement("text", "1");
  3355. Boxdiv.appendChild(oCopies);
  3356. this.selCopies = oCopies;
  3357. oCopies.style.cssText = "position:absolute;size:1;width:30px;left:110px;top:117px;";
  3358. this.FrantDiv = document.createElement("div");
  3359. obody.appendChild(this.FrantDiv);
  3360. this.FrantDiv.style.cssText =
  3361. "border:0px;left:0px;top:0px;filter: alpha(opacity=20); position: fixed; opacity: 0.2;-moz-opacity: 0.2; _position: absolute;z-index:91009; over-flow: hidden;";
  3362. if (CLODOP.Browser.IE && (document.compatMode == "BackCompat" || navigator.userAgent
  3363. .indexOf(
  3364. "MSIE 6.0") > 0)) {
  3365. this.FrantDiv.style.width = obody.scrollWidth + "px";
  3366. this.FrantDiv.style.height = obody.scrollHeight + "px";
  3367. } else {
  3368. this.FrantDiv.style.width = "100%";
  3369. this.FrantDiv.style.height = "100%";
  3370. }
  3371. }
  3372. },
  3373. PreviewBox: {
  3374. dragapproved: false,
  3375. offsetx: 0,
  3376. offsety: 0,
  3377. tempx: 0,
  3378. tempy: 0,
  3379. FrantDiv: undefined,
  3380. PopDiv: undefined,
  3381. ContentFrame: undefined,
  3382. closeit: function(oSelf) {
  3383. if (CLODOP.PreviewBox.PopDiv && CLODOP.PreviewBox.PopDiv.parentNode)
  3384. CLODOP.PreviewBox.PopDiv.parentNode.removeChild(CLODOP.PreviewBox.PopDiv);
  3385. if (this.FrantDiv && this.FrantDiv.parentNode)
  3386. this.FrantDiv.parentNode.removeChild(this.FrantDiv);
  3387. this.PopDiv = undefined;
  3388. },
  3389. initializedrag: function(e, oSelf) {
  3390. var we = window.event || e;
  3391. this.offsetx = we.clientX;
  3392. this.offsety = we.clientY;
  3393. this.tempx = parseInt(oSelf.style.left);
  3394. this.tempy = parseInt(oSelf.style.top);
  3395. this.dragapproved = true;
  3396. },
  3397. drag_drop: function(e, oSelf) {
  3398. if (!this.dragapproved) return;
  3399. var we = window.event || e;
  3400. oSelf.style.left = we.clientX - this.offsetx + this.tempx + "px";
  3401. oSelf.style.top = we.clientY - this.offsety + this.tempy + "px";
  3402. },
  3403. stopdrag: function() {
  3404. this.dragapproved = false;
  3405. if (this.ContentFrame) this.ContentFrame.style.display = "block";
  3406. },
  3407. create: function(strURL, iW, iH) {
  3408. if (CLODOP.PreviewBox.PopDiv) this.closeit();
  3409. var obody = document.body || document.getElementsByTagName("body")[0] || document
  3410. .documentElement;
  3411. var vBoxDiv = document.createElement("div");
  3412. obody.appendChild(vBoxDiv);
  3413. vBoxDiv.style.cssText =
  3414. "position:absolute;z-index:91100;display:block;top:2px;border:1px solid #6B97C1;font-size:13px;";
  3415. vBoxDiv.style.width = iW + "px";
  3416. var iLeft = (obody.offsetWidth - iW) / 2;
  3417. if (window.screen.width < obody.offsetWidth) iLeft = (window.screen.width - iW) / 2;
  3418. if (iLeft < 0) iLeft = 0;
  3419. vBoxDiv.style.left = iLeft + "px";
  3420. vBoxDiv.style.height = iH + "px";
  3421. vBoxDiv.onmousedown = function(event) {
  3422. CLODOP.PreviewBox.initializedrag(event, this);
  3423. };
  3424. vBoxDiv.onmouseup = function() {
  3425. CLODOP.PreviewBox.stopdrag();
  3426. };
  3427. vBoxDiv.onmousemove = function(event) {
  3428. CLODOP.PreviewBox.drag_drop(event, this);
  3429. };
  3430. this.PopDiv = vBoxDiv;
  3431. var titleDiv = document.createElement("div");
  3432. vBoxDiv.appendChild(titleDiv);
  3433. titleDiv.style.cssText =
  3434. "position:absolute;left:0px;width:100%;font: bold 14px Arial;line-height:27px;height:27px;text-indent:26px;color: white;background:#8BACCF";
  3435. titleDiv.innerHTML = "打印预览";
  3436. var icoButton = document.createElement("button");
  3437. titleDiv.appendChild(icoButton);
  3438. icoButton.style.cssText = "background:transparent url(" + CLODOP.strHostURI +
  3439. "/c_favicon.ico) no-repeat scroll 0 0px;margin-left:5px;position:absolute;height:20px;line-height:100px;width:34px;left:3px;border:0;top:5px";
  3440. var CloseButton = document.createElement("button");
  3441. titleDiv.appendChild(CloseButton);
  3442. CloseButton.style.cssText = "background:transparent url(" + CLODOP.strHostURI +
  3443. "/images/c_winclose.png) no-repeat scroll 0 0px;margin-right:5px;position:absolute;height:20px;line-height:100px;width:34px;right:3px;border:0;top:4px";
  3444. CloseButton.onclick = function() {
  3445. CLODOP.PreviewBox.closeit(this);
  3446. };
  3447. var areaDiv = document.createElement("div");
  3448. vBoxDiv.appendChild(areaDiv);
  3449. areaDiv.style.cssText = "background:#F5F5F5;color:#000;border:0px;left:0px;top:0px;";
  3450. areaDiv.style.width = iW + "px";
  3451. areaDiv.style.height = (iH - 0) + "px";
  3452. this.ContentFrame = document.createElement("iframe");
  3453. areaDiv.appendChild(this.ContentFrame);
  3454. this.ContentFrame.style.cssText = "width:100%;height:100%;";
  3455. this.ContentFrame.src = strURL;
  3456. this.ContentFrame.frameBorder = "no";
  3457. this.FrantDiv = document.createElement("div");
  3458. obody.appendChild(this.FrantDiv);
  3459. this.FrantDiv.style.cssText =
  3460. "border:0px;left:0px;top:0px;filter: alpha(opacity=20); position: fixed; opacity: 0.2; -moz-opacity: 0.2; _position: absolute;z-index:91009; over-flow: hidden;";
  3461. if (CLODOP.Browser.IE && (document.compatMode == "BackCompat" || navigator.userAgent
  3462. .indexOf(
  3463. "MSIE 6.0") > 0)) {
  3464. this.FrantDiv.style.width = obody.scrollWidth + "px";
  3465. this.FrantDiv.style.height = obody.scrollHeight + "px";
  3466. } else {
  3467. this.FrantDiv.style.width = "100%";
  3468. this.FrantDiv.style.height = "100%";
  3469. }
  3470. }
  3471. }
  3472. };
  3473. if (win.CLODOP2015_7028 && win.CLODOP2015_7028.Priority && win.CLODOP2015_7028.Priority > CLODOP.Priority) {
  3474. CLODOP = win.CLODOP2015_7028;
  3475. win.CLODOP_OK_Priority = win.CLODOP2015_7028.Priority;
  3476. return;
  3477. }
  3478. win.LODOP = CLODOP;
  3479. win.CLODOP = CLODOP;
  3480. win.CLODOP2015_7028 = CLODOP;
  3481. win.CLODOP_OK_Priority = CLODOP.Priority;
  3482. win.CLODOP.DoInit();
  3483. if (navigator.userAgent.indexOf("Lodop") < 0) win.CLODOP.OpenWebSocket();
  3484. win.getCLodop = function() {
  3485. return window.CLODOP2015_7028;
  3486. };
  3487. })(window);
  3488. function getCLodop() {
  3489. return window.CLODOP2015_7028;
  3490. }