U.Word.Panel.js 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. //此处放置iframe中的word中的功能面板,包括包括创建邀请协作人员,创建编辑历史,创建生成链接.创建热门模板。
  2. Namespace.register("U.Word.Panel");
  3. //#region 初始化区域
  4. //初始化区域
  5. //U.Word.Tool = function (UDE) {
  6. // //初始化页面
  7. // var _UDSD, _UDGD, _USM, _UW, _UDOD, _UDKD,
  8. // _UOFD, //邀请好友窗体
  9. // _UHD, //编辑历史窗体
  10. // _UDNSD, //生成链接窗体
  11. // _UHTD, //邀请好友窗体
  12. // _UDTD = $("#UD_SYQXR_Parent")[0];
  13. // if ($(_UDTD).Child().length == 0) {
  14. // _USM = U.M.GetElementInfo(_UDSD);
  15. // _UW = _USM["OW"] + 50;
  16. // }
  17. //}
  18. /**
  19. * 加载编辑区域
  20. *
  21. * @param {element}
  22. * @param {element}
  23. */
  24. U.Word.Panel.Loadeditor = function () {
  25. var _worddiv, _UDTD, _UDGD, _wordeditor, _UDKD;
  26. //$("#UD_SYQXR")[0] 是word的编辑区域,如果不存在,则创建一个。
  27. if (!$("#UD_SYQXR")[0]) {
  28. _worddiv = $("#UD_SYQXR_Parent")[0]; //包含word编辑区域的div
  29. _wordeditor = $$("div", { "id": "UD_SYQXR" }); //创建word编辑器区域
  30. _pagediv = $$("div", { "className": "U_Boom_CO_Editor_body_main_m" }, _wordeditor); //由于是多页,所以需要另外建立一个div,包含下面的头部,内容,底部
  31. _header = $$("div", { "className": "U_Boom_CO_Editor_body_main_border" }, _pagediv); //头部信息
  32. $$("div", { "className": "U_Boom_CO_Editor_body_main_bordero" }, _header); //头部的左上角
  33. $$("div", { "className": "U_Boom_CO_Editor_body_main_bordert" }, _header); //头部的右上角
  34. $$("div", { "className": "U_Boom_CO_Editor_body_main_text", contentEditable: "true", spellcheck: "false", "innerHTML": "", "id": "Txt" + Guid.newGuid() }, _pagediv); //编辑器区域
  35. _footer = $$("div", { "className": "U_Boom_CO_Editor_body_main_border" }, _pagediv);
  36. $$("div", { "className": "U_Boom_CO_Editor_body_main_borders" }, _footer);
  37. $$("div", { "className": "U_Boom_CO_Editor_body_main_borderf" }, _footer);
  38. //把编辑器区域放入窗体。
  39. U.UI.Form({
  40. min: false, max: false, close: false, draw: false, className: "UD_SYF_S",
  41. SO: _worddiv, content: _wordeditor, title: false, hst: false, bst: { "style": { "overflow": "hidden" } },
  42. style: { "backgroundColor": "transparent", "border": "0", "width": "auto", "top": "15px", "left": "30px" }
  43. });
  44. }
  45. }
  46. //
  47. //#endregion
  48. //#region 团队成员
  49. /**
  50. * 创建团队成员的窗体
  51. *
  52. * @param {element}
  53. * @param {element}
  54. */
  55. U.Word.Panel.LoadPlayUser = function (fileinfo) {
  56. var _coopwindow, _frienddiv, _example, _wordsize, _marginleft;
  57. //如果不存在团队成员窗口,则创建一个团队成员窗口。
  58. if (!$("#U_Boom_CO_Editor_body_left_invite_user")[0]) {
  59. _wordsize = U.M.GetElementInfo($("#UD_SYQXR")[0]); //获取编辑器域的父亲。用于获取长度大小,用于定位
  60. _marginleft = _wordsize["OW"] + 50; //团队窗口的位置间距编辑器50像素
  61. //创建邀请协助人员窗口
  62. _coopwindow = $("#U_Boom_CO_Editor_body_left")[0];
  63. _frienddiv = $$("div", { "className": "U_Boom_CO_Editor_body_left_invite_user", "id": "U_Boom_CO_Editor_body_left_invite_user" }); //好友内容区域
  64. _example = $$("div", { "className": "U_Boom_CO_Editor_body_left_invite_user_a", "onclick": [[U.Word.Panel.DisplayInsertUser, []]] }, _frienddiv); //默认邀请按钮
  65. $$("div", { "className": "U_Boom_CO_Editor_body_left_invite_user_a_img" }, _example);
  66. $$("div", { "className": "U_Boom_CO_Editor_body_left_invite_user_a_div", "innerHTML": "邀请" }, _example);
  67. U.UI.Form({
  68. min: false, max: false, draw: false,
  69. SO: _coopwindow, content: _frienddiv, title: "<div class='UD_SYF_STI'>邀请协作人员</div>", className: "UD_SYF_S",
  70. hst: { style: { "padding": "0" }, "className": "U_Boom_CO_Editor_body_left_invite_name" },
  71. style: { "border": "1px #d6dff0 solid", "position": "absolute", "width": "300px", "height": "250px", "top": "25px", "left": _marginleft + "px" }
  72. });
  73. }
  74. U.Word.Panel.DisPlayUser(fileinfo); //获取协作人员
  75. }
  76. /**
  77. * 初始化查看团队成员
  78. *
  79. * @param {element} 换页元素
  80. */
  81. U.Word.Panel.DisPlayUser = function (UDE, UDOD) {
  82. UDOD = UDOD || $("#U_Boom_CO_Editor_body_left_invite_user")[0];
  83. var HYD = UDOD.children[0];
  84. UDOD.innerHTML = ""
  85. $(UDOD).append(HYD);
  86. if (UDE) {
  87. var UGF = _$(US.Friend[3]).Select({ "GroupManageID": UDE.UserDirectoryEncrypt || UDE.GroupID });
  88. for (i = 0; i < UGF.length; i++) {
  89. _UDOD = $$("div", { "className": "U_Boom_CO_Editor_body_left_invite_user_a" }, UDOD);
  90. _UDTD = $$("div", { "className": "U_Boom_CO_Editor_body_left_invite_user_a_img", "style": { "background": "" } }, _UDOD);
  91. $$("img", { "src": U.M.GetImgU(UGF[i].UserThumbnailImageHead) }, _UDTD);
  92. $$("div", { "className": "U_Boom_CO_Editor_body_left_invite_user_a_div", "innerHTML": UGF[i].UserNickName }, _UDOD);
  93. }
  94. }
  95. }
  96. /**
  97. * 判断是否是已经新建过 弹出添加成员 异步回调
  98. *
  99. * @param {element} Wrod信息数组
  100. */
  101. U.Word.Panel.DisplayInsertUser = function () {
  102. var _UGE = U.Word.TF, //object参数值
  103. _userid = _UGE["userid"],
  104. _UFID = _UGE["ID"],
  105. _UET = _UGE["fileinfo"];
  106. if (_UET && _UET.UserDirectoryID) { //是否为自己的文档
  107. //文件实体
  108. var _UQID = _UET.UserDirectoryEncrypt || _UET.GroupID; //_UQID群id
  109. if (_UQID == US.userInfo.userid) { _UQID = ""; }
  110. top.U.F.J.ChanCAD(_UQID)
  111. top.U.F.J.SelectFriendForm(U.M.apply(this, [[top.U.F.J.CXNEWTJ,
  112. [_UQID, _UET.UserDirectoryName || _UET.UserFilesName, "由文档" + (_UET.UserDirectoryName || _UET.UserFilesName) + "发起的互联办公群组。", _UFID, U.M.apply(null, [[U.Word.Panel.InsertUser, [_UET]]])]]])
  113. ); //调用创建群的弹窗函数
  114. //top.U.F.J.CXNEWTJ, [[U.Word.Panel.InsertUser, ([$("#U_Boom_CO_Editor_body_left_invite_user")[0], _UET], _UET.UserDirectoryName
  115. }
  116. else { //不是自己的文档
  117. U.Word.Save();
  118. }
  119. }
  120. /**
  121. * 添加团队成员
  122. *
  123. * @param {element} 换页元素
  124. */
  125. U.Word.Panel.InsertUser = function (UET, GroupID, _FriendUser, groupid, _UGN) {
  126. //找到硬盘复制粘贴的函数, 先调用复制然后调用粘贴
  127. //top.U.Dk.RE.WPFZ(UET, "Copy")
  128. //top.U.Dk.RE.UFStick(GroupID, function () { //粘贴回调
  129. //}, UET.UserId);
  130. if (!(UET.UserDirectoryEncrypt && UET.UserId != UET.UserDirectoryEncrypt)) { //如果是新创建的文件,同时文件不在群里 就把文件拷贝到群里进行处理
  131. /*
  132. //用户id 群id 文件id 群id 判断
  133. U.A.Request(US.Auth,"UseStudioDisk.CopyAndPasteFiles", [US.userInfo.userid, GroupID.GroupManageID, UET.UserFilesID || UET.UserDirectoryID, GroupID.GroupManageID, 1], function (r) {
  134. //重新打开
  135. U.D.Office.Word();
  136. }, []);
  137. */
  138. //用户id 、 目录id(群id) 、 文件id、 群id 、 文件名
  139. top.U.A.Request(US.Auth, ["CutAndPasteFiles", GroupID.GroupManageID, UET.UserFilesID || UET.UserDirectoryID, "", GroupID.GroupManageID]), top.U.Dk.RE.AsynUFStick, ["", GroupID.GroupManageID, [UET], [UET], U.M.apply(null, [[U.Word.Panel.AsynInsertUser, [UET, _FriendUser, groupid]]]), US.userInfo.userid, GroupID.GroupManageID, "Cut", UET.UserDirectoryParentID];
  140. }
  141. //把所有添加进来的好友打印在office窗体里
  142. // U.Word.Panel.DisPlayUser(UET)
  143. /*
  144. if (UET[1].UserDirectoryEncrypt) { //判断文件是否已经是群文件
  145. }
  146. else { //如果不是群文件,把当前uw文件复制到群里
  147. // var _UME = top.U.Dk.RE, _UCE = top.U.Dk.HP.MLWJSY(UET), _UGE = top.U.Dk.DiskOperatingSwitch(US.userInfo.userid);
  148. // U.A.Request(US.Auth,"UseStudioDisk.CopyFile", [US.userInfo.userid, UGID, UET[1]["UserDirectoryID"], US.userInfo.userid, (_UCE[2].length ? _UME.UEI[0][0].UserDirectoryDeep : "")]), top.U.Dk.RE.AsynUFStick, ["", UGID, [UET[1]], _UCE[1], null, _UGE[1][2], UGID, "Copy", UGID];
  149. }
  150. */
  151. }
  152. /**
  153. * 异步添加好友
  154. *
  155. * @param {element} 换页元素
  156. */
  157. U.Word.Panel.AsynInsertUser = function (UET, _FriendUser, groupid, arr) {
  158. //弹出窗体
  159. //console.log(arr);
  160. //top.U.D.DT.YYDK("Word", [US.userInfo, , arr[0]]);
  161. //U.Alert("邀请成功");
  162. U.Word.Panel.DisPlayUser(UET)
  163. top.U.A.Request(US.CD, [US.DB, "UseStudio_Friends", "SentMessageToFriend", US.userInfo.userid, _FriendUser, US.userInfo.UserNickName || US.userInfo.username, '' + groupid + ',' + arr[0].UserDirectoryName + ',' + UET.UserDirectoryModifyTime + ',' + arr[0].UserDirectoryID + ',' + UET.UserDirectoryName + '.UW', 5, false], U.M.apply(), [""]);
  164. /*
  165. var i, _UDTD,
  166. context = r.context,
  167. _UDOD = context[1],
  168. _UOE = context[2],
  169. _UDE = context[3],
  170. _UDFD = $$("frag");
  171. r = r.value;
  172. if (r > -1) {
  173. for (i = 0; UDE.length; i++) {
  174. _UDTD = $$("div", { "className": "U_Boom_CO_Editor_body_left_invite_user_a" }, _UDFD);
  175. $$("div", { "className": "U_Boom_CO_Editor_body_left_invite_user_a_img" }, _UDTD);
  176. $$("div", { "className": "U_Boom_CO_Editor_body_left_invite_user_a_div", "innerHTML": "邀请" }, _UDTD);
  177. }
  178. $(UDOD).append(_UDFD);
  179. U.Alert("添加成功");
  180. }
  181. */
  182. }
  183. //#endregion
  184. //#region 热门模板
  185. /**
  186. * 创建历史记录窗体
  187. *
  188. * @param {element} 换页元素
  189. */
  190. U.Word.Panel.LoadHotTemplates = function (fileinfo) {
  191. var _UDTD, _UDOD, _USM, _UW;
  192. if (!$("#U_Boom_CO_Editor_body_left_template_hot")[0]) {
  193. _UDTD = $("#U_Boom_CO_Editor_body_left")[0];
  194. _USM = U.M.GetElementInfo($("#UD_SYQXR")[0]);
  195. _UW = _USM["OW"] + 50;
  196. //热门模板提供
  197. _UDOD = $$("div", { "className": "U_Boom_CO_Editor_body_left_template_user", id: "U_Boom_CO_Editor_body_left_template_hot" });
  198. U.UI.Form({
  199. min: false, max: false, draw: false, SO: _UDTD,
  200. content: _UDOD, title: "<div class='UD_SYF_STI'>热门模板提供</div>", className: "UD_SYF_S",
  201. hst: { style: { "padding": "0" }, "className": "U_Boom_CO_Editor_body_left_invite_name" },
  202. style: { "border": "1px #d6dff0 solid", "width": "300px", "height": "270px", "position": "absolute", "top": "840px", "left": _UW + "px" }
  203. });
  204. }
  205. U.Word.Panel.GetHotTemplates("00000000-0000-0000-0000-000000000000", 1, 10); //热门模板
  206. }
  207. /**
  208. * 初始化加载模板
  209. *
  210. * @param {element} 换页元素
  211. */
  212. U.Word.Panel.GetHotTemplates = function (UDID, S, E, UDOD) {
  213. UDOD = UDOD || $("#U_Boom_CO_Editor_body_left_template_hot")[0];
  214. U.A.Request(US.CD, [US.DB, "UseStudio_Office", "SelectHotTemplate", UDID, S, E], U.Word.Panel.AsynGetHotTemplates, [null, UDOD]);
  215. }
  216. /**
  217. * 获取热门模板
  218. *
  219. * @param {element} 换页元素
  220. */
  221. U.Word.Panel.AsynGetHotTemplates = function (r) {
  222. var i, _UDOD,
  223. _UDFD = $$("frag"),
  224. context = r.context,
  225. r = r.value;
  226. context[1].innerHTML = "";
  227. for (i = 0; i < r.length; i++) {
  228. _UDOD = $$("div", { "className": "U_Boom_CO_Editor_body_left_template_user_m", "onclick": [[U.Word.Panel.OpenHotTemplates, [r[i].TemplateId]]] }, _UDFD);
  229. $$("div", { "className": "U_Boom_CO_Editor_body_left_template_user_m_s", "style": { "background-image": "url(" + (r[i].UseFilesServerThumbnailName || "/Boomyun/img/pc/NImg.png") + ")" } }, _UDOD);
  230. $$("div", { "className": "U_Boom_CO_Editor_body_left_template_user_m_x", "innerHTML": r[i]["UserFilesName"] }, _UDOD);
  231. }
  232. $(context[1]).append(_UDFD);
  233. }
  234. /**
  235. * 点击模板处理
  236. * @参数:模板分类id
  237. * @param {element} 换页元素
  238. */
  239. U.Word.Panel.OpenHotTemplates = function (ArrTD) {
  240. top.U.Boom.I.GetHomeTemp.particulars(ArrTD);
  241. }
  242. //#endregion
  243. //#region 链接查看
  244. /**
  245. * 查看链接
  246. *
  247. * @param {element}
  248. */
  249. U.Word.Panel.Loadlink = function (fileinfo) {
  250. var _rightwindow, _linkdiv, _wordsize, _marginleft;
  251. //如果不存在添加链接区域,则创建。
  252. if (!$("#U_Boom_CO_Editor_body_left_href_pay_a")[0]) {
  253. //右侧功能区域,链接区域要追加到这里
  254. _rightwindow = $("#U_Boom_CO_Editor_body_left")[0];
  255. _wordsize = U.M.GetElementInfo($("#UD_SYQXR")[0]);
  256. _marginleft = _wordsize["OW"] + 50;
  257. //生成链接
  258. _linkdiv = $$("div", { "className": "U_Boom_CO_Editor_body_left_href_pay_a", id: "U_Boom_CO_Editor_body_left_href_pay_a", "innerHTML": "将此站点生成链接", "onclick": [[U.Word.Panel.SetDNS]] });
  259. U.UI.Form({
  260. min: false, max: false, draw: false, SO: _rightwindow,
  261. content: _linkdiv, title: "<div class='UD_SYF_STI'>生成链接</div>", className: "UD_SYF_S",
  262. hst: { style: { "padding": "0" }, "className": "U_Boom_CO_Editor_body_left_invite_name" },
  263. style: { "border": "1px #d6dff0 solid", "position": "absolute", "width": "300px", "height": "250px", "top": "570px", "left": _marginleft + "px" }
  264. });
  265. }
  266. // U.Word.Panel.Getlink(fileinfo.UserDirectoryID);
  267. }
  268. /**
  269. * 查看链接
  270. *
  271. * @param {element} 换页元素
  272. */
  273. U.Word.Panel.Getlink = function (UDID, UDOD) {
  274. UDOD = UDOD || $("#U_Boom_CO_Editor_body_left_href_pay_a")[0];
  275. U.A.Request(US.CD, [US.DB, "UseStudio_Office", "SelectHotTemplate", UDID, UOID, US, UE], U.Word.Panel.AsynGetlink, [null, UDOD]);
  276. }
  277. /**
  278. * 查看链接异步
  279. *
  280. * @param {element} 换页元素
  281. */
  282. U.Word.Panel.AsynGetlink = function (r) {
  283. var context = r.context;
  284. r.value;
  285. if (r) {
  286. context[1].innerHTML = r;
  287. }
  288. }
  289. U.Word.Panel.SetDNS = function () {
  290. var _UGE = U.Word.TF, //object参数值
  291. _UFID = _UGE.ID, //用户ID
  292. _USID = _UGE.userid, //文件ID
  293. _UFNM = _UGE.fileinfo.UserDirectoryName, //文件信息
  294. _USNM = _UGE.fileinfo.UserNickName
  295. if (_UFID) {
  296. var _UDOD = $$("div", { "class": "U_Boom_CO_Popup_18" }),
  297. _UDNA, _UDFX, SFPT, _UDSD = $$("div", { "class": "U_Boom_CO_Popup_18_Set" }, _UDOD),
  298. _UDQCD, _UDQBD, _UDBG, _UDQD = $$("div", { "class": "U_Boom_CO_Popup_18_Que" }, _UDOD);
  299. //设置
  300. $$("div", { "class": "U_Boom_CO_Popup_18_Set_Tag", "innerHTML": "目前默认域名" }, _UDSD), //<span>设置个性域名,让好友同事更快记住链接</span>
  301. _UDNA = $$("div", { "class": "U_Boom_CO_Popup_18_Set_Name", "innerHTML": "等待域名生成" }, _UDSD),
  302. //_UDSBD = $$("div", { "class": "U_Boom_CO_Popup_18_Btn" }, _UDSD),
  303. //设置成功
  304. //_UDRT = $$("div", { "class": "U_Boom_CO_Popup_18_Que_Right", "style": { "display": "none"} }, _UDQD);
  305. //$$("div", { "class": "U_Boom_CO_Popup_18_Que_Tag", "innerHTML": "设置成功" }, _UDRT);
  306. //_UDUR = $$("input", { "type": "text", "class": "U_Boom_CO_Popup_18_Que_Url" }, _UDRT);
  307. //二维码
  308. _UDQCD = $$("div", { "class": "U_Boom_CO_Popup_18_Que_Code" }, _UDQD);
  309. _UDBG = $$("div", { "class": "U_Boom_CO_Popup_18_Que_QR" }, _UDQCD);
  310. _UDFX = $$("div", { "class": "U_Boom_CO_Popup_18_Que_Con", "innerHTML": "扫一扫 </br> 分享此文档给好友</br></br>第三方平台分享" }, _UDQCD);
  311. //$$("div", { "class": "U_Boom_CO_Popup_18_Que_Con", "innerHTML": "第三方平台分享", "style": { "line-height": "0px", "margin-left": "10px"} }, _UDQCD);
  312. //第三方平台
  313. SFPT = $$("div", { "class": "U_Boom_CO_Popup_18_Sanfang" }, _UDFX);
  314. $$("div", { "class": "U_Boom_CO_Popup_18_Sanfang_Weibo", "onclick": [[U.Word.Panel.Weibo, [_UDNA, _UFNM, _USNM]]] }, SFPT);
  315. $$("div", { "class": "U_Boom_CO_Popup_18_Sanfang_Kongjian", "onclick": [[U.Word.Panel.Kongjian, [_UDNA, _UFNM, _USNM]]] }, SFPT)
  316. //域名管理中心
  317. //_UDYM = $$("div", { "class": "U_Boom_CO_Popup_18_Set_Yu" }, _UDOD);
  318. //$$("div", { "class": "U_Boom_CO_Popup_18_Set_Yu_Text", "innerHTML": "对域名不满意?" }, _UDYM),
  319. //$$("div", { "class": "U_Boom_CO_Popup_18_Set_Yu_Ming", "innerHTML": "域名管理中心", "onclick": [[U.Word.Panel.Yuming]] }, _UDYM),
  320. _UDQBD = $$("div", { "class": "U_Boom_CO_Popup_18_Btn" }, _UDQD);
  321. //$$("div", { "innerHTML": "取消", "onclick": [[U.Word.Panel.Close, [_UDOD]]] }, _UDSBD),
  322. //$$("div", { "innerHTML": "设置", "onclick": [[U.Word.Panel.QDSZ, [_UDRT, _UDSD, _UDUR, _UDNA, _UDQBD]]] }, _UDSBD),
  323. $$("div", { "innerHTML": "取消", "onclick": [[U.Word.Panel.Close, [_UDOD]]] }, _UDQBD);
  324. //$$("div", { "innerHTML": "生成二维码", "onclick": [[U.Word.Panel.CodeSet, [_UDUR, _UDBG, _UDQCD]]] }, _UDQBD);
  325. $$("div", { "innerHTML": "到域名管理中心设置", "onclick": [[U.Word.Panel.Yuming]], "style": { /*"background-color": "#169bd5", "color": "#fff",*/"width": "135px", "cursor": "pointer" } }, _UDQBD);
  326. top.U.UI.From({ min: false, max: false, id: "U_Boom_CO_Popup_18", style: { "width": "370px", "height": "auto" }, content: _UDOD, title: "提示", hst: {}, bst: {} });
  327. U.Word.Panel.eaDomain(0, 1, _UFID, _UDNA, _UDSD, _UDNA, _UDQBD, _USID, _UFNM, _UDBG, _UDQCD);
  328. //U.Word.Panel.Close();
  329. } else {
  330. U.Word.Save();
  331. }
  332. }
  333. /*
  334. * @作用:确定申请域名
  335. * @参数一:文件ID
  336. * @参数二:域名生成内容
  337. * @参数三:设置成功内容
  338. * @参数四:设置的总体盒子
  339. * @参数五:域名内容
  340. * @参数六:域名生成内容
  341. * @参数七:域名管理中心
  342. * @参数七:复制二维码按钮
  343. * @参数八:用户ID
  344. * @参数九:文件名
  345. */
  346. U.Word.Panel.eaDomain = function (i, j, UDID, UDOD, _UDSD, _UDNA, _UDQBD, _USID, _UFNM, _UDBG, _UDQCD) {
  347. var fid = UDID; //获取文件ID
  348. var fname = _UFNM; //获取文件名
  349. var UserID = _USID; //获取用户ID
  350. var d = new Date(); //获取当前系统时间
  351. d.setMonth(d.getMonth() + 1); //月数+1
  352. var yy1 = d.getFullYear(); //获取年份
  353. var mm1 = d.getMonth() + 1; //因为getMonth()返回值是 0(一月) 到 11(十二月) 之间的一个整数。所以要给其加1
  354. var dd1 = d.getDate(); //获取哪一天
  355. if (mm1 < 10) {
  356. mm1 = '0' + mm1;
  357. }
  358. if (dd1 < 10) {
  359. dd1 = '0' + dd1;
  360. }
  361. var ExTime = yy1 + '-' + mm1 + '-' + dd1; //时间组合 年-月-日
  362. var val; //定义变量
  363. for (; i < j; i++) {
  364. val = i.toString(36); //转36进制
  365. _UDNA.value = "100" + val + ".1473.cn"; //域名生成规则
  366. //查询数据库,域名表是否有这个域名的存在
  367. //"1000" + val + '.1473.cn':域名
  368. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", "DNS_SelectRecommend", "100" + val + '.1473.cn'], function (r) {
  369. //如果有就重新执行函数,进行+1自增数查询
  370. if (r.value[0]) {
  371. for (var i = 0; i < 1; i++) {
  372. //判断生成的域名是否存在数据库
  373. if (_UDNA.value == r.value[0].result) {
  374. var res = (_UDNA.value.split('.')[0].substring(3)).toString(10); //截取最后面的一位数,进行自增
  375. U.Word.Panel.eaDomain(parseInt(res, 36) + 1, parseInt(res, 36) + 2, UDID, UDOD, _UDSD, _UDNA, _UDQBD, _USID, _UFNM, _UDBG, _UDQCD)//重新执行函数
  376. }
  377. }
  378. } else {
  379. //fid:文件id
  380. //查询数据库,域名表是否有这个文件,查看该文件是否存在域名
  381. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", 'GetDnsInfoByFileId', fid], function (r) {
  382. if (r.value.length == 0) {
  383. //fid:文件id fname:文件名 .com:域名类型 ExTime:到期时间 0:类别 _UDUR.value:域名内容 UserID:用户ID 1:是否需要跳转页面展示内容
  384. //插入域名到数据库
  385. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", 'DNS_InsertDnsInformation', fid, fname, '.' + 'cn', ExTime, '0', _UDNA.value, UserID, "1"], function (r) {
  386. //fid:文件ID
  387. //查询域名是否存在
  388. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", 'GetDnsInfoByFileId', fid], function (r) {
  389. _UDNA.innerHTML = r.value[0].Domain; //显示域名至HTML页面
  390. });
  391. });
  392. } else {
  393. // _UDRT.style.display = "block"; //设置成功的页面显示
  394. // _UDSD.style.display = "none"; //点击设置页面隐藏
  395. // _UDQBD.style.display = "block"; //复制生成等按钮显示
  396. // _UDYM.style.display = "block"; //域名管理中心显示
  397. // _UDUR.value = r.value[0].Domain; //获取域名生成内容
  398. _UDNA.innerHTML = r.value[0].Domain;
  399. }
  400. //长 - 宽 - 二维码颜色 - 背景颜色 - 输入的文字或者URL - 生成到的地方
  401. top.U.QR.Code.generate("117", "122", "black", "white", $(_UDNA)[0].innerHTML, $(_UDBG)[0]);
  402. });
  403. }
  404. });
  405. }
  406. }
  407. //域名生成二维码
  408. //U.Word.Panel.CodeSet = function (_UDUR, _UDBG, _UDQCD) {
  409. // //长 - 宽 - 二维码颜色 - 背景颜色 - 输入的文字或者URL - 生成到的地方
  410. // top.U.QR.Code.generate("180", "180", "black", "white", $(_UDUR)[0].value, $(_UDBG)[0]);
  411. // _UDQCD.style.display = "block"; //二维码显示
  412. //}
  413. //域名复制链接分享
  414. /*U.Word.CopySet = function (_UDUR) {
  415. // $(_UDUR)[0].select();
  416. //_UDUR.select();
  417. top.$(".U_Boom_CO_Popup_18_Que_Url")[0].select();
  418. return document.execCommand('copy');
  419. U.Alert("复制成功");
  420. }*/
  421. //申请域名异步
  422. /*U.Word.AsyneaDomain = function (r) {
  423. var context = r.context, _UDID = context[1], _UDOD = context[2]; r = r.value;
  424. if (r[0]) {
  425. $(_UDOD).addAttrArray({ "innerHTML": "http://" + r[0].UserDomain + ".boomyun.com", style: { cursor: "pointer" }, title: "点击跳转", "onclick": U.M.apply(null, "window.open('" + "http://" + r[0].UserDomain + ".boomyun.com" + "')") });
  426. }
  427. else { U.Alert("你建站超过指定次数请您重新建立。"); }
  428. }*/
  429. /**
  430. * 确定设置按钮
  431. *
  432. * @param {element} 换页元素
  433. * @参数一:设置成功内容
  434. * @参数二:设置的总体盒子
  435. * @参数三:域名内容
  436. * @参数四:域名生成内容
  437. * @参数五:复制二维码按钮
  438. */
  439. //U.Word.Panel.QDSZ = function (_UDRT, _UDSD, _UDUR, _UDNA, _UDQBD) {
  440. // _UDRT.style.display = "block";
  441. // _UDSD.style.display = "none";
  442. // _UDQBD.style.display = "block";
  443. // _UDUR.innerHTML = _UDNA.innerHTML; //显示域名内容
  444. //}
  445. /**
  446. * 创建链接分享
  447. *
  448. * @param {element} 换页元素
  449. */
  450. U.Word.Panel.Createlink = function (UDE, UDOD) {
  451. //#error 不要
  452. U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "UD_I_AddDns", UDE.UserFileId, US.userInfo.userid, 1], U.Word.Panel.AsynCreatelink, [null, UDOD]);
  453. }
  454. /**
  455. * 创建链接分享
  456. *
  457. * @param {element} 换页元素
  458. */
  459. U.Word.Panel.AsynCreatelink = function (r) {
  460. var context = r.context;
  461. r.value;
  462. if (r) {
  463. context[1].innerHTML = r.UserDomain + ".1473.cn";
  464. }
  465. }
  466. /**
  467. * 关闭弹窗
  468. *
  469. * @param {element} 换页元素
  470. */
  471. //U.Word.Panel.Close = function () {
  472. // var UserID = U.Word.TF.ID;
  473. // var iframeID = "UD_Word"+UserID;
  474. //
  475. //}
  476. //点击弹出域名管理系统
  477. U.Word.Panel.Yuming = function () {
  478. if (!top.$("#U_Boom_Y_B_Manage_Pop")[0]) {
  479. top.U.Yuming.MC.StateBox(U.Word.TF["fileinfo"].UserallDirectoryName);
  480. top.U.D.SetDTop(top.$("#U_Boom_Y_B_Manage_Pop")[0]);
  481. } else {
  482. top.$("#U_Boom_Y_B_Manage_Pop")[0].style.display = "block";
  483. top.U.D.SetDTop(top.$("#U_Boom_Y_B_Manage_Pop")[0]);
  484. }
  485. }
  486. //微博分享
  487. U.Word.Panel.Weibo = function (_UDNA, _UFNM, _USNM) {
  488. var WBtitle = "这个文档超赞的,赶快分享给大家吧!【" + _USNM + "——(分享自-互联办公)】";
  489. var sharesinastring = 'http://v.t.sina.com.cn/share/share.php?title=' + WBtitle + '&url=' + _UDNA.innerHTML + '&content=utf-8&sourceUrl=' + _UDNA.innerHTML;
  490. window.open(sharesinastring, 'newwindow', 'height=500,width=800,top=300,left=300');
  491. }
  492. //QQ空间分享
  493. U.Word.Panel.Kongjian = function (_UDNA, _UFNM, _USNM) {
  494. var KJtitle = "分享是种乐趣,所以让我们成为传播乐趣的人吧!【" + _USNM + "——(分享自-互联办公)】";
  495. var shareqqzonestring = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?summary=' + _UFNM + '&title=' + KJtitle + '&url=' + _UDNA.innerHTML;
  496. window.open(shareqqzonestring, 'newwindow', 'height=500,width=800,top=300,left=300');
  497. }
  498. //#endregion
  499. //#region 历史记录
  500. /**
  501. * 初始化加载模板
  502. *
  503. * @param
  504. */
  505. U.Word.Panel.LoadOfficeHistory = function (fileinfo) {
  506. var _UDOD, _UDTD, _USM, _UW;
  507. if (!$("#U_Boom_CO_Editor_body_left_invite_history")[0]) {
  508. _UDTD = $("#U_Boom_CO_Editor_body_left")[0];
  509. _USM = U.M.GetElementInfo($("#UD_SYQXR")[0]);
  510. _UW = _USM["OW"] + 50;
  511. //编辑历史
  512. _UDOD = $$("div", { "className": "U_Boom_CO_Editor_body_left_invite_user", "id": "U_Boom_CO_Editor_body_left_invite_history" });
  513. U.UI.Form({
  514. min: false, max: false, draw: false, SO: _UDTD,
  515. content: _UDOD, title: "<div class='UD_SYF_STI'>编辑历史</div>", className: "UD_SYF_S",
  516. hst: { style: { "padding": "0" }, "className": "U_Boom_CO_Editor_body_left_invite_name" },
  517. bst: {},
  518. style: {
  519. "width": "300px", "height": "250px", "position": "absolute", "top": "300px", "left": _UW + "px", "border-radius": "0px",
  520. "border": "1px #d6dff0 solid"
  521. }
  522. });
  523. }
  524. if (fileinfo) {
  525. U.Word.Panel.ViewEditHistory(fileinfo.UserDirectoryID, U.Word.TF.historyid, 1, 10); //历史记录
  526. } else {
  527. $$("div", { "innerHTML": "暂无历史", "style": { "text-align": "center", "margin-top": "50px" } }, _UDOD);
  528. }
  529. }
  530. /**
  531. * 插入历史
  532. *
  533. * @param {element} 换页元素
  534. */
  535. U.Word.Panel.InsertOfficeHistory = function (UFID, userid, UTH) {
  536. var UHID = Guid.newGuid();
  537. U.A.Request(US.CD, [US.DB, "UseStudio_Office", "InsertDocumentModifyRecord", UHID, userid, UTH.escapeQuotes(), UFID]), U.M.apply(), [];
  538. }
  539. /**
  540. * 查看编辑历史
  541. *
  542. * @param {element} 换页元素
  543. */
  544. U.Word.Panel.ViewEditHistory = function (UDID, UOID, S, E, UDOD) {//创始人id 文件id 空的id 选取开始 选取长度 获取编辑历史的框
  545. // setInterval(function () {
  546. UDOD = UDOD || $("#U_Boom_CO_Editor_body_left_invite_history")[0];
  547. U.A.Request(US.CD, [US.DB, "UseStudio_Office", "SelectOfficeHistory", UDID, UOID, S, E], U.Word.Panel.AsynViewEditHistory, [null, UDOD]);
  548. // }, 1000)
  549. }
  550. /**
  551. * 查看编辑历史异步
  552. *
  553. * @param {element} 换页元素
  554. */
  555. U.Word.Panel.AsynViewEditHistory = function (r) {
  556. var _UDOD, _UDTD, _UDSD, _UDFDC,
  557. context = r.context,
  558. _UDE = r.value,
  559. _UDFD = $(context[1]);
  560. if (_UDE.length == 0 && !$("#U_Boom_CO_Editor_History_N")[0]) {//如果UDE不存在值则显示暂无历史
  561. $$("div", { "innerHTML": "暂无历史", "id": "U_Boom_CO_Editor_History_N", "style": { "text-align": "center", "margin-top": "50px" } }, _UDFD[0]);
  562. }
  563. //大概意思是 将最新一条的historyid设为一个值 ,如果获取最新的一条数据的historyid与一个值不一样则获取这条数据 如果相等则不获取
  564. else if (U.Word.TF.historyid != _UDE[0].HistoryId && U.Word.TF.historyid != "00000000-0000-0000-0000-000000000000") {
  565. if (_UDE) { $("#U_Boom_CO_Editor_History_N")[0] && $("#U_Boom_CO_Editor_History_N").remove(); } //第一次保存后 删除"暂无历史"文字
  566. var _UDOD = document.createElement("div");
  567. _UDOD.className = "U_Boom_CO_Editor_body_right_user_o";
  568. _UDOD.id = _UDE[0].FileId;
  569. $(context[1])[0].insertBefore(_UDOD, $(context[1])[0].childNodes[0]);
  570. // _UDOD = $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o", "id": _UDE[0].FileId }, _UDFD[0]);
  571. _UDTD = $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_l" }, _UDOD);
  572. $$("img", { "src": U.M.GetImgU(_UDE[0].UseFilesServerThumbnailName) }, _UDTD);
  573. _UDTD = $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r" }, _UDOD);
  574. _UDSD = $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r_s" }, _UDTD);
  575. $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r_s_l", "innerHTML": _UDE[0].UserNickName || _UDE[0].UserName }, _UDSD);
  576. $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r_s_r", "innerHTML": U.MT.getDateInterval(_UDE[0].CreateTime, "String") + "保存更新" }, _UDSD);
  577. _UDSD = $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r_x" }, _UDTD);
  578. (_UDE[0].UserId != US.userInfo.userid) && $$("div", { "innerHTML": "对话", "style": { "margin-right": "10px" }, "onclick": [[]] }, _UDSD);
  579. $$("div", { "innerHTML": "详情", "onclick": [[U.Word.Panel.EditHistory, [_UDE[0]]]] }, _UDSD);
  580. U.Word.TF.historyid = _UDE[0].HistoryId; //记录此条历史记录为最新U.Word.TF.historyid
  581. }
  582. else {//加载编辑历史数据
  583. if (_UDE) { $("#U_Boom_CO_Editor_History_N")[0] && $("#U_Boom_CO_Editor_History_N").remove(); } //第一次保存后 删除"暂无历史"文字
  584. for (a = 0; a < _UDE.length; a++) {//获取历史记录数据的长度
  585. _UDOD = $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o", "id": _UDE[a].FileId }, _UDFD[0]);
  586. _UDTD = $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_l" }, _UDOD);
  587. $$("img", { "src": U.M.GetImgU(_UDE[a].UseFilesServerThumbnailName) }, _UDTD);
  588. _UDTD = $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r" }, _UDOD);
  589. _UDSD = $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r_s" }, _UDTD);
  590. $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r_s_l", "innerHTML": _UDE[a].UserNickName || _UDE[a].UserName }, _UDSD);
  591. $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r_s_r", "innerHTML": U.MT.getDateInterval(_UDE[a].CreateTime, "String") + "保存更新" }, _UDSD);
  592. _UDSD = $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r_x" }, _UDTD);
  593. (_UDE[a].UserId != US.userInfo.userid) && $$("div", { "innerHTML": "对话", "style": { "margin-right": "10px" }, "onclick": [[]] }, _UDSD);
  594. $$("div", { "innerHTML": "详情", "onclick": [[U.Word.Panel.EditHistory, [_UDE[a]]]] }, _UDSD);
  595. U.Word.TF.historyid = _UDE[0].HistoryId;
  596. }
  597. _UDSA = _UDFD[0].parentNode.parentNode;
  598. _UDFD[0].parentNode.style.height = "190px"
  599. divall = $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r_all" }, _UDSA);
  600. $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r_all_a", "innerHTML": "显示全部", "onclick": [U.Word.Panel.EditHistoryonc] }, divall);
  601. if (_UDE.length == 1 && (_UDFDC = _UDFD.Child()).length > 0) { _UDFD.append(_UDFDC[_UDFDC.length - 1], "", _UDSD[0]); }
  602. //记录最新历史记录的id
  603. //U.Word.TF.historyid = _UDE[0].HistoryId;
  604. //U.Word.TF.historyid = _UDE[_UDE.length - 1].HistoryId; //获取历史记录的历史id
  605. }
  606. }
  607. /**
  608. * 编辑历史弹出全部
  609. *
  610. */
  611. U.Word.Panel.EditHistoryc = function (UDE) {//此参数为历史记录的信息
  612. var _UDOD = $$("div"),
  613. _UCT = top.U.UI.Form({
  614. content: _UDOD, bst: { "style": { "overflow": "auto" } },
  615. "style": { "width": "950px", "height": "550px", "overflow": "hidden" },
  616. title: "历史记录", id: "Bjlsall", draw: false, max: false, min: false
  617. });
  618. var i, _UDBD, _UDTD, _UDSD;
  619. for (var a = 0; a < UDE.length; a++) {//循环历史记录的长度 用来显示多个历史记录在"显示按钮"的打开的窗体上
  620. _UDBD = $$("div", { "className": "U_Boom_Forms_Other_EditHistory_Container_all", "id": UDE[a].HistoryId + "-" + a }, _UDOD);
  621. _UDTD = $$("div", { "className": "U_Boom_Forms_Other_EditHistory_Container_Head" }, _UDBD);
  622. _UDBB = $$("div", { "className": "U_Boom_CO_Editor_body_btn", "innerHTML": "展开", "onclick": U.Word.Panel.btn }, _UDBD);
  623. $$("div", { "className": "U_Boom_CO_Editor_body_btn_img1" }, _UDBB);
  624. $$("img", { "src": U.M.GetImgU(UDE[a].UserThumbnailImageHead), "onerror": U.M.ImgError, "alt": UDE[a].UserName, "title": UDE[a].UserName }, _UDTD);
  625. $$("div", { "innerHTML": (UDE[a].UserNickName) + " " + U.MT.getDateInterval(UDE[a].CreateTime) + " 更改了以下内容" }, _UDTD);
  626. $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r_all_nr", "innerHTML": UDE[a].OfficeContent }, _UDTD);
  627. }
  628. }
  629. /**
  630. * 点击显示全部
  631. *
  632. */
  633. U.Word.Panel.EditHistoryonc = function () {
  634. var _wordinfo = U.Word.TF; //word全局变量 包含了uw文件的文件信息 等
  635. var _fileinfo = _wordinfo["fileinfo"]; //uw文件的文件信息
  636. var _fileid = _fileinfo.UserDirectoryID;
  637. var UDOD = $("#U_Boom_CO_Editor_body_left_invite_history")[0]; //历史记录框
  638. U.A.Request(US.CD, [US.DB, "UseStudio_Office", "SelectOfficeHistory", _fileid, "00000000-0000-0000-0000-000000000000", 1, 10]), U.Word.Panel.OnDisplayD, [null, UDOD]; //
  639. }
  640. /**
  641. * 更新历史弹出全部
  642. *
  643. */
  644. U.Word.Panel.OnDisplayD = function (r) {
  645. if ($(".U_Boom_CO_Editor_body_right_user_o_r_all")) {//如果存在则删除
  646. $(".U_Boom_CO_Editor_body_right_user_o_r_all").remove();
  647. }
  648. divall = $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r_all" }, r.context[1].parentNode.parentNode);
  649. $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r_all_a", "innerHTML": "显示全部", "onclick": [U.Word.Panel.EditHistoryonc] }, divall);
  650. U.Word.Panel.EditHistoryc(r.value);
  651. }
  652. /**
  653. * 编辑历史的展开与关闭
  654. *
  655. */
  656. U.Word.Panel.btn = function () {//编辑历史记录底端的显示全部的展开与关闭
  657. if (this.parentNode.children[0].lastChild.children[0].scrollHeight > 100) {//根据内容的高度来判断
  658. if (this.innerText == "展开") {
  659. this.innerHTML = "收起<div class='U_Boom_CO_Editor_body_btn_img2'></div>";
  660. this.parentNode.style.cssText = "height:100%;min-height:100px;overflow:visible;float:left;width:95%;"
  661. this.style.cssText = "margin-right:-7px;"
  662. }
  663. else if (this.innerText == "收起") {
  664. this.innerHTML = "展开<div class='U_Boom_CO_Editor_body_btn_img1'></div>";
  665. this.parentNode.style.cssText = "height:100px;overflow:hidden;float:none;width:none";
  666. this.style.cssText = "margin-right: 0px; "
  667. }
  668. } else {
  669. if (this.innerText == "展开") {
  670. this.innerHTML = "收起<div class='U_Boom_CO_Editor_body_btn_img2'></div>";
  671. this.parentNode.style.cssText = "height:100%;min-height:100px;overflow:visible;float:left;width:95%;"
  672. this.style.cssText = "margin-right:-7px;"
  673. }
  674. else if (this.innerText == "收起") {
  675. this.innerHTML = "展开<div class='U_Boom_CO_Editor_body_btn_img1'></div>";
  676. this.parentNode.style.cssText = "height:100px;overflow:hidden;";
  677. this.style.cssText = "margin-right: 0px;"
  678. }
  679. }
  680. }
  681. /**
  682. * 编辑历史弹出
  683. *
  684. */
  685. U.Word.Panel.EditHistory = function (UDE) {//此参数为历史记录的信息
  686. var _UDOD = $$("div"),
  687. _UCT = top.U.UI.Form({
  688. content: _UDOD, bst: { "style": { "overflow": "auto" } },
  689. "style": { "width": "900px", "height": "550px", "overflow": "hidden" },
  690. title: "历史记录", id: "Bjls", draw: true, max: true, min: false
  691. });
  692. U.A.Request(US.CD, [US.DB, "Usestudio_Office", "SelectHistoryDetails", UDE.HistoryId], U.Word.Panel.AsynEditHistory, [_UDOD, UDE]);
  693. }
  694. /**
  695. * 编辑历史弹出异步
  696. *
  697. */
  698. U.Word.Panel.AsynEditHistory = function (r) {
  699. var i, _UDOD = r.context[0], _UDBD, _UDTD, _UDSD, _UDATA = r.value, _L = _UDATA.length;
  700. for (i = 0; i < _L; i++) {
  701. _UDBD = $$("div", { "class": "U_Boom_Forms_Other_EditHistory_Container" }, _UDOD);
  702. _UDTD = $$("div", { "class": "U_Boom_Forms_Other_EditHistory_Container_Head" }, _UDBD);
  703. $$("img", { "src": U.M.GetImgU(_UDATA[i].UserThumbnailImageHead), "onerror": U.M.ImgError, "alt": r.context[1].UserName /*_UDATA[i].UserName*/, "title": r.context[1].UserName/*_UDATA[i].UserName*/ }, _UDTD);
  704. $$("div", { "innerHTML": (r.context[1].UserNickName/*_UDATA[i].UserNickName || _UDATA[i].UserName*/) + " " + U.MT.getDateInterval(_UDATA[i].CreateTime) + " 更改了以下内容" }, _UDTD);
  705. $$("div", { "className": "U_Boom_CO_Editor_body_right_user_o_r_nr", "innerHTML": _UDATA[i].OfficeContent }, _UDTD);
  706. }
  707. }
  708. //U.Word.ViewDisplayon = function () {//功能区域关闭
  709. // var UDAA = $("#U_Boom_CO_Editor_body_left")[0].childNodes; //获取功能区域
  710. // var UDWD = $("#U_Boom_CO_Editor_body_left .UD_SYF_S"); //获取功能区域
  711. // var UDOD_yq_colse = $(".UD_SYF_S"); //获取获取功能区域的关闭按钮
  712. // UDOD_yq_colse[1].childNodes[4].firstChild.onclick = function () {//邀请协作人员关闭
  713. // U.D.CloseWindow(UDWD[0]);
  714. // UDWD[1].style.top = UDWD[1].offsetTop - 270 + "px";
  715. // UDWD[2].style.top = UDWD[2].offsetTop - 270 + "px";
  716. // UDWD[3].style.top = UDWD[3].offsetTop - 270 + "px";
  717. // }
  718. // UDOD_yq_colse[4].childNodes[4].firstChild.onclick = function () {//编辑历史关闭
  719. // U.D.CloseWindow(UDWD[3]);
  720. // UDWD[2].style.top = UDWD[2].offsetTop - 270 + "px";
  721. // UDWD[3].style.top = UDWD[3].offsetTop - 270 + "px";
  722. // }
  723. // UDOD_yq_colse[2].childNodes[4].firstChild.onclick = function () {//生成链接关闭
  724. // U.D.CloseWindow(UDWD[1]);
  725. // UDWD[3].style.top = UDWD[3].offsetTop - 270 + "px";
  726. // }
  727. // UDOD_yq_colse[3].childNodes[4].firstChild.onclick = function () {//热门模板关闭
  728. // U.D.CloseWindow(UDWD[2]);
  729. // }
  730. //}
  731. /**
  732. * 打开历史记录
  733. *
  734. * @param {element} 换页元素
  735. */
  736. //U.Word.Openhistory = function (UDE) {
  737. // U.UI.Form({ draw: false, max: false, id: "U_Boom_CO_History", content: "", title: "历史记录", hst: { style: { "padding": "0 0 0 10px"} }, bst: { "style": { overflow: "hidden"}} }); //创建窗体
  738. // U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "SelectHistoryDetails", UDE.HistoryId], U.Word.AsynOpenhistory, []);
  739. //}
  740. /**
  741. * 打开异步
  742. *
  743. * @param {element} 换页元素
  744. */
  745. //U.Word.AsynOpenhistory = function (r) {
  746. // var context = r.context,
  747. // _UDOD = context[0];
  748. // r = r.value;
  749. // if (r != -1) {
  750. // _UDOD.inenrHTML = r.OfficeContent;
  751. // }
  752. //}
  753. //#endregion