ea9677783e62ba7b900916853563c72412548bf6.svn-base 91 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016
  1. using System;
  2. using System.Data;
  3. using System.Drawing;
  4. using System.Collections;
  5. using System.ComponentModel;
  6. using System.Windows.Forms;
  7. using Infragistics.Win;
  8. using Infragistics.Win.UltraWinGrid;
  9. using Infragistics.Win.UltraWinTree;
  10. using Core.Mes.ClientFrameWork;
  11. namespace Core.Mes.ClientPurviewManager
  12. {
  13. /// <summary>
  14. /// FrmPurviewSet 的摘要说明。
  15. /// </summary>
  16. public class FrmPurviewSet : FrmBase
  17. {
  18. #region 成员区
  19. private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager ultraToolbarsManager1;
  20. private System.Data.DataSet dataSet1;
  21. private System.Data.DataTable dataTable1;
  22. private System.Data.DataColumn dataColumn1;
  23. private System.Data.DataColumn dataColumn2;
  24. private System.Data.DataColumn dataColumn3;
  25. private System.Data.DataColumn dataColumn4;
  26. private Infragistics.Win.UltraWinGrid.UltraGrid ultraGrid2;
  27. private Infragistics.Win.UltraWinTree.UltraTree ultraTree1;
  28. private System.Data.DataSet dataSet2;
  29. private System.Data.DataTable dataTable2;
  30. private Infragistics.Win.Misc.UltraExpandableGroupBox ultraExpandableGroupBox2;
  31. private Infragistics.Win.Misc.UltraExpandableGroupBoxPanel ultraExpandableGroupBoxPanel2;
  32. private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager ultraToolbarsManager2;
  33. private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left;
  34. private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right;
  35. private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top;
  36. private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom;
  37. private System.Data.DataColumn dataColumn5;
  38. private System.Data.DataColumn dataColumn6;
  39. private System.Data.DataColumn dataColumn7;
  40. private System.Windows.Forms.Splitter splitter1;
  41. private DataColumn dataColumn8;
  42. private Infragistics.Win.Misc.UltraExpandableGroupBox ultraExpandableGroupBox1;
  43. private Infragistics.Win.Misc.UltraExpandableGroupBoxPanel ultraExpandableGroupBoxPanel1;
  44. private Panel panel1;
  45. private ComboBox comboBox1;
  46. private Infragistics.Win.UltraWinEditors.UltraCheckEditor ultraCheckEditor5;
  47. private Infragistics.Win.UltraWinEditors.UltraCheckEditor ultraCheckEditor4;
  48. private TextBox textBox4;
  49. private Infragistics.Win.UltraWinEditors.UltraCheckEditor ultraCheckEditor3;
  50. private TextBox textBox3;
  51. private Infragistics.Win.UltraWinEditors.UltraCheckEditor ultraCheckEditor2;
  52. private TextBox textBox2;
  53. private Infragistics.Win.UltraWinEditors.UltraCheckEditor ultraCheckEditor1;
  54. private TextBox textBox1;
  55. private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _FrmBase_Toolbars_Dock_Area_Left;
  56. private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _FrmBase_Toolbars_Dock_Area_Right;
  57. private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _FrmBase_Toolbars_Dock_Area_Top;
  58. private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _FrmBase_Toolbars_Dock_Area_Bottom;
  59. private UltraGrid ultraGrid1;
  60. private System.ComponentModel.IContainer components;
  61. private DataColumn dataColumn9;
  62. private DataColumn dataColumn10;
  63. private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager ultraToolbarsManager3;
  64. private DataSet dstToolBar;
  65. private DataTable Toolbar;
  66. private DataColumn KEY_;
  67. private DataColumn CATEGORY;
  68. private DataColumn CAPTION;
  69. private DataColumn TYPE;
  70. private DataColumn PARENTMENU;
  71. private DataColumn SETINFO;
  72. private DataColumn ROLEID;
  73. private Infragistics.Win.Misc.UltraButton btn_ImportAll;
  74. private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_folder;
  75. DataTable dtMenuPos;
  76. #endregion
  77. public FrmPurviewSet()
  78. {
  79. //
  80. // Windows 窗体设计器支持所必需的
  81. //
  82. InitializeComponent();
  83. //
  84. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  85. //
  86. UltraTree_DropHightLight_DrawFilter.Invalidate += new EventHandler(this.UltraTree_DropHightLight_DrawFilter_Invalidate);
  87. UltraTree_DropHightLight_DrawFilter.QueryStateAllowedForNode += new UltraTree_DropHightLight_DrawFilter_Class.QueryStateAllowedForNodeEventHandler(this.UltraTree_DropHightLight_DrawFilter_QueryStateAllowedForNode);
  88. }
  89. /// <summary>
  90. /// 清理所有正在使用的资源。
  91. /// </summary>
  92. protected override void Dispose(bool disposing)
  93. {
  94. if (disposing)
  95. {
  96. if (components != null)
  97. {
  98. components.Dispose();
  99. }
  100. }
  101. base.Dispose(disposing);
  102. }
  103. #region Windows 窗体设计器生成的代码
  104. /// <summary>
  105. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  106. /// 此方法的内容。
  107. /// </summary>
  108. private void InitializeComponent()
  109. {
  110. this.components = new System.ComponentModel.Container();
  111. Infragistics.Win.UltraWinToolbars.UltraToolbar ultraToolbar2 = new Infragistics.Win.UltraWinToolbars.UltraToolbar("UltraToolbar1");
  112. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool25 = new Infragistics.Win.UltraWinToolbars.ButtonTool("query");
  113. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool26 = new Infragistics.Win.UltraWinToolbars.ButtonTool("add");
  114. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool27 = new Infragistics.Win.UltraWinToolbars.ButtonTool("del");
  115. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool28 = new Infragistics.Win.UltraWinToolbars.ButtonTool("edit");
  116. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool29 = new Infragistics.Win.UltraWinToolbars.ButtonTool("close");
  117. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool30 = new Infragistics.Win.UltraWinToolbars.ButtonTool("add");
  118. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool31 = new Infragistics.Win.UltraWinToolbars.ButtonTool("del");
  119. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool32 = new Infragistics.Win.UltraWinToolbars.ButtonTool("edit");
  120. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool33 = new Infragistics.Win.UltraWinToolbars.ButtonTool("close");
  121. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool34 = new Infragistics.Win.UltraWinToolbars.ButtonTool("query");
  122. Infragistics.Win.Appearance appearance11 = new Infragistics.Win.Appearance();
  123. Infragistics.Win.UltraWinGrid.UltraGridBand ultraGridBand2 = new Infragistics.Win.UltraWinGrid.UltraGridBand("Table1", -1);
  124. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn9 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ROLEID");
  125. Infragistics.Win.Appearance appearance12 = new Infragistics.Win.Appearance();
  126. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn10 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ROLENAME");
  127. Infragistics.Win.Appearance appearance13 = new Infragistics.Win.Appearance();
  128. Infragistics.Win.Appearance appearance14 = new Infragistics.Win.Appearance();
  129. Infragistics.Win.Appearance appearance15 = new Infragistics.Win.Appearance();
  130. Infragistics.Win.Appearance appearance16 = new Infragistics.Win.Appearance();
  131. Infragistics.Win.Appearance appearance17 = new Infragistics.Win.Appearance();
  132. Infragistics.Win.Appearance appearance18 = new Infragistics.Win.Appearance();
  133. Infragistics.Win.Appearance appearance19 = new Infragistics.Win.Appearance();
  134. Infragistics.Win.UltraWinTree.UltraTreeColumnSet ultraTreeColumnSet1 = new Infragistics.Win.UltraWinTree.UltraTreeColumnSet();
  135. Infragistics.Win.UltraWinToolbars.UltraToolbar ultraToolbar1 = new Infragistics.Win.UltraWinToolbars.UltraToolbar("UltraToolbar1");
  136. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool1 = new Infragistics.Win.UltraWinToolbars.ButtonTool("refresh");
  137. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool2 = new Infragistics.Win.UltraWinToolbars.ButtonTool("select");
  138. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool3 = new Infragistics.Win.UltraWinToolbars.ButtonTool("remove");
  139. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool4 = new Infragistics.Win.UltraWinToolbars.ButtonTool("clear");
  140. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool5 = new Infragistics.Win.UltraWinToolbars.ButtonTool("copy");
  141. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool6 = new Infragistics.Win.UltraWinToolbars.ButtonTool("plast");
  142. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool7 = new Infragistics.Win.UltraWinToolbars.ButtonTool("up");
  143. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool8 = new Infragistics.Win.UltraWinToolbars.ButtonTool("down");
  144. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool9 = new Infragistics.Win.UltraWinToolbars.ButtonTool("left");
  145. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool10 = new Infragistics.Win.UltraWinToolbars.ButtonTool("right");
  146. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool11 = new Infragistics.Win.UltraWinToolbars.ButtonTool("save");
  147. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool12 = new Infragistics.Win.UltraWinToolbars.ButtonTool("IMPORT");
  148. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool13 = new Infragistics.Win.UltraWinToolbars.ButtonTool("select");
  149. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool14 = new Infragistics.Win.UltraWinToolbars.ButtonTool("remove");
  150. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool15 = new Infragistics.Win.UltraWinToolbars.ButtonTool("save");
  151. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool16 = new Infragistics.Win.UltraWinToolbars.ButtonTool("copy");
  152. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool17 = new Infragistics.Win.UltraWinToolbars.ButtonTool("up");
  153. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool18 = new Infragistics.Win.UltraWinToolbars.ButtonTool("down");
  154. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool19 = new Infragistics.Win.UltraWinToolbars.ButtonTool("left");
  155. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool20 = new Infragistics.Win.UltraWinToolbars.ButtonTool("right");
  156. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool21 = new Infragistics.Win.UltraWinToolbars.ButtonTool("refresh");
  157. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool22 = new Infragistics.Win.UltraWinToolbars.ButtonTool("clear");
  158. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool23 = new Infragistics.Win.UltraWinToolbars.ButtonTool("plast");
  159. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool24 = new Infragistics.Win.UltraWinToolbars.ButtonTool("IMPORT");
  160. Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
  161. Infragistics.Win.UltraWinGrid.UltraGridBand ultraGridBand1 = new Infragistics.Win.UltraWinGrid.UltraGridBand("Table1", -1);
  162. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn1 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ID_");
  163. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn2 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("KEY_");
  164. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn3 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CATEGORY");
  165. Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
  166. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn4 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CAPTION");
  167. Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
  168. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn5 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("REMARK");
  169. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn6 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("TYPE");
  170. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn7 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("PARENTID");
  171. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn8 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("XH");
  172. Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();
  173. Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance();
  174. Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance();
  175. Infragistics.Win.Appearance appearance7 = new Infragistics.Win.Appearance();
  176. Infragistics.Win.Appearance appearance8 = new Infragistics.Win.Appearance();
  177. Infragistics.Win.Appearance appearance9 = new Infragistics.Win.Appearance();
  178. Infragistics.Win.Appearance appearance10 = new Infragistics.Win.Appearance();
  179. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool35 = new Infragistics.Win.UltraWinToolbars.ButtonTool("tlbtnUp");
  180. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool36 = new Infragistics.Win.UltraWinToolbars.ButtonTool("tlbtnDown");
  181. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool37 = new Infragistics.Win.UltraWinToolbars.ButtonTool("tlbtnLeft");
  182. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool38 = new Infragistics.Win.UltraWinToolbars.ButtonTool("tlbtnRight");
  183. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool39 = new Infragistics.Win.UltraWinToolbars.ButtonTool("tlbtnSave");
  184. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool40 = new Infragistics.Win.UltraWinToolbars.ButtonTool("tlbtnRefresh");
  185. this.dataSet1 = new System.Data.DataSet();
  186. this.dataTable1 = new System.Data.DataTable();
  187. this.dataColumn1 = new System.Data.DataColumn();
  188. this.dataColumn2 = new System.Data.DataColumn();
  189. this.dataColumn3 = new System.Data.DataColumn();
  190. this.dataColumn4 = new System.Data.DataColumn();
  191. this.dataColumn7 = new System.Data.DataColumn();
  192. this.dataColumn8 = new System.Data.DataColumn();
  193. this.dataColumn9 = new System.Data.DataColumn();
  194. this.dataColumn10 = new System.Data.DataColumn();
  195. this.ultraToolbarsManager1 = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components);
  196. this.ultraGrid2 = new Infragistics.Win.UltraWinGrid.UltraGrid();
  197. this.dataSet2 = new System.Data.DataSet();
  198. this.dataTable2 = new System.Data.DataTable();
  199. this.dataColumn5 = new System.Data.DataColumn();
  200. this.dataColumn6 = new System.Data.DataColumn();
  201. this.ultraTree1 = new Infragistics.Win.UltraWinTree.UltraTree();
  202. this.ultraExpandableGroupBox2 = new Infragistics.Win.Misc.UltraExpandableGroupBox();
  203. this.ultraExpandableGroupBoxPanel2 = new Infragistics.Win.Misc.UltraExpandableGroupBoxPanel();
  204. this.splitter1 = new System.Windows.Forms.Splitter();
  205. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
  206. this.ultraToolbarsManager2 = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components);
  207. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
  208. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
  209. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
  210. this.ultraExpandableGroupBox1 = new Infragistics.Win.Misc.UltraExpandableGroupBox();
  211. this.ultraExpandableGroupBoxPanel1 = new Infragistics.Win.Misc.UltraExpandableGroupBoxPanel();
  212. this.ultraGrid1 = new Infragistics.Win.UltraWinGrid.UltraGrid();
  213. this.panel1 = new System.Windows.Forms.Panel();
  214. this.txt_folder = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
  215. this.btn_ImportAll = new Infragistics.Win.Misc.UltraButton();
  216. this.comboBox1 = new System.Windows.Forms.ComboBox();
  217. this.ultraCheckEditor5 = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
  218. this.ultraCheckEditor4 = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
  219. this.textBox4 = new System.Windows.Forms.TextBox();
  220. this.ultraCheckEditor3 = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
  221. this.textBox3 = new System.Windows.Forms.TextBox();
  222. this.ultraCheckEditor2 = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
  223. this.textBox2 = new System.Windows.Forms.TextBox();
  224. this.ultraCheckEditor1 = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
  225. this.textBox1 = new System.Windows.Forms.TextBox();
  226. this._FrmBase_Toolbars_Dock_Area_Left = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
  227. this._FrmBase_Toolbars_Dock_Area_Right = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
  228. this._FrmBase_Toolbars_Dock_Area_Top = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
  229. this._FrmBase_Toolbars_Dock_Area_Bottom = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
  230. this.ultraToolbarsManager3 = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components);
  231. this.dstToolBar = new System.Data.DataSet();
  232. this.Toolbar = new System.Data.DataTable();
  233. this.KEY_ = new System.Data.DataColumn();
  234. this.CATEGORY = new System.Data.DataColumn();
  235. this.CAPTION = new System.Data.DataColumn();
  236. this.TYPE = new System.Data.DataColumn();
  237. this.PARENTMENU = new System.Data.DataColumn();
  238. this.SETINFO = new System.Data.DataColumn();
  239. this.ROLEID = new System.Data.DataColumn();
  240. ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit();
  241. ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).BeginInit();
  242. ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager1)).BeginInit();
  243. ((System.ComponentModel.ISupportInitialize)(this.ultraGrid2)).BeginInit();
  244. ((System.ComponentModel.ISupportInitialize)(this.dataSet2)).BeginInit();
  245. ((System.ComponentModel.ISupportInitialize)(this.dataTable2)).BeginInit();
  246. ((System.ComponentModel.ISupportInitialize)(this.ultraTree1)).BeginInit();
  247. ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox2)).BeginInit();
  248. this.ultraExpandableGroupBox2.SuspendLayout();
  249. this.ultraExpandableGroupBoxPanel2.SuspendLayout();
  250. ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager2)).BeginInit();
  251. ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).BeginInit();
  252. this.ultraExpandableGroupBox1.SuspendLayout();
  253. this.ultraExpandableGroupBoxPanel1.SuspendLayout();
  254. ((System.ComponentModel.ISupportInitialize)(this.ultraGrid1)).BeginInit();
  255. this.panel1.SuspendLayout();
  256. ((System.ComponentModel.ISupportInitialize)(this.txt_folder)).BeginInit();
  257. ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager3)).BeginInit();
  258. ((System.ComponentModel.ISupportInitialize)(this.dstToolBar)).BeginInit();
  259. ((System.ComponentModel.ISupportInitialize)(this.Toolbar)).BeginInit();
  260. this.SuspendLayout();
  261. //
  262. // dataSet1
  263. //
  264. this.dataSet1.DataSetName = "NewDataSet";
  265. this.dataSet1.Locale = new System.Globalization.CultureInfo("zh-CN");
  266. this.dataSet1.Tables.AddRange(new System.Data.DataTable[] {
  267. this.dataTable1});
  268. //
  269. // dataTable1
  270. //
  271. this.dataTable1.Columns.AddRange(new System.Data.DataColumn[] {
  272. this.dataColumn1,
  273. this.dataColumn2,
  274. this.dataColumn3,
  275. this.dataColumn4,
  276. this.dataColumn7,
  277. this.dataColumn8,
  278. this.dataColumn9,
  279. this.dataColumn10});
  280. this.dataTable1.TableName = "Table1";
  281. //
  282. // dataColumn1
  283. //
  284. this.dataColumn1.ColumnName = "ID_";
  285. //
  286. // dataColumn2
  287. //
  288. this.dataColumn2.ColumnName = "KEY_";
  289. //
  290. // dataColumn3
  291. //
  292. this.dataColumn3.ColumnName = "CATEGORY";
  293. //
  294. // dataColumn4
  295. //
  296. this.dataColumn4.ColumnName = "CAPTION";
  297. //
  298. // dataColumn7
  299. //
  300. this.dataColumn7.ColumnName = "REMARK";
  301. //
  302. // dataColumn8
  303. //
  304. this.dataColumn8.ColumnName = "TYPE";
  305. //
  306. // dataColumn9
  307. //
  308. this.dataColumn9.ColumnName = "PARENTID";
  309. //
  310. // dataColumn10
  311. //
  312. this.dataColumn10.ColumnName = "XH";
  313. this.dataColumn10.DataType = typeof(decimal);
  314. //
  315. // ultraToolbarsManager1
  316. //
  317. this.ultraToolbarsManager1.DesignerFlags = 1;
  318. this.ultraToolbarsManager1.DockWithinContainer = this;
  319. this.ultraToolbarsManager1.LockToolbars = true;
  320. this.ultraToolbarsManager1.MdiMergeable = false;
  321. this.ultraToolbarsManager1.ShowQuickCustomizeButton = false;
  322. this.ultraToolbarsManager1.Style = Infragistics.Win.UltraWinToolbars.ToolbarStyle.VisualStudio2005;
  323. ultraToolbar2.DockedColumn = 0;
  324. ultraToolbar2.DockedRow = 0;
  325. ultraToolbar2.Text = "UltraToolbar1";
  326. buttonTool26.InstanceProps.IsFirstInGroup = true;
  327. buttonTool27.InstanceProps.IsFirstInGroup = true;
  328. buttonTool28.InstanceProps.IsFirstInGroup = true;
  329. buttonTool29.InstanceProps.IsFirstInGroup = true;
  330. ultraToolbar2.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
  331. buttonTool25,
  332. buttonTool26,
  333. buttonTool27,
  334. buttonTool28,
  335. buttonTool29});
  336. this.ultraToolbarsManager1.Toolbars.AddRange(new Infragistics.Win.UltraWinToolbars.UltraToolbar[] {
  337. ultraToolbar2});
  338. buttonTool30.SharedProps.Caption = "新增";
  339. buttonTool30.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  340. buttonTool31.SharedProps.Caption = "删除";
  341. buttonTool31.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  342. buttonTool32.SharedProps.Caption = "修改";
  343. buttonTool32.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  344. buttonTool33.SharedProps.Caption = "关闭";
  345. buttonTool33.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  346. buttonTool34.SharedProps.Caption = "查询";
  347. buttonTool34.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  348. this.ultraToolbarsManager1.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
  349. buttonTool30,
  350. buttonTool31,
  351. buttonTool32,
  352. buttonTool33,
  353. buttonTool34});
  354. this.ultraToolbarsManager1.ToolClick += new Infragistics.Win.UltraWinToolbars.ToolClickEventHandler(this.ultraToolbarsManager1_ToolClick);
  355. //
  356. // ultraGrid2
  357. //
  358. this.ultraGrid2.DataSource = this.dataSet2;
  359. appearance11.BackColor = System.Drawing.SystemColors.Window;
  360. appearance11.BorderColor = System.Drawing.SystemColors.InactiveCaption;
  361. this.ultraGrid2.DisplayLayout.Appearance = appearance11;
  362. appearance12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
  363. ultraGridColumn9.CellAppearance = appearance12;
  364. ultraGridColumn9.Header.Caption = "角色名";
  365. ultraGridColumn9.Header.VisiblePosition = 0;
  366. ultraGridColumn9.Hidden = true;
  367. ultraGridColumn9.Width = 150;
  368. ultraGridColumn10.Header.Caption = "角色名";
  369. ultraGridColumn10.Header.VisiblePosition = 1;
  370. ultraGridColumn10.Width = 210;
  371. ultraGridBand2.Columns.AddRange(new object[] {
  372. ultraGridColumn9,
  373. ultraGridColumn10});
  374. this.ultraGrid2.DisplayLayout.BandsSerializer.Add(ultraGridBand2);
  375. this.ultraGrid2.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
  376. this.ultraGrid2.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
  377. appearance13.BackColor = System.Drawing.SystemColors.ActiveBorder;
  378. appearance13.BackColor2 = System.Drawing.SystemColors.ControlDark;
  379. appearance13.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
  380. appearance13.BorderColor = System.Drawing.SystemColors.Window;
  381. this.ultraGrid2.DisplayLayout.GroupByBox.Appearance = appearance13;
  382. appearance14.ForeColor = System.Drawing.SystemColors.GrayText;
  383. this.ultraGrid2.DisplayLayout.GroupByBox.BandLabelAppearance = appearance14;
  384. this.ultraGrid2.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
  385. this.ultraGrid2.DisplayLayout.GroupByBox.Hidden = true;
  386. appearance15.BackColor = System.Drawing.SystemColors.ControlLightLight;
  387. appearance15.BackColor2 = System.Drawing.SystemColors.Control;
  388. appearance15.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
  389. appearance15.ForeColor = System.Drawing.SystemColors.GrayText;
  390. this.ultraGrid2.DisplayLayout.GroupByBox.PromptAppearance = appearance15;
  391. this.ultraGrid2.DisplayLayout.MaxColScrollRegions = 1;
  392. this.ultraGrid2.DisplayLayout.MaxRowScrollRegions = 1;
  393. appearance16.BackColor = System.Drawing.SystemColors.Window;
  394. appearance16.ForeColor = System.Drawing.SystemColors.ControlText;
  395. this.ultraGrid2.DisplayLayout.Override.ActiveCellAppearance = appearance16;
  396. appearance17.BackColor = System.Drawing.SystemColors.Highlight;
  397. appearance17.ForeColor = System.Drawing.SystemColors.HighlightText;
  398. this.ultraGrid2.DisplayLayout.Override.ActiveRowAppearance = appearance17;
  399. this.ultraGrid2.DisplayLayout.Override.AllowRowFiltering = Infragistics.Win.DefaultableBoolean.True;
  400. this.ultraGrid2.DisplayLayout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.False;
  401. this.ultraGrid2.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
  402. this.ultraGrid2.DisplayLayout.Override.CellPadding = 0;
  403. appearance18.BackColor = System.Drawing.Color.LightSteelBlue;
  404. appearance18.TextHAlign = Infragistics.Win.HAlign.Center;
  405. this.ultraGrid2.DisplayLayout.Override.HeaderAppearance = appearance18;
  406. this.ultraGrid2.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
  407. this.ultraGrid2.DisplayLayout.Override.MinRowHeight = 21;
  408. appearance19.BackColor = System.Drawing.Color.LightSteelBlue;
  409. this.ultraGrid2.DisplayLayout.Override.RowSelectorAppearance = appearance19;
  410. this.ultraGrid2.DisplayLayout.Override.RowSelectorHeaderStyle = Infragistics.Win.UltraWinGrid.RowSelectorHeaderStyle.SeparateElement;
  411. this.ultraGrid2.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
  412. this.ultraGrid2.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
  413. this.ultraGrid2.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
  414. this.ultraGrid2.Dock = System.Windows.Forms.DockStyle.Left;
  415. this.ultraGrid2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  416. this.ultraGrid2.Location = new System.Drawing.Point(0, 50);
  417. this.ultraGrid2.Name = "ultraGrid2";
  418. this.ultraGrid2.Size = new System.Drawing.Size(248, 221);
  419. this.ultraGrid2.TabIndex = 5;
  420. this.ultraGrid2.Text = "ultraGrid2";
  421. this.ultraGrid2.AfterRowActivate += new System.EventHandler(this.ultraGrid2_AfterRowActivate);
  422. //
  423. // dataSet2
  424. //
  425. this.dataSet2.DataSetName = "NewDataSet";
  426. this.dataSet2.Locale = new System.Globalization.CultureInfo("zh-CN");
  427. this.dataSet2.Tables.AddRange(new System.Data.DataTable[] {
  428. this.dataTable2});
  429. //
  430. // dataTable2
  431. //
  432. this.dataTable2.Columns.AddRange(new System.Data.DataColumn[] {
  433. this.dataColumn5,
  434. this.dataColumn6});
  435. this.dataTable2.TableName = "Table1";
  436. //
  437. // dataColumn5
  438. //
  439. this.dataColumn5.ColumnName = "ROLEID";
  440. //
  441. // dataColumn6
  442. //
  443. this.dataColumn6.ColumnName = "ROLENAME";
  444. //
  445. // ultraTree1
  446. //
  447. this.ultraTree1.ColumnSettings.RootColumnSet = ultraTreeColumnSet1;
  448. this.ultraTree1.Dock = System.Windows.Forms.DockStyle.Fill;
  449. this.ultraTree1.HideSelection = false;
  450. this.ultraTree1.Location = new System.Drawing.Point(251, 50);
  451. this.ultraTree1.Name = "ultraTree1";
  452. this.ultraTree1.Size = new System.Drawing.Size(755, 221);
  453. this.ultraTree1.TabIndex = 6;
  454. //
  455. // ultraExpandableGroupBox2
  456. //
  457. this.ultraExpandableGroupBox2.Controls.Add(this.ultraExpandableGroupBoxPanel2);
  458. this.ultraExpandableGroupBox2.Dock = System.Windows.Forms.DockStyle.Bottom;
  459. this.ultraExpandableGroupBox2.ExpandedSize = new System.Drawing.Size(1012, 293);
  460. this.ultraExpandableGroupBox2.Location = new System.Drawing.Point(0, 440);
  461. this.ultraExpandableGroupBox2.Name = "ultraExpandableGroupBox2";
  462. this.ultraExpandableGroupBox2.Size = new System.Drawing.Size(1012, 293);
  463. this.ultraExpandableGroupBox2.SupportThemes = false;
  464. this.ultraExpandableGroupBox2.TabIndex = 7;
  465. this.ultraExpandableGroupBox2.Text = "权限设置";
  466. this.ultraExpandableGroupBox2.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.Office2000;
  467. //
  468. // ultraExpandableGroupBoxPanel2
  469. //
  470. this.ultraExpandableGroupBoxPanel2.Controls.Add(this.ultraTree1);
  471. this.ultraExpandableGroupBoxPanel2.Controls.Add(this.splitter1);
  472. this.ultraExpandableGroupBoxPanel2.Controls.Add(this.ultraGrid2);
  473. this.ultraExpandableGroupBoxPanel2.Controls.Add(this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left);
  474. this.ultraExpandableGroupBoxPanel2.Controls.Add(this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right);
  475. this.ultraExpandableGroupBoxPanel2.Controls.Add(this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top);
  476. this.ultraExpandableGroupBoxPanel2.Controls.Add(this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom);
  477. this.ultraExpandableGroupBoxPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
  478. this.ultraExpandableGroupBoxPanel2.Location = new System.Drawing.Point(3, 19);
  479. this.ultraExpandableGroupBoxPanel2.Name = "ultraExpandableGroupBoxPanel2";
  480. this.ultraExpandableGroupBoxPanel2.Size = new System.Drawing.Size(1006, 271);
  481. this.ultraExpandableGroupBoxPanel2.TabIndex = 0;
  482. //
  483. // splitter1
  484. //
  485. this.splitter1.Location = new System.Drawing.Point(248, 50);
  486. this.splitter1.Name = "splitter1";
  487. this.splitter1.Size = new System.Drawing.Size(3, 221);
  488. this.splitter1.TabIndex = 11;
  489. this.splitter1.TabStop = false;
  490. //
  491. // _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left
  492. //
  493. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
  494. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(229)))), ((int)(((byte)(215)))));
  495. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Left;
  496. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.ForeColor = System.Drawing.SystemColors.ControlText;
  497. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.Location = new System.Drawing.Point(0, 50);
  498. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.Name = "_ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left";
  499. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.Size = new System.Drawing.Size(0, 221);
  500. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.ToolbarsManager = this.ultraToolbarsManager2;
  501. //
  502. // ultraToolbarsManager2
  503. //
  504. this.ultraToolbarsManager2.DesignerFlags = 1;
  505. this.ultraToolbarsManager2.DockWithinContainer = this.ultraExpandableGroupBoxPanel2;
  506. this.ultraToolbarsManager2.LockToolbars = true;
  507. this.ultraToolbarsManager2.MdiMergeable = false;
  508. this.ultraToolbarsManager2.ShowFullMenusDelay = 500;
  509. this.ultraToolbarsManager2.ShowQuickCustomizeButton = false;
  510. this.ultraToolbarsManager2.Style = Infragistics.Win.UltraWinToolbars.ToolbarStyle.VisualStudio2005;
  511. ultraToolbar1.DockedColumn = 0;
  512. ultraToolbar1.DockedRow = 0;
  513. ultraToolbar1.Text = "UltraToolbar1";
  514. buttonTool2.InstanceProps.IsFirstInGroup = true;
  515. buttonTool4.InstanceProps.IsFirstInGroup = true;
  516. buttonTool5.InstanceProps.IsFirstInGroup = true;
  517. buttonTool7.InstanceProps.IsFirstInGroup = true;
  518. buttonTool11.InstanceProps.IsFirstInGroup = true;
  519. buttonTool12.InstanceProps.IsFirstInGroup = true;
  520. ultraToolbar1.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
  521. buttonTool1,
  522. buttonTool2,
  523. buttonTool3,
  524. buttonTool4,
  525. buttonTool5,
  526. buttonTool6,
  527. buttonTool7,
  528. buttonTool8,
  529. buttonTool9,
  530. buttonTool10,
  531. buttonTool11,
  532. buttonTool12});
  533. this.ultraToolbarsManager2.Toolbars.AddRange(new Infragistics.Win.UltraWinToolbars.UltraToolbar[] {
  534. ultraToolbar1});
  535. buttonTool13.SharedProps.Caption = "选取";
  536. buttonTool13.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  537. buttonTool14.SharedProps.Caption = "移除";
  538. buttonTool14.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  539. buttonTool15.SharedProps.Caption = "保存";
  540. buttonTool15.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  541. buttonTool16.SharedProps.Caption = "复制";
  542. buttonTool16.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  543. buttonTool17.SharedProps.Caption = "上移";
  544. buttonTool17.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  545. buttonTool18.SharedProps.Caption = "下移";
  546. buttonTool18.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  547. buttonTool19.SharedProps.Caption = "左移";
  548. buttonTool19.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  549. buttonTool20.SharedProps.Caption = "右移";
  550. buttonTool20.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  551. buttonTool21.SharedProps.Caption = "刷新";
  552. buttonTool21.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  553. buttonTool22.SharedProps.Caption = "清空";
  554. buttonTool22.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  555. buttonTool23.SharedProps.Caption = "粘贴";
  556. buttonTool23.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  557. buttonTool24.SharedProps.Caption = "导入";
  558. buttonTool24.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.TextOnlyAlways;
  559. this.ultraToolbarsManager2.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
  560. buttonTool13,
  561. buttonTool14,
  562. buttonTool15,
  563. buttonTool16,
  564. buttonTool17,
  565. buttonTool18,
  566. buttonTool19,
  567. buttonTool20,
  568. buttonTool21,
  569. buttonTool22,
  570. buttonTool23,
  571. buttonTool24});
  572. this.ultraToolbarsManager2.ToolClick += new Infragistics.Win.UltraWinToolbars.ToolClickEventHandler(this.ultraToolbarsManager2_ToolClick);
  573. //
  574. // _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right
  575. //
  576. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
  577. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(229)))), ((int)(((byte)(215)))));
  578. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Right;
  579. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.ForeColor = System.Drawing.SystemColors.ControlText;
  580. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.Location = new System.Drawing.Point(1006, 50);
  581. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.Name = "_ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right";
  582. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.Size = new System.Drawing.Size(0, 221);
  583. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.ToolbarsManager = this.ultraToolbarsManager2;
  584. //
  585. // _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top
  586. //
  587. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
  588. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(229)))), ((int)(((byte)(215)))));
  589. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Top;
  590. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.ForeColor = System.Drawing.SystemColors.ControlText;
  591. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.Location = new System.Drawing.Point(0, 0);
  592. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.Name = "_ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top";
  593. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.Size = new System.Drawing.Size(1006, 50);
  594. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.ToolbarsManager = this.ultraToolbarsManager2;
  595. //
  596. // _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom
  597. //
  598. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
  599. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(229)))), ((int)(((byte)(215)))));
  600. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Bottom;
  601. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.ForeColor = System.Drawing.SystemColors.ControlText;
  602. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.Location = new System.Drawing.Point(0, 271);
  603. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.Name = "_ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom";
  604. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(1006, 0);
  605. this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.ToolbarsManager = this.ultraToolbarsManager2;
  606. //
  607. // ultraExpandableGroupBox1
  608. //
  609. this.ultraExpandableGroupBox1.Controls.Add(this.ultraExpandableGroupBoxPanel1);
  610. this.ultraExpandableGroupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
  611. this.ultraExpandableGroupBox1.ExpandedSize = new System.Drawing.Size(1012, 416);
  612. this.ultraExpandableGroupBox1.Location = new System.Drawing.Point(0, 25);
  613. this.ultraExpandableGroupBox1.Name = "ultraExpandableGroupBox1";
  614. this.ultraExpandableGroupBox1.Size = new System.Drawing.Size(1012, 415);
  615. this.ultraExpandableGroupBox1.SupportThemes = false;
  616. this.ultraExpandableGroupBox1.TabIndex = 8;
  617. this.ultraExpandableGroupBox1.Text = "菜单信息设置";
  618. this.ultraExpandableGroupBox1.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.Office2000;
  619. //
  620. // ultraExpandableGroupBoxPanel1
  621. //
  622. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.ultraGrid1);
  623. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.panel1);
  624. this.ultraExpandableGroupBoxPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
  625. this.ultraExpandableGroupBoxPanel1.Location = new System.Drawing.Point(3, 19);
  626. this.ultraExpandableGroupBoxPanel1.Name = "ultraExpandableGroupBoxPanel1";
  627. this.ultraExpandableGroupBoxPanel1.Size = new System.Drawing.Size(1006, 393);
  628. this.ultraExpandableGroupBoxPanel1.TabIndex = 0;
  629. //
  630. // ultraGrid1
  631. //
  632. this.ultraGrid1.DataSource = this.dataSet1;
  633. appearance1.BackColor = System.Drawing.SystemColors.Window;
  634. appearance1.BorderColor = System.Drawing.SystemColors.InactiveCaption;
  635. this.ultraGrid1.DisplayLayout.Appearance = appearance1;
  636. ultraGridColumn1.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  637. ultraGridColumn1.Header.VisiblePosition = 0;
  638. ultraGridColumn1.Hidden = true;
  639. ultraGridColumn2.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  640. ultraGridColumn2.Header.Caption = "键值";
  641. ultraGridColumn2.Header.VisiblePosition = 2;
  642. ultraGridColumn2.Width = 300;
  643. ultraGridColumn3.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  644. appearance2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
  645. ultraGridColumn3.CellAppearance = appearance2;
  646. ultraGridColumn3.Header.Caption = "组名";
  647. ultraGridColumn3.Header.VisiblePosition = 3;
  648. ultraGridColumn3.Width = 200;
  649. ultraGridColumn4.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  650. appearance3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
  651. ultraGridColumn4.CellAppearance = appearance3;
  652. ultraGridColumn4.Header.Caption = "菜单名";
  653. ultraGridColumn4.Header.VisiblePosition = 1;
  654. ultraGridColumn4.Width = 200;
  655. ultraGridColumn5.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  656. ultraGridColumn5.Header.Caption = "备注";
  657. ultraGridColumn5.Header.VisiblePosition = 5;
  658. ultraGridColumn5.Width = 150;
  659. ultraGridColumn6.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  660. ultraGridColumn6.Header.Caption = "类型";
  661. ultraGridColumn6.Header.VisiblePosition = 4;
  662. ultraGridColumn7.Header.VisiblePosition = 6;
  663. ultraGridColumn7.Hidden = true;
  664. ultraGridColumn8.Header.VisiblePosition = 7;
  665. ultraGridColumn8.Hidden = true;
  666. ultraGridBand1.Columns.AddRange(new object[] {
  667. ultraGridColumn1,
  668. ultraGridColumn2,
  669. ultraGridColumn3,
  670. ultraGridColumn4,
  671. ultraGridColumn5,
  672. ultraGridColumn6,
  673. ultraGridColumn7,
  674. ultraGridColumn8});
  675. this.ultraGrid1.DisplayLayout.BandsSerializer.Add(ultraGridBand1);
  676. this.ultraGrid1.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
  677. this.ultraGrid1.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
  678. appearance4.BackColor = System.Drawing.SystemColors.ActiveBorder;
  679. appearance4.BackColor2 = System.Drawing.SystemColors.ControlDark;
  680. appearance4.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
  681. appearance4.BorderColor = System.Drawing.SystemColors.Window;
  682. this.ultraGrid1.DisplayLayout.GroupByBox.Appearance = appearance4;
  683. appearance5.ForeColor = System.Drawing.SystemColors.GrayText;
  684. this.ultraGrid1.DisplayLayout.GroupByBox.BandLabelAppearance = appearance5;
  685. this.ultraGrid1.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
  686. this.ultraGrid1.DisplayLayout.GroupByBox.Hidden = true;
  687. appearance6.BackColor = System.Drawing.SystemColors.ControlLightLight;
  688. appearance6.BackColor2 = System.Drawing.SystemColors.Control;
  689. appearance6.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
  690. appearance6.ForeColor = System.Drawing.SystemColors.GrayText;
  691. this.ultraGrid1.DisplayLayout.GroupByBox.PromptAppearance = appearance6;
  692. this.ultraGrid1.DisplayLayout.MaxColScrollRegions = 1;
  693. this.ultraGrid1.DisplayLayout.MaxRowScrollRegions = 1;
  694. appearance7.BackColor = System.Drawing.SystemColors.Window;
  695. appearance7.ForeColor = System.Drawing.SystemColors.ControlText;
  696. this.ultraGrid1.DisplayLayout.Override.ActiveCellAppearance = appearance7;
  697. appearance8.BackColor = System.Drawing.SystemColors.Highlight;
  698. appearance8.ForeColor = System.Drawing.SystemColors.HighlightText;
  699. this.ultraGrid1.DisplayLayout.Override.ActiveRowAppearance = appearance8;
  700. this.ultraGrid1.DisplayLayout.Override.AllowRowFiltering = Infragistics.Win.DefaultableBoolean.True;
  701. this.ultraGrid1.DisplayLayout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.False;
  702. this.ultraGrid1.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
  703. this.ultraGrid1.DisplayLayout.Override.CellPadding = 0;
  704. appearance9.BackColor = System.Drawing.Color.LightSteelBlue;
  705. appearance9.TextHAlign = Infragistics.Win.HAlign.Center;
  706. this.ultraGrid1.DisplayLayout.Override.HeaderAppearance = appearance9;
  707. this.ultraGrid1.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
  708. this.ultraGrid1.DisplayLayout.Override.MinRowHeight = 21;
  709. appearance10.BackColor = System.Drawing.Color.LightSteelBlue;
  710. this.ultraGrid1.DisplayLayout.Override.RowSelectorAppearance = appearance10;
  711. this.ultraGrid1.DisplayLayout.Override.RowSelectorHeaderStyle = Infragistics.Win.UltraWinGrid.RowSelectorHeaderStyle.SeparateElement;
  712. this.ultraGrid1.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
  713. this.ultraGrid1.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
  714. this.ultraGrid1.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
  715. this.ultraGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
  716. this.ultraGrid1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  717. this.ultraGrid1.Location = new System.Drawing.Point(0, 64);
  718. this.ultraGrid1.Name = "ultraGrid1";
  719. this.ultraGrid1.Size = new System.Drawing.Size(1006, 329);
  720. this.ultraGrid1.TabIndex = 18;
  721. this.ultraGrid1.Text = "ultraGrid1";
  722. this.ultraGrid1.AfterRowActivate += new System.EventHandler(this.ultraGrid1_AfterRowActivate);
  723. //
  724. // panel1
  725. //
  726. this.panel1.Controls.Add(this.txt_folder);
  727. this.panel1.Controls.Add(this.btn_ImportAll);
  728. this.panel1.Controls.Add(this.comboBox1);
  729. this.panel1.Controls.Add(this.ultraCheckEditor5);
  730. this.panel1.Controls.Add(this.ultraCheckEditor4);
  731. this.panel1.Controls.Add(this.textBox4);
  732. this.panel1.Controls.Add(this.ultraCheckEditor3);
  733. this.panel1.Controls.Add(this.textBox3);
  734. this.panel1.Controls.Add(this.ultraCheckEditor2);
  735. this.panel1.Controls.Add(this.textBox2);
  736. this.panel1.Controls.Add(this.ultraCheckEditor1);
  737. this.panel1.Controls.Add(this.textBox1);
  738. this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
  739. this.panel1.Location = new System.Drawing.Point(0, 0);
  740. this.panel1.Name = "panel1";
  741. this.panel1.Size = new System.Drawing.Size(1006, 64);
  742. this.panel1.TabIndex = 5;
  743. //
  744. // txt_folder
  745. //
  746. this.txt_folder.AutoSize = true;
  747. this.txt_folder.FlatMode = true;
  748. this.txt_folder.ImeMode = System.Windows.Forms.ImeMode.NoControl;
  749. this.txt_folder.Location = new System.Drawing.Point(809, 34);
  750. this.txt_folder.Name = "txt_folder";
  751. this.txt_folder.Size = new System.Drawing.Size(181, 19);
  752. this.txt_folder.TabIndex = 13;
  753. this.txt_folder.Text = "C:\\CA\\";
  754. //
  755. // btn_ImportAll
  756. //
  757. this.btn_ImportAll.Location = new System.Drawing.Point(676, 31);
  758. this.btn_ImportAll.Name = "btn_ImportAll";
  759. this.btn_ImportAll.Size = new System.Drawing.Size(130, 27);
  760. this.btn_ImportAll.TabIndex = 12;
  761. this.btn_ImportAll.Text = "批量导入权限文件";
  762. this.btn_ImportAll.Click += new System.EventHandler(this.btn_ImportAll_Click);
  763. //
  764. // comboBox1
  765. //
  766. this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  767. this.comboBox1.Enabled = false;
  768. this.comboBox1.FormattingEnabled = true;
  769. this.comboBox1.Items.AddRange(new object[] {
  770. "MENU",
  771. "FORM"});
  772. this.comboBox1.Location = new System.Drawing.Point(80, 33);
  773. this.comboBox1.Name = "comboBox1";
  774. this.comboBox1.Size = new System.Drawing.Size(168, 20);
  775. this.comboBox1.TabIndex = 11;
  776. //
  777. // ultraCheckEditor5
  778. //
  779. this.ultraCheckEditor5.Location = new System.Drawing.Point(9, 33);
  780. this.ultraCheckEditor5.Name = "ultraCheckEditor5";
  781. this.ultraCheckEditor5.Size = new System.Drawing.Size(72, 20);
  782. this.ultraCheckEditor5.TabIndex = 10;
  783. this.ultraCheckEditor5.Tag = "comboBox1";
  784. this.ultraCheckEditor5.Text = "类 型";
  785. this.ultraCheckEditor5.CheckedChanged += new System.EventHandler(this.ultraCheckEditor_CheckedChanged);
  786. //
  787. // ultraCheckEditor4
  788. //
  789. this.ultraCheckEditor4.Location = new System.Drawing.Point(292, 32);
  790. this.ultraCheckEditor4.Name = "ultraCheckEditor4";
  791. this.ultraCheckEditor4.Size = new System.Drawing.Size(72, 20);
  792. this.ultraCheckEditor4.TabIndex = 9;
  793. this.ultraCheckEditor4.Tag = "textBox4";
  794. this.ultraCheckEditor4.Text = "备 注";
  795. this.ultraCheckEditor4.CheckedChanged += new System.EventHandler(this.ultraCheckEditor_CheckedChanged);
  796. //
  797. // textBox4
  798. //
  799. this.textBox4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  800. this.textBox4.Enabled = false;
  801. this.textBox4.Location = new System.Drawing.Point(364, 32);
  802. this.textBox4.Name = "textBox4";
  803. this.textBox4.Size = new System.Drawing.Size(263, 21);
  804. this.textBox4.TabIndex = 8;
  805. //
  806. // ultraCheckEditor3
  807. //
  808. this.ultraCheckEditor3.Location = new System.Drawing.Point(682, 5);
  809. this.ultraCheckEditor3.Name = "ultraCheckEditor3";
  810. this.ultraCheckEditor3.Size = new System.Drawing.Size(72, 20);
  811. this.ultraCheckEditor3.TabIndex = 7;
  812. this.ultraCheckEditor3.Tag = "textBox3";
  813. this.ultraCheckEditor3.Text = "组 名";
  814. this.ultraCheckEditor3.CheckedChanged += new System.EventHandler(this.ultraCheckEditor_CheckedChanged);
  815. //
  816. // textBox3
  817. //
  818. this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  819. this.textBox3.Enabled = false;
  820. this.textBox3.Location = new System.Drawing.Point(754, 5);
  821. this.textBox3.Name = "textBox3";
  822. this.textBox3.Size = new System.Drawing.Size(199, 21);
  823. this.textBox3.TabIndex = 6;
  824. //
  825. // ultraCheckEditor2
  826. //
  827. this.ultraCheckEditor2.BackColor = System.Drawing.SystemColors.Control;
  828. this.ultraCheckEditor2.Location = new System.Drawing.Point(292, 5);
  829. this.ultraCheckEditor2.Name = "ultraCheckEditor2";
  830. this.ultraCheckEditor2.Size = new System.Drawing.Size(72, 20);
  831. this.ultraCheckEditor2.TabIndex = 5;
  832. this.ultraCheckEditor2.Tag = "textBox2";
  833. this.ultraCheckEditor2.Text = "键 值";
  834. this.ultraCheckEditor2.CheckedChanged += new System.EventHandler(this.ultraCheckEditor_CheckedChanged);
  835. //
  836. // textBox2
  837. //
  838. this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  839. this.textBox2.Enabled = false;
  840. this.textBox2.Location = new System.Drawing.Point(364, 5);
  841. this.textBox2.Name = "textBox2";
  842. this.textBox2.Size = new System.Drawing.Size(263, 21);
  843. this.textBox2.TabIndex = 4;
  844. //
  845. // ultraCheckEditor1
  846. //
  847. this.ultraCheckEditor1.Location = new System.Drawing.Point(8, 5);
  848. this.ultraCheckEditor1.Name = "ultraCheckEditor1";
  849. this.ultraCheckEditor1.Size = new System.Drawing.Size(72, 20);
  850. this.ultraCheckEditor1.TabIndex = 3;
  851. this.ultraCheckEditor1.Tag = "textBox1";
  852. this.ultraCheckEditor1.Text = "菜 单 名";
  853. this.ultraCheckEditor1.CheckedChanged += new System.EventHandler(this.ultraCheckEditor_CheckedChanged);
  854. //
  855. // textBox1
  856. //
  857. this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  858. this.textBox1.Enabled = false;
  859. this.textBox1.Location = new System.Drawing.Point(80, 5);
  860. this.textBox1.Name = "textBox1";
  861. this.textBox1.Size = new System.Drawing.Size(168, 21);
  862. this.textBox1.TabIndex = 1;
  863. //
  864. // _FrmBase_Toolbars_Dock_Area_Left
  865. //
  866. this._FrmBase_Toolbars_Dock_Area_Left.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
  867. this._FrmBase_Toolbars_Dock_Area_Left.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(229)))), ((int)(((byte)(215)))));
  868. this._FrmBase_Toolbars_Dock_Area_Left.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Left;
  869. this._FrmBase_Toolbars_Dock_Area_Left.ForeColor = System.Drawing.SystemColors.ControlText;
  870. this._FrmBase_Toolbars_Dock_Area_Left.Location = new System.Drawing.Point(0, 25);
  871. this._FrmBase_Toolbars_Dock_Area_Left.Name = "_FrmBase_Toolbars_Dock_Area_Left";
  872. this._FrmBase_Toolbars_Dock_Area_Left.Size = new System.Drawing.Size(0, 708);
  873. this._FrmBase_Toolbars_Dock_Area_Left.ToolbarsManager = this.ultraToolbarsManager1;
  874. //
  875. // _FrmBase_Toolbars_Dock_Area_Right
  876. //
  877. this._FrmBase_Toolbars_Dock_Area_Right.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
  878. this._FrmBase_Toolbars_Dock_Area_Right.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(229)))), ((int)(((byte)(215)))));
  879. this._FrmBase_Toolbars_Dock_Area_Right.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Right;
  880. this._FrmBase_Toolbars_Dock_Area_Right.ForeColor = System.Drawing.SystemColors.ControlText;
  881. this._FrmBase_Toolbars_Dock_Area_Right.Location = new System.Drawing.Point(1012, 25);
  882. this._FrmBase_Toolbars_Dock_Area_Right.Name = "_FrmBase_Toolbars_Dock_Area_Right";
  883. this._FrmBase_Toolbars_Dock_Area_Right.Size = new System.Drawing.Size(0, 708);
  884. this._FrmBase_Toolbars_Dock_Area_Right.ToolbarsManager = this.ultraToolbarsManager1;
  885. //
  886. // _FrmBase_Toolbars_Dock_Area_Top
  887. //
  888. this._FrmBase_Toolbars_Dock_Area_Top.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
  889. this._FrmBase_Toolbars_Dock_Area_Top.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(229)))), ((int)(((byte)(215)))));
  890. this._FrmBase_Toolbars_Dock_Area_Top.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Top;
  891. this._FrmBase_Toolbars_Dock_Area_Top.ForeColor = System.Drawing.SystemColors.ControlText;
  892. this._FrmBase_Toolbars_Dock_Area_Top.Location = new System.Drawing.Point(0, 0);
  893. this._FrmBase_Toolbars_Dock_Area_Top.Name = "_FrmBase_Toolbars_Dock_Area_Top";
  894. this._FrmBase_Toolbars_Dock_Area_Top.Size = new System.Drawing.Size(1012, 25);
  895. this._FrmBase_Toolbars_Dock_Area_Top.ToolbarsManager = this.ultraToolbarsManager1;
  896. //
  897. // _FrmBase_Toolbars_Dock_Area_Bottom
  898. //
  899. this._FrmBase_Toolbars_Dock_Area_Bottom.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
  900. this._FrmBase_Toolbars_Dock_Area_Bottom.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(229)))), ((int)(((byte)(215)))));
  901. this._FrmBase_Toolbars_Dock_Area_Bottom.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Bottom;
  902. this._FrmBase_Toolbars_Dock_Area_Bottom.ForeColor = System.Drawing.SystemColors.ControlText;
  903. this._FrmBase_Toolbars_Dock_Area_Bottom.Location = new System.Drawing.Point(0, 733);
  904. this._FrmBase_Toolbars_Dock_Area_Bottom.Name = "_FrmBase_Toolbars_Dock_Area_Bottom";
  905. this._FrmBase_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(1012, 0);
  906. this._FrmBase_Toolbars_Dock_Area_Bottom.ToolbarsManager = this.ultraToolbarsManager1;
  907. //
  908. // ultraToolbarsManager3
  909. //
  910. this.ultraToolbarsManager3.DesignerFlags = 1;
  911. this.ultraToolbarsManager3.LockToolbars = true;
  912. this.ultraToolbarsManager3.MdiMergeable = false;
  913. this.ultraToolbarsManager3.ShowQuickCustomizeButton = false;
  914. this.ultraToolbarsManager3.Style = Infragistics.Win.UltraWinToolbars.ToolbarStyle.Office2000;
  915. buttonTool35.SharedProps.Caption = "上移";
  916. buttonTool35.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  917. buttonTool36.SharedProps.Caption = "下移";
  918. buttonTool36.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  919. buttonTool37.SharedProps.Caption = "左移";
  920. buttonTool37.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  921. buttonTool38.SharedProps.Caption = "右移";
  922. buttonTool38.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  923. buttonTool39.SharedProps.Caption = "保存";
  924. buttonTool39.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  925. buttonTool40.SharedProps.Caption = "刷新";
  926. buttonTool40.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  927. this.ultraToolbarsManager3.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
  928. buttonTool35,
  929. buttonTool36,
  930. buttonTool37,
  931. buttonTool38,
  932. buttonTool39,
  933. buttonTool40});
  934. //
  935. // dstToolBar
  936. //
  937. this.dstToolBar.DataSetName = "dstToolBar";
  938. this.dstToolBar.Tables.AddRange(new System.Data.DataTable[] {
  939. this.Toolbar});
  940. //
  941. // Toolbar
  942. //
  943. this.Toolbar.Columns.AddRange(new System.Data.DataColumn[] {
  944. this.KEY_,
  945. this.CATEGORY,
  946. this.CAPTION,
  947. this.TYPE,
  948. this.PARENTMENU,
  949. this.SETINFO,
  950. this.ROLEID});
  951. this.Toolbar.TableName = "Toolbar";
  952. //
  953. // KEY_
  954. //
  955. this.KEY_.Caption = "类";
  956. this.KEY_.ColumnName = "KEY_";
  957. //
  958. // CATEGORY
  959. //
  960. this.CATEGORY.Caption = "工程";
  961. this.CATEGORY.ColumnName = "CATEGORY";
  962. //
  963. // CAPTION
  964. //
  965. this.CAPTION.Caption = "菜单名";
  966. this.CAPTION.ColumnName = "CAPTION";
  967. //
  968. // TYPE
  969. //
  970. this.TYPE.Caption = "类型";
  971. this.TYPE.ColumnName = "TYPE";
  972. //
  973. // PARENTMENU
  974. //
  975. this.PARENTMENU.Caption = "父菜单";
  976. this.PARENTMENU.ColumnName = "PARENTMENU";
  977. //
  978. // SETINFO
  979. //
  980. this.SETINFO.Caption = "菜单结构";
  981. this.SETINFO.ColumnName = "SETINFO";
  982. //
  983. // ROLEID
  984. //
  985. this.ROLEID.Caption = "角色ID";
  986. this.ROLEID.ColumnName = "ROLEID";
  987. //
  988. // FrmPurviewSet
  989. //
  990. this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
  991. this.ClientSize = new System.Drawing.Size(1012, 733);
  992. this.Controls.Add(this.ultraExpandableGroupBox1);
  993. this.Controls.Add(this.ultraExpandableGroupBox2);
  994. this.Controls.Add(this._FrmBase_Toolbars_Dock_Area_Left);
  995. this.Controls.Add(this._FrmBase_Toolbars_Dock_Area_Right);
  996. this.Controls.Add(this._FrmBase_Toolbars_Dock_Area_Top);
  997. this.Controls.Add(this._FrmBase_Toolbars_Dock_Area_Bottom);
  998. this.Name = "FrmPurviewSet";
  999. this.Text = "权限设置";
  1000. this.Load += new System.EventHandler(this.FrmPurviewSet_Load);
  1001. ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).EndInit();
  1002. ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).EndInit();
  1003. ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager1)).EndInit();
  1004. ((System.ComponentModel.ISupportInitialize)(this.ultraGrid2)).EndInit();
  1005. ((System.ComponentModel.ISupportInitialize)(this.dataSet2)).EndInit();
  1006. ((System.ComponentModel.ISupportInitialize)(this.dataTable2)).EndInit();
  1007. ((System.ComponentModel.ISupportInitialize)(this.ultraTree1)).EndInit();
  1008. ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox2)).EndInit();
  1009. this.ultraExpandableGroupBox2.ResumeLayout(false);
  1010. this.ultraExpandableGroupBoxPanel2.ResumeLayout(false);
  1011. ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager2)).EndInit();
  1012. ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).EndInit();
  1013. this.ultraExpandableGroupBox1.ResumeLayout(false);
  1014. this.ultraExpandableGroupBoxPanel1.ResumeLayout(false);
  1015. ((System.ComponentModel.ISupportInitialize)(this.ultraGrid1)).EndInit();
  1016. this.panel1.ResumeLayout(false);
  1017. this.panel1.PerformLayout();
  1018. ((System.ComponentModel.ISupportInitialize)(this.txt_folder)).EndInit();
  1019. ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager3)).EndInit();
  1020. ((System.ComponentModel.ISupportInitialize)(this.dstToolBar)).EndInit();
  1021. ((System.ComponentModel.ISupportInitialize)(this.Toolbar)).EndInit();
  1022. this.ResumeLayout(false);
  1023. }
  1024. #endregion
  1025. void AddMenuNode(UltraTreeNode pNode, DataTable dtab)
  1026. {
  1027. DataView dvw = dtab.Copy().DefaultView;
  1028. if (pNode.Key != "")
  1029. dvw.RowFilter = "PARENTID='" + pNode.Key + "'";
  1030. else
  1031. dvw.RowFilter = "PARENTID is null";
  1032. dvw.Sort = "XH ASC";
  1033. foreach (DataRowView drow in dvw)
  1034. {
  1035. UltraTreeNode tNode = pNode.Nodes.Add(drow["ID_"].ToString(), drow["CAPTION"].ToString());
  1036. AddMenuNode(tNode, dtab);
  1037. }
  1038. }
  1039. private void ultraCheckEditor_CheckedChanged(object sender, System.EventArgs e)
  1040. {
  1041. foreach (Control c in (sender as Infragistics.Win.UltraWinEditors.UltraCheckEditor).Parent.Controls)
  1042. {
  1043. if (c.Name == (sender as Infragistics.Win.UltraWinEditors.UltraCheckEditor).Tag.ToString())
  1044. {
  1045. c.Enabled = (sender as Infragistics.Win.UltraWinEditors.UltraCheckEditor).Checked;
  1046. if (c.Enabled)
  1047. c.BackColor = Color.LightCyan;
  1048. else
  1049. c.BackColor = Color.Silver;
  1050. }
  1051. }
  1052. }
  1053. #region "Menu ToolBar"
  1054. private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
  1055. {
  1056. switch (e.Tool.Key)
  1057. {
  1058. case "query":
  1059. this.DoQuery();
  1060. break;
  1061. case "add":
  1062. this.DoAdd();
  1063. break;
  1064. case "del":
  1065. this.DoDel();
  1066. break;
  1067. case "edit":
  1068. this.DoEdit();
  1069. break;
  1070. case "close":
  1071. this.Close();
  1072. break;
  1073. }
  1074. }
  1075. private void DoQuery()
  1076. {
  1077. string strOut = "";
  1078. DataSet obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
  1079. "Core.Mes.ServerCommon.UserInfoManager", "GetPt_menuinfo", new object[] { this.GetStrWhere() }, out strOut) as DataSet;
  1080. if (strOut != "")
  1081. {
  1082. MessageBox.Show(strOut); return;
  1083. }
  1084. obj.Tables[0].TableName = this.dataSet1.Tables[0].TableName;
  1085. this.dataSet1.Clear();
  1086. this.dataSet1.Merge(obj.Tables[0]);
  1087. }
  1088. private void DoAdd()
  1089. {
  1090. if (Core.Mes.ClientFrameWork.ClientCommon._UserInfo.LoginID.ToUpper() != "ROOT" & Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserRoleID.ToUpper() != "ADMIN001")
  1091. {
  1092. MessageBox.Show("权限不够,请与管理员联系", "系统提示");
  1093. return;
  1094. }
  1095. string strOut = "";
  1096. string strCaption = this.textBox1.Text.Trim();
  1097. string strKey = this.textBox2.Text.Trim();
  1098. string strCategory = this.textBox3.Text.Trim();
  1099. string strRemark = this.textBox4.Text.Trim();
  1100. string strType = comboBox1.Text.Trim();
  1101. if (strCaption.Length == 0) strOut = "请输入菜单名!";
  1102. if (strKey.Length == 0) strOut = "请输入键值!";
  1103. if (strCategory.Length == 0) strOut = "请输入组名!";
  1104. if (strOut != "")
  1105. {
  1106. MessageBox.Show(strOut); return;
  1107. }
  1108. object obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
  1109. "Core.Mes.ServerCommon.UserInfoManager", "InsertPt_menuinfo", new object[]{ strKey,
  1110. strCategory, strCaption, strRemark, strType}, out strOut);
  1111. if (strOut != "")
  1112. {
  1113. MessageBox.Show(strOut); return;
  1114. }
  1115. string strID = obj.ToString();
  1116. UltraGridRow ugr = this.ultraGrid1.DisplayLayout.Bands[0].AddNew();
  1117. ugr.Cells["ID_"].Value = strID;
  1118. ugr.Cells["KEY_"].Value = strKey;
  1119. ugr.Cells["CATEGORY"].Value = strCategory;
  1120. ugr.Cells["CAPTION"].Value = strCaption;
  1121. ugr.Cells["REMARK"].Value = strRemark;
  1122. ugr.Cells["TYPE"].Value = strType;
  1123. ugr.Update();
  1124. ugr.Activated = true;
  1125. }
  1126. private void DoDel()
  1127. {
  1128. if (Core.Mes.ClientFrameWork.ClientCommon._UserInfo.LoginID.ToUpper() != "ROOT" & Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserRoleID.ToUpper() != "ADMIN001")
  1129. {
  1130. MessageBox.Show("权限不够,请与管理员联系", "系统提示");
  1131. return;
  1132. }
  1133. string strOut = "";
  1134. UltraGridRow ugr = this.ultraGrid1.ActiveRow;
  1135. if (ugr == null)
  1136. {
  1137. MessageBox.Show("请选择要删除的行!");
  1138. return;
  1139. }
  1140. if (MessageBox.Show("是否确认删除选择的菜单信息?", "提示", MessageBoxButtons.YesNo) == DialogResult.No)
  1141. {
  1142. return;
  1143. }
  1144. int rowIndex = ugr.Index;
  1145. string strID = ugr.Cells["ID_"].Text;
  1146. object obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
  1147. "Core.Mes.ServerCommon.UserInfoManager", "DeletePt_menuinfo", new object[] { strID }, out strOut);
  1148. if (strOut != "")
  1149. {
  1150. MessageBox.Show(strOut); return;
  1151. }
  1152. ugr.Delete(false);
  1153. if (this.ultraGrid1.Rows.Count > 0)
  1154. {
  1155. if (rowIndex <= this.ultraGrid1.Rows.Count - 1)
  1156. this.ultraGrid1.Rows[rowIndex].Activate();
  1157. else
  1158. this.ultraGrid1.Rows[this.ultraGrid1.Rows.Count - 1].Activate();
  1159. }
  1160. MessageBox.Show("删除成功!");
  1161. }
  1162. private void DoEdit()
  1163. {
  1164. if (Core.Mes.ClientFrameWork.ClientCommon._UserInfo.LoginID.ToUpper() != "ROOT" & Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserRoleID.ToUpper() != "ADMIN001")
  1165. {
  1166. MessageBox.Show("权限不够,请与管理员联系", "系统提示");
  1167. return;
  1168. }
  1169. UltraGridRow ugr = this.ultraGrid1.ActiveRow;
  1170. if (ugr == null)
  1171. {
  1172. MessageBox.Show("请选择要修改的行!");
  1173. return;
  1174. }
  1175. string strOut = "";
  1176. string strID = ugr.Cells["ID_"].Text;
  1177. string strCaption = this.textBox1.Text.Trim();
  1178. string strKey = this.textBox2.Text.Trim();
  1179. string strCategory = this.textBox3.Text.Trim();
  1180. string strRemark = this.textBox4.Text.Trim();
  1181. string strType = comboBox1.Text.Trim();
  1182. if (strCaption.Length == 0) strOut = "请输入菜单名!";
  1183. if (strKey.Length == 0) strOut = "请输入键值!";
  1184. if (strCategory.Length == 0) strOut = "请输入组名!";
  1185. if (strOut != "")
  1186. {
  1187. MessageBox.Show(strOut); return;
  1188. }
  1189. if (MessageBox.Show("是否确认修改选择的菜单信息?", "提示", MessageBoxButtons.YesNo) == DialogResult.No)
  1190. {
  1191. return;
  1192. }
  1193. object obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
  1194. "Core.Mes.ServerCommon.UserInfoManager", "UpdatePt_menuinfo", new object[]{ strID, strKey,
  1195. strCategory, strCaption, strRemark, strType}, out strOut);
  1196. if (strOut != "")
  1197. {
  1198. MessageBox.Show(strOut); return;
  1199. }
  1200. ugr.Cells["KEY_"].Value = strKey;
  1201. ugr.Cells["CATEGORY"].Value = strCategory;
  1202. ugr.Cells["CAPTION"].Value = strCaption;
  1203. ugr.Cells["REMARK"].Value = strRemark;
  1204. ugr.Cells["TYPE"].Value = strType;
  1205. ugr.Update();
  1206. MessageBox.Show("修改成功!");
  1207. }
  1208. #endregion
  1209. #region "Role ToolBar"
  1210. private void ultraToolbarsManager2_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
  1211. {
  1212. switch (e.Tool.Key)
  1213. {
  1214. case "refresh":
  1215. this.DoRefresh();
  1216. break;
  1217. case "select":
  1218. DoSelect();
  1219. break;
  1220. case "remove":
  1221. this.DoRemove();
  1222. break;
  1223. case "clear":
  1224. this.DoClear();
  1225. break;
  1226. case "copy":
  1227. this.DoCopy();
  1228. break;
  1229. case "plast":
  1230. this.DoPlast();
  1231. break;
  1232. case "save":
  1233. this.DoSave();
  1234. break;
  1235. case "left":
  1236. this.DoLeft();
  1237. break;
  1238. case "up":
  1239. this.DoUp();
  1240. break;
  1241. case "right":
  1242. this.DoRight();
  1243. break;
  1244. case "down":
  1245. this.DoDown();
  1246. break;
  1247. case "IMPORT":
  1248. this.Import();
  1249. break;
  1250. }
  1251. }
  1252. private void DoRefresh()
  1253. {
  1254. string strOut = "";
  1255. string MethodName = "";
  1256. object obj = null;
  1257. if (Core.Mes.ClientFrameWork.ClientCommon._UserInfo.LoginID.ToUpper() != "ROOT" & Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserRoleID.ToUpper() != "ADMIN001")
  1258. {
  1259. obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
  1260. "Core.Mes.ServerCommon.UserInfoManager", "GetUam_role", null, out strOut);
  1261. }
  1262. {
  1263. obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
  1264. "Core.Mes.ServerCommon.UserInfoManager", "GetUser_Uam_Role", new object[] { RightsComm.GetChildDpt()}, out strOut);
  1265. }
  1266. if (strOut != "")
  1267. {
  1268. MessageBox.Show(strOut); return;
  1269. }
  1270. if (obj != null)
  1271. {
  1272. (obj as System.Data.DataSet).Tables[0].TableName = this.dataSet2.Tables[0].TableName;
  1273. this.dataSet2.Clear();
  1274. this.dataSet2.Merge((obj as System.Data.DataSet).Tables[0]);
  1275. }
  1276. }
  1277. private void DoSelect()
  1278. {
  1279. UltraGridRow ugr1 = this.ultraGrid1.ActiveRow;
  1280. UltraGridRow ugr2 = this.ultraGrid2.ActiveRow;
  1281. if (ugr1 == null)
  1282. {
  1283. MessageBox.Show("请选择菜单信息!"); return;
  1284. }
  1285. if (ugr2 == null)
  1286. {
  1287. MessageBox.Show("请选择角色信息!"); return;
  1288. }
  1289. string strID = ugr1.Cells["ID_"].Text;
  1290. string strName = ugr1.Cells["CAPTION"].Text;
  1291. if (CheckIsReKey(strID, ultraTree1.Nodes))
  1292. {
  1293. MessageBox.Show("键值重复!");
  1294. return;
  1295. }
  1296. try
  1297. {
  1298. if (this.ultraTree1.SelectedNodes.Count > 0)
  1299. {
  1300. Infragistics.Win.UltraWinTree.UltraTreeNode utn = new Infragistics.Win.UltraWinTree.UltraTreeNode(strID, strName);
  1301. utn.Tag = ugr1.Cells["ID_"].Text;
  1302. this.ultraTree1.SelectedNodes[0].Nodes.Add(utn);
  1303. }
  1304. else
  1305. {
  1306. Infragistics.Win.UltraWinTree.UltraTreeNode utn = new Infragistics.Win.UltraWinTree.UltraTreeNode(strID, strName);
  1307. utn.Tag = ugr1.Cells["ID_"].Text;
  1308. this.ultraTree1.Nodes.Add(utn);
  1309. }
  1310. }
  1311. catch (Exception ex)
  1312. {
  1313. MessageBox.Show(ex.Message);
  1314. }
  1315. }
  1316. private void DoRemove()
  1317. {
  1318. if (this.ultraTree1.SelectedNodes.Count == 0)
  1319. {
  1320. MessageBox.Show("请选择所要移除的菜单!"); return;
  1321. }
  1322. if (MessageBox.Show("是否确认移除选中的菜单!", "提示", MessageBoxButtons.YesNo) == DialogResult.No)
  1323. {
  1324. return;
  1325. }
  1326. if (this.ultraTree1.SelectedNodes.Count > 0)
  1327. {
  1328. this.ultraTree1.SelectedNodes[0].Remove();
  1329. }
  1330. }
  1331. private void DoClear()
  1332. {
  1333. if (MessageBox.Show("是否确认清除该角色的所要菜单!", "提示", MessageBoxButtons.YesNo) == DialogResult.No)
  1334. {
  1335. return;
  1336. }
  1337. this.ultraTree1.Nodes.Clear();
  1338. }
  1339. private void DoCopy()
  1340. {
  1341. UltraGridRow ugr = this.ultraGrid2.ActiveRow;
  1342. if (ugr == null)
  1343. {
  1344. MessageBox.Show("请选择要复制的角色!"); return;
  1345. }
  1346. foreach (UltraGridRow r in this.ultraGrid2.Rows)
  1347. {
  1348. r.Appearance.ForeColor = Color.Black;
  1349. }
  1350. ugr.Appearance.ForeColor = Color.Red;
  1351. }
  1352. private void DoPlast()
  1353. {
  1354. UltraGridRow nugr = this.ultraGrid2.ActiveRow;
  1355. if (nugr == null)
  1356. {
  1357. MessageBox.Show("请选择复制到角色!"); return;
  1358. }
  1359. if (nugr.Appearance.ForeColor == Color.Red)
  1360. {
  1361. MessageBox.Show("复制到自己?"); return;
  1362. }
  1363. UltraGridRow ugr = null;
  1364. foreach (UltraGridRow r in this.ultraGrid2.Rows)
  1365. {
  1366. if (r.Appearance.ForeColor == Color.Red)
  1367. {
  1368. ugr = r;
  1369. ugr.Appearance.ForeColor = Color.Black;
  1370. continue;
  1371. }
  1372. }
  1373. if (ugr == null)
  1374. {
  1375. MessageBox.Show("请选择要复制的角色!"); return;
  1376. }
  1377. if (MessageBox.Show("是否确认复制选定的配置信息,原信息将被删除!", "提示", MessageBoxButtons.YesNo) == DialogResult.No)
  1378. return;
  1379. string strOut = "";
  1380. object obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
  1381. "Core.Mes.ServerCommon.UserInfoManager", "PlastPt_menuinfo", new object[]{ ugr.Cells["ROLEID"].Text,
  1382. nugr.Cells["ROLEID"].Text}, out strOut);
  1383. if (strOut != "")
  1384. {
  1385. MessageBox.Show(strOut); return;
  1386. }
  1387. this.RefreshTreeDate();
  1388. }
  1389. private void DoSave()
  1390. {
  1391. UltraGridRow ugr = this.ultraGrid2.ActiveRow;
  1392. if (ugr == null)
  1393. {
  1394. MessageBox.Show("请选择要保存的角色信息!"); return;
  1395. }
  1396. ArrayList arMenuID = new ArrayList();
  1397. ArrayList arSetInfo = new ArrayList();
  1398. foreach (Infragistics.Win.UltraWinTree.UltraTreeNode utn in this.ultraTree1.Nodes)
  1399. {
  1400. arMenuID.Add(utn.Tag);
  1401. arSetInfo.Add(utn.Index.ToString().PadLeft(3, '0'));
  1402. if (utn.Nodes.Count > 0)
  1403. {
  1404. this.SetChildNodes(utn, utn.Index.ToString().PadLeft(3, '0'), ref arMenuID, ref arSetInfo);
  1405. }
  1406. }
  1407. string strOut = "";
  1408. object obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
  1409. "Core.Mes.ServerCommon.UserInfoManager", "SavePt_usermenuinfo", new object[]{ ugr.Cells["ROLEID"].Text,
  1410. arMenuID, arSetInfo}, out strOut);
  1411. if (strOut != "")
  1412. {
  1413. MessageBox.Show(strOut); return;
  1414. }
  1415. MessageBox.Show("保存成功!");
  1416. }
  1417. private void DoLeft()
  1418. {
  1419. Infragistics.Win.UltraWinTree.UltraTreeNode utn = this.ultraTree1.ActiveNode;
  1420. if (utn == null) return;
  1421. if (utn.Level == 0)
  1422. return;
  1423. else if (utn.Level == 1)
  1424. utn.Reposition(this.ultraTree1.Nodes);
  1425. else
  1426. {
  1427. Infragistics.Win.UltraWinTree.UltraTreeNode putn = utn.Parent.Parent;
  1428. utn.Reposition(putn.Nodes);
  1429. }
  1430. }
  1431. private void DoUp()
  1432. {
  1433. Infragistics.Win.UltraWinTree.UltraTreeNode utn = this.ultraTree1.ActiveNode;
  1434. if (utn == null) return;
  1435. int i = utn.Index;
  1436. if (i == 0) return;
  1437. if (utn.Level == 0)
  1438. utn.Reposition(this.ultraTree1.Nodes, i - 1);
  1439. else
  1440. utn.Reposition(utn.Parent.Nodes, i - 1);
  1441. }
  1442. private void DoRight()
  1443. {
  1444. Infragistics.Win.UltraWinTree.UltraTreeNode utn = this.ultraTree1.ActiveNode;
  1445. if (utn == null) return;
  1446. int i = utn.Index;
  1447. if (i == 0) return;
  1448. Infragistics.Win.UltraWinTree.UltraTreeNode putn;
  1449. if (utn.Level == 0)
  1450. putn = this.ultraTree1.Nodes[i - 1];
  1451. else
  1452. putn = utn.Parent.Nodes[i - 1];
  1453. utn.Reposition(putn.Nodes);
  1454. putn.ExpandAll();
  1455. }
  1456. private void DoDown()
  1457. {
  1458. Infragistics.Win.UltraWinTree.UltraTreeNode utn = this.ultraTree1.ActiveNode;
  1459. if (utn == null) return;
  1460. int i = utn.Index;
  1461. if (utn.Level == 0)
  1462. {
  1463. if (i == this.ultraTree1.Nodes.Count - 1) return;
  1464. utn.Reposition(this.ultraTree1.Nodes, i + 1);
  1465. }
  1466. else
  1467. {
  1468. if (i == utn.Parent.Nodes.Count - 1) return;
  1469. utn.Reposition(utn.Parent.Nodes, i + 1);
  1470. }
  1471. }
  1472. private void Import()
  1473. {
  1474. try
  1475. {
  1476. if (this.ultraGrid2.ActiveRow == null)
  1477. {
  1478. MessageBox.Show("请选择你要导入权限文件的角色", "系统提示");
  1479. return;
  1480. }
  1481. string FileName = "";
  1482. System.Windows.Forms.OpenFileDialog openfile = new OpenFileDialog();
  1483. openfile.Filter = "*.xml|";
  1484. openfile.Title = "选择权限文件";
  1485. openfile.ShowDialog();
  1486. if (openfile.FileName.Length > 0)
  1487. {
  1488. FileName = openfile.FileName;
  1489. }
  1490. else
  1491. {
  1492. return;
  1493. }
  1494. string RoleID = this.ultraGrid2.ActiveRow.Cells[0].Text;
  1495. if (ImportRole(FileName, RoleID))
  1496. {
  1497. MessageBox.Show("导入成功", "系统提示");
  1498. RefreshTreeDate();
  1499. }
  1500. else
  1501. {
  1502. MessageBox.Show("导入失败", "系统提示");
  1503. }
  1504. }
  1505. catch (System.Exception ex)
  1506. {
  1507. System.Diagnostics.Debug.WriteLine(ex.ToString());
  1508. }
  1509. }
  1510. #endregion
  1511. private string GetStrWhere()
  1512. {
  1513. string str = "";
  1514. if (this.ultraCheckEditor1.Checked && this.textBox1.Text.Trim().Length > 0)
  1515. {
  1516. str += string.Format(" and caption like '%{0}%' ", this.textBox1.Text.Trim());
  1517. }
  1518. if (this.ultraCheckEditor2.Checked && this.textBox2.Text.Trim().Length > 0)
  1519. {
  1520. str += string.Format(" and upper(key_) like upper('%{0}%') ", this.textBox2.Text.Trim());
  1521. }
  1522. if (this.ultraCheckEditor3.Checked && this.textBox3.Text.Trim().Length > 0)
  1523. {
  1524. str += string.Format(" and upper(category) like upper('%{0}%') ", this.textBox3.Text.Trim());
  1525. }
  1526. if (this.ultraCheckEditor4.Checked && this.textBox4.Text.Trim().Length > 0)
  1527. {
  1528. str += string.Format(" and upper(remark) like upper('%{0}%') ", this.textBox4.Text.Trim());
  1529. }
  1530. if (ultraCheckEditor5.Checked && comboBox1.Text.Trim().Length > 0)
  1531. {
  1532. str += string.Format(" and type='{0}'", comboBox1.Text.Trim());
  1533. }
  1534. return str;
  1535. }
  1536. UltraTreeNode findNode(string sKey, UltraTreeNode pNode)
  1537. {
  1538. for (int i = 0; i < pNode.Nodes.Count; i++)
  1539. {
  1540. if (pNode.Nodes[i].Key == sKey)
  1541. return pNode.Nodes[i];
  1542. else
  1543. {
  1544. UltraTreeNode fNode = findNode(sKey, pNode.Nodes[i]);
  1545. if (fNode != null)
  1546. return fNode;
  1547. }
  1548. }
  1549. return null;
  1550. }
  1551. private void ultraGrid1_AfterRowActivate(object sender, System.EventArgs e)
  1552. {
  1553. UltraGridRow ugr = this.ultraGrid1.ActiveRow;
  1554. this.textBox1.Text = ugr.Cells["CAPTION"].Text;
  1555. this.textBox2.Text = ugr.Cells["KEY_"].Text;
  1556. this.textBox3.Text = ugr.Cells["CATEGORY"].Text;
  1557. this.textBox4.Text = ugr.Cells["REMARK"].Text;
  1558. comboBox1.Text = ugr.Cells["TYPE"].Text;
  1559. }
  1560. void fillCheckMenuToRole(TreeNodesCollection pNodes, TreeNodesCollection menuNodes)
  1561. {
  1562. for (int i = 0; i < menuNodes.Count; i++)
  1563. {
  1564. if (menuNodes[i].CheckedState == CheckState.Checked)
  1565. {
  1566. if (CheckIsReKey(menuNodes[i].Key, ultraTree1.Nodes))
  1567. {
  1568. MessageBox.Show("键值重复!");
  1569. return;
  1570. }
  1571. UltraTreeNode nNode = new UltraTreeNode(menuNodes[i].Key, menuNodes[i].Text);
  1572. nNode.Tag = menuNodes[i].Key;
  1573. pNodes.Add(nNode);
  1574. if (menuNodes[i].Nodes.Count > 0)
  1575. fillCheckMenuToRole(nNode.Nodes, menuNodes[i].Nodes);
  1576. }
  1577. }
  1578. }
  1579. private bool CheckIsReKey(string sFindID, TreeNodesCollection uNodes)
  1580. {
  1581. foreach (UltraTreeNode node in uNodes)
  1582. {
  1583. if (node.Tag.ToString() == sFindID) return true;
  1584. if (node.Nodes.Count > 0)
  1585. {
  1586. if (CheckIsReKey(sFindID, node.Nodes))
  1587. return true;
  1588. }
  1589. }
  1590. return false;
  1591. }
  1592. private void SetChildNodes(Infragistics.Win.UltraWinTree.UltraTreeNode putn, string strParent, ref ArrayList ar1, ref ArrayList ar2)
  1593. {
  1594. string strSetInfo = "";
  1595. string strCurr = "";
  1596. foreach (Infragistics.Win.UltraWinTree.UltraTreeNode utn in putn.Nodes)
  1597. {
  1598. strCurr = utn.Index.ToString().PadLeft(3, '0');
  1599. strSetInfo = strParent + strCurr;
  1600. ar1.Add(utn.Tag);
  1601. ar2.Add(strSetInfo);
  1602. if (utn.Nodes.Count > 0)
  1603. {
  1604. this.SetChildNodes(utn, strSetInfo, ref ar1, ref ar2);
  1605. }
  1606. }
  1607. }
  1608. private void FrmPurviewSet_Load(object sender, System.EventArgs e)
  1609. {
  1610. comboBox1.SelectedIndex = 0;
  1611. if (Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserName == "谢康宏")
  1612. this.btn_ImportAll.Visible = this.txt_folder.Visible = true;
  1613. else
  1614. this.btn_ImportAll.Visible = this.txt_folder.Visible = false;
  1615. //this.btn_ImportAll.Visible = this.txt_folder.Visible = true;
  1616. }
  1617. private void ultraGrid2_AfterRowActivate(object sender, System.EventArgs e)
  1618. {
  1619. this.RefreshTreeDate();
  1620. }
  1621. private void RefreshTreeDate()
  1622. {
  1623. string strOut = "";
  1624. DataSet obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
  1625. "Core.Mes.ServerCommon.UserInfoManager", "GetPurviewTree",
  1626. new object[] { string.Format(" and roleid = '{0}'", this.ultraGrid2.ActiveRow.Cells["ROLEID"].Text) },
  1627. out strOut) as DataSet;
  1628. if (strOut != "")
  1629. {
  1630. MessageBox.Show(strOut); return;
  1631. }
  1632. this.ultraTree1.Nodes.Clear();
  1633. for (int i = 0; i < obj.Tables[0].Rows.Count; i++)
  1634. {
  1635. try
  1636. {
  1637. string strSet = obj.Tables[0].Rows[i]["SETINFO"].ToString();
  1638. string strName = obj.Tables[0].Rows[i]["MENUNAME"].ToString();
  1639. string strKey = obj.Tables[0].Rows[i]["MENUID"].ToString();
  1640. Infragistics.Win.UltraWinTree.UltraTreeNode utn = null;
  1641. utn = new Infragistics.Win.UltraWinTree.UltraTreeNode(strSet, strName);
  1642. utn.Tag = strKey;
  1643. if (strSet.Length == 3)
  1644. {
  1645. this.ultraTree1.Nodes.Add(utn);
  1646. }
  1647. else
  1648. {
  1649. addChildNode(ultraTree1.Nodes, utn);
  1650. //foreach ( Infragistics.Win.UltraWinTree.UltraTreeNode cutn in this.ultraTree1.Nodes )
  1651. //{
  1652. // if (cutn.Key == strSet.Substring(0, cutn.Key.Length))
  1653. // {
  1654. // utn = new Infragistics.Win.UltraWinTree.UltraTreeNode(strSet, strName);
  1655. // utn.Tag = strKey;
  1656. // cutn.Nodes.Add(utn);
  1657. // }
  1658. // if (cutn.Nodes.Count > 0)
  1659. // {
  1660. // this.LoadChileNodes(cutn, strSet, strKey, strName);
  1661. // }
  1662. //}
  1663. }
  1664. }
  1665. catch { }
  1666. }
  1667. }
  1668. private void addChildNode(Infragistics.Win.UltraWinTree.TreeNodesCollection nodeColl, Infragistics.Win.UltraWinTree.UltraTreeNode newNode)
  1669. {
  1670. foreach (Infragistics.Win.UltraWinTree.UltraTreeNode aNode in nodeColl)
  1671. {
  1672. if (aNode.Key == newNode.Key.Substring(0, newNode.Key.Length - 3))
  1673. {
  1674. aNode.Nodes.Add(newNode);
  1675. break;
  1676. }
  1677. else
  1678. {
  1679. addChildNode(aNode.Nodes, newNode);
  1680. }
  1681. }
  1682. }
  1683. void checkParent(UltraTreeNode node)
  1684. {
  1685. if (node.Parent != null)
  1686. {
  1687. node.Parent.CheckedState = CheckState.Checked;
  1688. checkParent(node.Parent);
  1689. }
  1690. }
  1691. void checkChild(UltraTreeNode node, CheckState state)
  1692. {
  1693. foreach (UltraTreeNode cNode in node.Nodes)
  1694. {
  1695. cNode.CheckedState = state;
  1696. checkChild(cNode, state);
  1697. }
  1698. }
  1699. void resetParent(UltraTreeNode node)
  1700. {
  1701. if (node.Parent != null)
  1702. {
  1703. bool NoCheck = true;
  1704. foreach (UltraTreeNode cNode in node.Parent.Nodes)
  1705. {
  1706. if (cNode == node) continue;
  1707. if (cNode.CheckedState == CheckState.Checked)
  1708. {
  1709. NoCheck = false;
  1710. break;
  1711. }
  1712. }
  1713. if (NoCheck)
  1714. {
  1715. node.Parent.CheckedState = CheckState.Unchecked;
  1716. resetParent(node.Parent);
  1717. }
  1718. }
  1719. }
  1720. void menuPosSave()
  1721. {
  1722. string err = "";
  1723. ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon", "Core.Mes.ServerCommon.UserInfoManager", "updatePT_MenuPos",
  1724. new object[] { dtMenuPos }, out err);
  1725. if (err != "")
  1726. {
  1727. MessageBox.Show("保存失败!/n" + err);
  1728. }
  1729. else
  1730. {
  1731. dtMenuPos.AcceptChanges();
  1732. }
  1733. }
  1734. #region ultraTree2 dragdrop
  1735. private UltraTree_DropHightLight_DrawFilter_Class UltraTree_DropHightLight_DrawFilter = new UltraTree_DropHightLight_DrawFilter_Class();
  1736. private void UltraTree_DropHightLight_DrawFilter_Invalidate(object sender, System.EventArgs e)
  1737. {
  1738. }
  1739. private void UltraTree_DropHightLight_DrawFilter_QueryStateAllowedForNode(Object sender, UltraTree_DropHightLight_DrawFilter_Class.QueryStateAllowedForNodeEventArgs e)
  1740. {
  1741. if (e.Node.Level == 0)
  1742. {
  1743. e.StatesAllowed = DropLinePositionEnum.OnNode;
  1744. return;
  1745. }
  1746. if (e.Node.Selected)
  1747. {
  1748. e.StatesAllowed = DropLinePositionEnum.AboveNode | DropLinePositionEnum.BelowNode;
  1749. UltraTree_DropHightLight_DrawFilter.EdgeSensitivity = e.Node.Bounds.Height / 2;
  1750. }
  1751. else
  1752. {
  1753. UltraTree_DropHightLight_DrawFilter.EdgeSensitivity = e.Node.Bounds.Height / 3;
  1754. }
  1755. }
  1756. #endregion
  1757. private bool ImportRole(string FileName,string RoleID)
  1758. {
  1759. try
  1760. {
  1761. if (!System.IO.File.Exists(FileName))
  1762. {
  1763. return false;
  1764. }
  1765. Infragistics.Win.UltraWinToolbars.UltraToolbarsManager ImpToolbar = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager();
  1766. ImpToolbar.LoadFromXml(FileName);
  1767. this.dstToolBar.Tables[0].Clear();
  1768. this.dstToolBar.Tables[0].AcceptChanges();
  1769. string SetInfo = "";
  1770. string ParentSetInfo = "";
  1771. if (ImpToolbar.Toolbars.Count > 0)
  1772. {
  1773. for (int i = 0; i < ImpToolbar.Toolbars.Count; i++)
  1774. {
  1775. for (int j = 0; j < ImpToolbar.Toolbars[i].Tools.Count; j++)
  1776. {
  1777. SetInfo = Convert.ToString(j).PadLeft(3, '0');
  1778. GetMenuInfo(ImpToolbar.Toolbars[i].Tools[j], "ROOT", SetInfo, ParentSetInfo, RoleID);
  1779. }
  1780. }
  1781. if (!CommitImportData())
  1782. {
  1783. return false;
  1784. }
  1785. return true;
  1786. }
  1787. return false;
  1788. }
  1789. catch (System.Exception ex)
  1790. {
  1791. System.Diagnostics.Debug.WriteLine(ex.ToString());
  1792. return false;
  1793. }
  1794. }
  1795. private void GetMenuInfo(Object MenuTool, string ParentMenuKey, string SetInfo, string ParentSetInfo, string RoleID)
  1796. {
  1797. try
  1798. {
  1799. if (MenuTool.GetType() == typeof(Infragistics.Win.UltraWinToolbars.PopupMenuTool))
  1800. {
  1801. Infragistics.Win.UltraWinToolbars.PopupMenuTool tmpPMenu = (MenuTool as Infragistics.Win.UltraWinToolbars.PopupMenuTool);
  1802. System.Data.DataRow nprow = this.dstToolBar.Tables[0].NewRow();
  1803. nprow["KEY_"] = tmpPMenu.Key.ToString();
  1804. nprow["CATEGORY"] = tmpPMenu.SharedProps.Category.ToString();
  1805. nprow["CAPTION"] = tmpPMenu.SharedProps.Caption.ToString();
  1806. nprow["TYPE"] = "MENU";
  1807. nprow["PARENTMENU"] = ParentMenuKey;
  1808. nprow["SETINFO"] = ParentSetInfo + SetInfo;
  1809. nprow["ROLEID"] = RoleID;
  1810. this.dstToolBar.Tables[0].Rows.Add(nprow);
  1811. if (tmpPMenu.Tools.Count > 0)
  1812. {
  1813. ParentSetInfo = ParentSetInfo + SetInfo;
  1814. for (int i = 0; i < tmpPMenu.Tools.Count; i++)
  1815. {
  1816. SetInfo = Convert.ToString(i).PadLeft(3, '0');
  1817. GetMenuInfo(tmpPMenu.Tools[i], tmpPMenu.Key.ToString(), SetInfo, ParentSetInfo, RoleID);
  1818. }
  1819. }
  1820. }
  1821. else
  1822. {
  1823. Infragistics.Win.UltraWinToolbars.ButtonTool tmpMenu = (MenuTool as Infragistics.Win.UltraWinToolbars.ButtonTool);
  1824. System.Data.DataRow nrow = this.dstToolBar.Tables[0].NewRow();
  1825. nrow["KEY_"] = tmpMenu.Key.ToString();
  1826. nrow["CATEGORY"] = tmpMenu.SharedProps.Category.ToString();
  1827. nrow["CAPTION"] = tmpMenu.SharedProps.Caption.ToString();
  1828. nrow["TYPE"] = "FORM";
  1829. nrow["PARENTMENU"] = ParentMenuKey;
  1830. nrow["SETINFO"] = ParentSetInfo + SetInfo;
  1831. nrow["ROLEID"] = RoleID;
  1832. this.dstToolBar.Tables[0].Rows.Add(nrow);
  1833. //this.dstToolBar.AcceptChanges();
  1834. }
  1835. }
  1836. catch (System.Exception ex)
  1837. {
  1838. System.Diagnostics.Debug.WriteLine(ex.ToString());
  1839. }
  1840. }
  1841. private bool CommitImportData()
  1842. {
  1843. try
  1844. {
  1845. if (this.dstToolBar.Tables[0].GetChanges() != null && this.dstToolBar.Tables[0].GetChanges().Rows.Count > 0)
  1846. {
  1847. string err = "";
  1848. object obj = ClientCommon._RemotingHelp.ExecuteMethod("PurviewManager",
  1849. "Core.Mes.PurviewManager.UAM_ROLE", "CommitImportData", new object[]{this.dstToolBar.Tables[0].GetChanges()}, out err);
  1850. if (obj != null && obj.ToString() == "1")
  1851. {
  1852. this.dstToolBar.Tables[0].Clear();
  1853. this.dstToolBar.AcceptChanges();
  1854. return true;
  1855. }
  1856. else if (err.Length > 0)
  1857. {
  1858. return false;
  1859. }
  1860. }
  1861. return true;
  1862. }
  1863. catch (System.Exception ex)
  1864. {
  1865. System.Diagnostics.Debug.WriteLine(ex.ToString());
  1866. return false;
  1867. }
  1868. }
  1869. private void btn_ImportAll_Click(object sender, EventArgs e)
  1870. {
  1871. try
  1872. {
  1873. string err = "";
  1874. string FileName = "";
  1875. string Folder = this.txt_folder.Text;
  1876. string RoleID = "";
  1877. object obj = ClientCommon._RemotingHelp.ExecuteMethod("PurviewManager",
  1878. "Core.Mes.PurviewManager.UAM_ROLE", "GetRoleData", null, out err);
  1879. if (obj != null)
  1880. {
  1881. foreach (System.Data.DataRow row in (obj as System.Data.DataSet).Tables[0].Rows)
  1882. {
  1883. if (row["MEMO"].GetType() != typeof(System.DBNull))
  1884. {
  1885. FileName = row["MEMO"].ToString();
  1886. FileName = @Folder + FileName;
  1887. RoleID = row["ROLEID"].ToString();
  1888. if (ImportRole(FileName, RoleID))
  1889. {
  1890. System.IO.File.Delete(FileName);
  1891. }
  1892. else
  1893. {
  1894. System.Diagnostics.Debug.WriteLine(FileName + " 失败");
  1895. }
  1896. }
  1897. }
  1898. }
  1899. }
  1900. catch (System.Exception ex)
  1901. {
  1902. System.Diagnostics.Debug.WriteLine(ex.ToString());
  1903. }
  1904. }
  1905. }//class
  1906. }