| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213 |
- using System;
- using System.Data;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- using Infragistics.Win;
- using Infragistics.Win.UltraWinGrid;
- using Infragistics.Win.UltraWinTree;
- using Core.Mes.ClientFrameWork;
- namespace Core.Mes.ClientPurviewManager
- {
- /// <summary>
- /// FrmPurviewSet 的摘要说明。
- /// </summary>
- public class FrmPurviewSet : FrmBase
- {
- #region 成员区
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager ultraToolbarsManager1;
- private System.Data.DataSet dataSet1;
- private System.Data.DataTable dataTable1;
- private System.Data.DataColumn dataColumn1;
- private System.Data.DataColumn dataColumn2;
- private System.Data.DataColumn dataColumn3;
- private System.Data.DataColumn dataColumn4;
- private Infragistics.Win.UltraWinGrid.UltraGrid ultraGrid2;
- private Infragistics.Win.UltraWinTree.UltraTree ultraTree1;
- private System.Data.DataSet dataSet2;
- private System.Data.DataTable dataTable2;
- private Infragistics.Win.Misc.UltraExpandableGroupBox ultraExpandableGroupBox2;
- private Infragistics.Win.Misc.UltraExpandableGroupBoxPanel ultraExpandableGroupBoxPanel2;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager ultraToolbarsManager2;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom;
- private System.Data.DataColumn dataColumn5;
- private System.Data.DataColumn dataColumn6;
- private System.Data.DataColumn dataColumn7;
- private System.Windows.Forms.Splitter splitter1;
- private DataColumn dataColumn8;
- private Infragistics.Win.Misc.UltraExpandableGroupBox ultraExpandableGroupBox1;
- private Infragistics.Win.Misc.UltraExpandableGroupBoxPanel ultraExpandableGroupBoxPanel1;
- private Panel panel1;
- private ComboBox comboBox1;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor ultraCheckEditor5;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor ultraCheckEditor4;
- private TextBox textBox4;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor ultraCheckEditor3;
- private TextBox textBox3;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor ultraCheckEditor2;
- private TextBox textBox2;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor ultraCheckEditor1;
- private TextBox textBox1;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _FrmBase_Toolbars_Dock_Area_Left;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _FrmBase_Toolbars_Dock_Area_Right;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _FrmBase_Toolbars_Dock_Area_Top;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _FrmBase_Toolbars_Dock_Area_Bottom;
- private UltraGrid ultraGrid1;
- private System.ComponentModel.IContainer components;
- private DataColumn dataColumn9;
- private DataColumn dataColumn10;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager ultraToolbarsManager3;
- private DataSet dstToolBar;
- private DataTable Toolbar;
- private DataColumn KEY_;
- private DataColumn CATEGORY;
- private DataColumn CAPTION;
- private DataColumn TYPE;
- private DataColumn PARENTMENU;
- private DataColumn SETINFO;
- private DataColumn ROLEID;
- private Infragistics.Win.Misc.UltraButton btn_ImportAll;
- private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_folder;
- private DataSet dataSet3;
- private Infragistics.Win.UltraWinEditors.UltraComboEditor cb_LoginID;
- private DataColumn dataColumn11;
- private Label label1;
- DataTable dtMenuPos = null;
- #endregion
- public FrmPurviewSet()
- {
- //
- // Windows 窗体设计器支持所必需的
- //
- InitializeComponent();
- //
- // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
- //
- UltraTree_DropHightLight_DrawFilter.Invalidate += new EventHandler(this.UltraTree_DropHightLight_DrawFilter_Invalidate);
- UltraTree_DropHightLight_DrawFilter.QueryStateAllowedForNode += new UltraTree_DropHightLight_DrawFilter_Class.QueryStateAllowedForNodeEventHandler(this.UltraTree_DropHightLight_DrawFilter_QueryStateAllowedForNode);
- }
- /// <summary>
- /// 清理所有正在使用的资源。
- /// </summary>
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose(disposing);
- }
- #region Windows 窗体设计器生成的代码
- /// <summary>
- /// 设计器支持所需的方法 - 不要使用代码编辑器修改
- /// 此方法的内容。
- /// </summary>
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- Infragistics.Win.UltraWinToolbars.UltraToolbar ultraToolbar2 = new Infragistics.Win.UltraWinToolbars.UltraToolbar("UltraToolbar1");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool25 = new Infragistics.Win.UltraWinToolbars.ButtonTool("query");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool26 = new Infragistics.Win.UltraWinToolbars.ButtonTool("add");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool27 = new Infragistics.Win.UltraWinToolbars.ButtonTool("del");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool28 = new Infragistics.Win.UltraWinToolbars.ButtonTool("edit");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool29 = new Infragistics.Win.UltraWinToolbars.ButtonTool("close");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool30 = new Infragistics.Win.UltraWinToolbars.ButtonTool("add");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool31 = new Infragistics.Win.UltraWinToolbars.ButtonTool("del");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool32 = new Infragistics.Win.UltraWinToolbars.ButtonTool("edit");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool33 = new Infragistics.Win.UltraWinToolbars.ButtonTool("close");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool34 = new Infragistics.Win.UltraWinToolbars.ButtonTool("query");
- Infragistics.Win.Appearance appearance12 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridBand ultraGridBand2 = new Infragistics.Win.UltraWinGrid.UltraGridBand("Table1", -1);
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn10 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ROLEID");
- Infragistics.Win.Appearance appearance13 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn11 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ROLENAME");
- Infragistics.Win.Appearance appearance14 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance15 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance16 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance17 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance18 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance19 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance20 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinTree.UltraTreeColumnSet ultraTreeColumnSet1 = new Infragistics.Win.UltraWinTree.UltraTreeColumnSet();
- Infragistics.Win.UltraWinToolbars.UltraToolbar ultraToolbar1 = new Infragistics.Win.UltraWinToolbars.UltraToolbar("UltraToolbar1");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool1 = new Infragistics.Win.UltraWinToolbars.ButtonTool("refresh");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool2 = new Infragistics.Win.UltraWinToolbars.ButtonTool("select");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool3 = new Infragistics.Win.UltraWinToolbars.ButtonTool("remove");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool4 = new Infragistics.Win.UltraWinToolbars.ButtonTool("clear");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool5 = new Infragistics.Win.UltraWinToolbars.ButtonTool("copy");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool6 = new Infragistics.Win.UltraWinToolbars.ButtonTool("plast");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool7 = new Infragistics.Win.UltraWinToolbars.ButtonTool("up");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool8 = new Infragistics.Win.UltraWinToolbars.ButtonTool("down");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool9 = new Infragistics.Win.UltraWinToolbars.ButtonTool("left");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool10 = new Infragistics.Win.UltraWinToolbars.ButtonTool("right");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool11 = new Infragistics.Win.UltraWinToolbars.ButtonTool("save");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool12 = new Infragistics.Win.UltraWinToolbars.ButtonTool("IMPORT");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool13 = new Infragistics.Win.UltraWinToolbars.ButtonTool("select");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool14 = new Infragistics.Win.UltraWinToolbars.ButtonTool("remove");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool15 = new Infragistics.Win.UltraWinToolbars.ButtonTool("save");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool16 = new Infragistics.Win.UltraWinToolbars.ButtonTool("copy");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool17 = new Infragistics.Win.UltraWinToolbars.ButtonTool("up");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool18 = new Infragistics.Win.UltraWinToolbars.ButtonTool("down");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool19 = new Infragistics.Win.UltraWinToolbars.ButtonTool("left");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool20 = new Infragistics.Win.UltraWinToolbars.ButtonTool("right");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool21 = new Infragistics.Win.UltraWinToolbars.ButtonTool("refresh");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool22 = new Infragistics.Win.UltraWinToolbars.ButtonTool("clear");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool23 = new Infragistics.Win.UltraWinToolbars.ButtonTool("plast");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool24 = new Infragistics.Win.UltraWinToolbars.ButtonTool("IMPORT");
- Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridBand ultraGridBand1 = new Infragistics.Win.UltraWinGrid.UltraGridBand("Table1", -1);
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn1 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ID_");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn2 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("KEY_");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn3 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CATEGORY");
- Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn4 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CAPTION");
- Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn5 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("REMARK");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn6 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("TYPE");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn7 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("PARENTID");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn8 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("XH");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn9 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("PATH_");
- Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance7 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance8 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance9 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance10 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance11 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool35 = new Infragistics.Win.UltraWinToolbars.ButtonTool("tlbtnUp");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool36 = new Infragistics.Win.UltraWinToolbars.ButtonTool("tlbtnDown");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool37 = new Infragistics.Win.UltraWinToolbars.ButtonTool("tlbtnLeft");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool38 = new Infragistics.Win.UltraWinToolbars.ButtonTool("tlbtnRight");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool39 = new Infragistics.Win.UltraWinToolbars.ButtonTool("tlbtnSave");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool40 = new Infragistics.Win.UltraWinToolbars.ButtonTool("tlbtnRefresh");
- this.dataSet1 = new System.Data.DataSet();
- this.dataTable1 = new System.Data.DataTable();
- this.dataColumn1 = new System.Data.DataColumn();
- this.dataColumn2 = new System.Data.DataColumn();
- this.dataColumn3 = new System.Data.DataColumn();
- this.dataColumn4 = new System.Data.DataColumn();
- this.dataColumn7 = new System.Data.DataColumn();
- this.dataColumn8 = new System.Data.DataColumn();
- this.dataColumn9 = new System.Data.DataColumn();
- this.dataColumn10 = new System.Data.DataColumn();
- this.dataColumn11 = new System.Data.DataColumn();
- this.ultraToolbarsManager1 = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components);
- this.ultraGrid2 = new Infragistics.Win.UltraWinGrid.UltraGrid();
- this.dataSet2 = new System.Data.DataSet();
- this.dataTable2 = new System.Data.DataTable();
- this.dataColumn5 = new System.Data.DataColumn();
- this.dataColumn6 = new System.Data.DataColumn();
- this.ultraTree1 = new Infragistics.Win.UltraWinTree.UltraTree();
- this.ultraExpandableGroupBox2 = new Infragistics.Win.Misc.UltraExpandableGroupBox();
- this.ultraExpandableGroupBoxPanel2 = new Infragistics.Win.Misc.UltraExpandableGroupBoxPanel();
- this.splitter1 = new System.Windows.Forms.Splitter();
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
- this.ultraToolbarsManager2 = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components);
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
- this.ultraExpandableGroupBox1 = new Infragistics.Win.Misc.UltraExpandableGroupBox();
- this.ultraExpandableGroupBoxPanel1 = new Infragistics.Win.Misc.UltraExpandableGroupBoxPanel();
- this.ultraGrid1 = new Infragistics.Win.UltraWinGrid.UltraGrid();
- this.panel1 = new System.Windows.Forms.Panel();
- this.label1 = new System.Windows.Forms.Label();
- this.cb_LoginID = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
- this.txt_folder = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
- this.btn_ImportAll = new Infragistics.Win.Misc.UltraButton();
- this.comboBox1 = new System.Windows.Forms.ComboBox();
- this.ultraCheckEditor5 = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.ultraCheckEditor4 = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.textBox4 = new System.Windows.Forms.TextBox();
- this.ultraCheckEditor3 = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.textBox3 = new System.Windows.Forms.TextBox();
- this.ultraCheckEditor2 = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.textBox2 = new System.Windows.Forms.TextBox();
- this.ultraCheckEditor1 = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.textBox1 = new System.Windows.Forms.TextBox();
- this._FrmBase_Toolbars_Dock_Area_Left = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
- this._FrmBase_Toolbars_Dock_Area_Right = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
- this._FrmBase_Toolbars_Dock_Area_Top = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
- this._FrmBase_Toolbars_Dock_Area_Bottom = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
- this.ultraToolbarsManager3 = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components);
- this.dstToolBar = new System.Data.DataSet();
- this.Toolbar = new System.Data.DataTable();
- this.KEY_ = new System.Data.DataColumn();
- this.CATEGORY = new System.Data.DataColumn();
- this.CAPTION = new System.Data.DataColumn();
- this.TYPE = new System.Data.DataColumn();
- this.PARENTMENU = new System.Data.DataColumn();
- this.SETINFO = new System.Data.DataColumn();
- this.ROLEID = new System.Data.DataColumn();
- this.dataSet3 = new System.Data.DataSet();
- ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraGrid2)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataSet2)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataTable2)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraTree1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox2)).BeginInit();
- this.ultraExpandableGroupBox2.SuspendLayout();
- this.ultraExpandableGroupBoxPanel2.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager2)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).BeginInit();
- this.ultraExpandableGroupBox1.SuspendLayout();
- this.ultraExpandableGroupBoxPanel1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.ultraGrid1)).BeginInit();
- this.panel1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.cb_LoginID)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.txt_folder)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager3)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dstToolBar)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.Toolbar)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataSet3)).BeginInit();
- this.SuspendLayout();
- //
- // dataSet1
- //
- this.dataSet1.DataSetName = "NewDataSet";
- this.dataSet1.Locale = new System.Globalization.CultureInfo("zh-CN");
- this.dataSet1.Tables.AddRange(new System.Data.DataTable[] {
- this.dataTable1});
- //
- // dataTable1
- //
- this.dataTable1.Columns.AddRange(new System.Data.DataColumn[] {
- this.dataColumn1,
- this.dataColumn2,
- this.dataColumn3,
- this.dataColumn4,
- this.dataColumn7,
- this.dataColumn8,
- this.dataColumn9,
- this.dataColumn10,
- this.dataColumn11});
- this.dataTable1.TableName = "Table1";
- //
- // dataColumn1
- //
- this.dataColumn1.ColumnName = "ID_";
- //
- // dataColumn2
- //
- this.dataColumn2.ColumnName = "KEY_";
- //
- // dataColumn3
- //
- this.dataColumn3.ColumnName = "CATEGORY";
- //
- // dataColumn4
- //
- this.dataColumn4.ColumnName = "CAPTION";
- //
- // dataColumn7
- //
- this.dataColumn7.ColumnName = "REMARK";
- //
- // dataColumn8
- //
- this.dataColumn8.ColumnName = "TYPE";
- //
- // dataColumn9
- //
- this.dataColumn9.ColumnName = "PARENTID";
- //
- // dataColumn10
- //
- this.dataColumn10.ColumnName = "XH";
- this.dataColumn10.DataType = typeof(decimal);
- //
- // dataColumn11
- //
- this.dataColumn11.Caption = "路径";
- this.dataColumn11.ColumnName = "PATH_";
- //
- // ultraToolbarsManager1
- //
- this.ultraToolbarsManager1.DesignerFlags = 1;
- this.ultraToolbarsManager1.DockWithinContainer = this;
- this.ultraToolbarsManager1.LockToolbars = true;
- this.ultraToolbarsManager1.MdiMergeable = false;
- this.ultraToolbarsManager1.ShowQuickCustomizeButton = false;
- this.ultraToolbarsManager1.Style = Infragistics.Win.UltraWinToolbars.ToolbarStyle.VisualStudio2005;
- ultraToolbar2.DockedColumn = 0;
- ultraToolbar2.DockedRow = 0;
- ultraToolbar2.Text = "UltraToolbar1";
- buttonTool26.InstanceProps.IsFirstInGroup = true;
- buttonTool27.InstanceProps.IsFirstInGroup = true;
- buttonTool28.InstanceProps.IsFirstInGroup = true;
- buttonTool29.InstanceProps.IsFirstInGroup = true;
- ultraToolbar2.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
- buttonTool25,
- buttonTool26,
- buttonTool27,
- buttonTool28,
- buttonTool29});
- this.ultraToolbarsManager1.Toolbars.AddRange(new Infragistics.Win.UltraWinToolbars.UltraToolbar[] {
- ultraToolbar2});
- buttonTool30.SharedProps.Caption = "新增";
- buttonTool30.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool31.SharedProps.Caption = "删除";
- buttonTool31.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool32.SharedProps.Caption = "修改";
- buttonTool32.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool33.SharedProps.Caption = "关闭";
- buttonTool33.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool34.SharedProps.Caption = "查询";
- buttonTool34.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- this.ultraToolbarsManager1.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
- buttonTool30,
- buttonTool31,
- buttonTool32,
- buttonTool33,
- buttonTool34});
- this.ultraToolbarsManager1.ToolClick += new Infragistics.Win.UltraWinToolbars.ToolClickEventHandler(this.ultraToolbarsManager1_ToolClick);
- //
- // ultraGrid2
- //
- this.ultraGrid2.DataSource = this.dataSet2;
- appearance12.BackColor = System.Drawing.SystemColors.Window;
- appearance12.BorderColor = System.Drawing.SystemColors.InactiveCaption;
- this.ultraGrid2.DisplayLayout.Appearance = appearance12;
- appearance13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
- ultraGridColumn10.CellAppearance = appearance13;
- ultraGridColumn10.Header.Caption = "角色名";
- ultraGridColumn10.Header.VisiblePosition = 0;
- ultraGridColumn10.Hidden = true;
- ultraGridColumn10.Width = 150;
- ultraGridColumn11.Header.Caption = "角色名";
- ultraGridColumn11.Header.VisiblePosition = 1;
- ultraGridColumn11.Width = 210;
- ultraGridBand2.Columns.AddRange(new object[] {
- ultraGridColumn10,
- ultraGridColumn11});
- this.ultraGrid2.DisplayLayout.BandsSerializer.Add(ultraGridBand2);
- this.ultraGrid2.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
- this.ultraGrid2.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
- appearance14.BackColor = System.Drawing.SystemColors.ActiveBorder;
- appearance14.BackColor2 = System.Drawing.SystemColors.ControlDark;
- appearance14.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
- appearance14.BorderColor = System.Drawing.SystemColors.Window;
- this.ultraGrid2.DisplayLayout.GroupByBox.Appearance = appearance14;
- appearance15.ForeColor = System.Drawing.SystemColors.GrayText;
- this.ultraGrid2.DisplayLayout.GroupByBox.BandLabelAppearance = appearance15;
- this.ultraGrid2.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
- this.ultraGrid2.DisplayLayout.GroupByBox.Hidden = true;
- appearance16.BackColor = System.Drawing.SystemColors.ControlLightLight;
- appearance16.BackColor2 = System.Drawing.SystemColors.Control;
- appearance16.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
- appearance16.ForeColor = System.Drawing.SystemColors.GrayText;
- this.ultraGrid2.DisplayLayout.GroupByBox.PromptAppearance = appearance16;
- this.ultraGrid2.DisplayLayout.MaxColScrollRegions = 1;
- this.ultraGrid2.DisplayLayout.MaxRowScrollRegions = 1;
- appearance17.BackColor = System.Drawing.SystemColors.Window;
- appearance17.ForeColor = System.Drawing.SystemColors.ControlText;
- this.ultraGrid2.DisplayLayout.Override.ActiveCellAppearance = appearance17;
- appearance18.BackColor = System.Drawing.SystemColors.Highlight;
- appearance18.ForeColor = System.Drawing.SystemColors.HighlightText;
- this.ultraGrid2.DisplayLayout.Override.ActiveRowAppearance = appearance18;
- this.ultraGrid2.DisplayLayout.Override.AllowRowFiltering = Infragistics.Win.DefaultableBoolean.True;
- this.ultraGrid2.DisplayLayout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.False;
- this.ultraGrid2.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
- this.ultraGrid2.DisplayLayout.Override.CellPadding = 0;
- appearance19.BackColor = System.Drawing.Color.LightSteelBlue;
- appearance19.TextHAlign = Infragistics.Win.HAlign.Center;
- this.ultraGrid2.DisplayLayout.Override.HeaderAppearance = appearance19;
- this.ultraGrid2.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
- this.ultraGrid2.DisplayLayout.Override.MinRowHeight = 21;
- appearance20.BackColor = System.Drawing.Color.LightSteelBlue;
- this.ultraGrid2.DisplayLayout.Override.RowSelectorAppearance = appearance20;
- this.ultraGrid2.DisplayLayout.Override.RowSelectorHeaderStyle = Infragistics.Win.UltraWinGrid.RowSelectorHeaderStyle.SeparateElement;
- this.ultraGrid2.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
- this.ultraGrid2.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
- this.ultraGrid2.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
- this.ultraGrid2.Dock = System.Windows.Forms.DockStyle.Left;
- this.ultraGrid2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.ultraGrid2.Location = new System.Drawing.Point(0, 27);
- this.ultraGrid2.Name = "ultraGrid2";
- this.ultraGrid2.Size = new System.Drawing.Size(248, 244);
- this.ultraGrid2.TabIndex = 5;
- this.ultraGrid2.Text = "ultraGrid2";
- this.ultraGrid2.AfterRowActivate += new System.EventHandler(this.ultraGrid2_AfterRowActivate);
- //
- // dataSet2
- //
- this.dataSet2.DataSetName = "NewDataSet";
- this.dataSet2.Locale = new System.Globalization.CultureInfo("zh-CN");
- this.dataSet2.Tables.AddRange(new System.Data.DataTable[] {
- this.dataTable2});
- //
- // dataTable2
- //
- this.dataTable2.Columns.AddRange(new System.Data.DataColumn[] {
- this.dataColumn5,
- this.dataColumn6});
- this.dataTable2.TableName = "Table1";
- //
- // dataColumn5
- //
- this.dataColumn5.ColumnName = "ROLEID";
- //
- // dataColumn6
- //
- this.dataColumn6.ColumnName = "ROLENAME";
- //
- // ultraTree1
- //
- this.ultraTree1.ColumnSettings.RootColumnSet = ultraTreeColumnSet1;
- this.ultraTree1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ultraTree1.HideSelection = false;
- this.ultraTree1.Location = new System.Drawing.Point(251, 27);
- this.ultraTree1.Name = "ultraTree1";
- this.ultraTree1.Size = new System.Drawing.Size(991, 244);
- this.ultraTree1.TabIndex = 6;
- //
- // ultraExpandableGroupBox2
- //
- this.ultraExpandableGroupBox2.Controls.Add(this.ultraExpandableGroupBoxPanel2);
- this.ultraExpandableGroupBox2.Dock = System.Windows.Forms.DockStyle.Bottom;
- this.ultraExpandableGroupBox2.ExpandedSize = new System.Drawing.Size(1012, 293);
- this.ultraExpandableGroupBox2.Location = new System.Drawing.Point(0, 440);
- this.ultraExpandableGroupBox2.Name = "ultraExpandableGroupBox2";
- this.ultraExpandableGroupBox2.Size = new System.Drawing.Size(1248, 293);
- this.ultraExpandableGroupBox2.SupportThemes = false;
- this.ultraExpandableGroupBox2.TabIndex = 7;
- this.ultraExpandableGroupBox2.Text = "权限设置";
- this.ultraExpandableGroupBox2.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.Office2000;
- //
- // ultraExpandableGroupBoxPanel2
- //
- this.ultraExpandableGroupBoxPanel2.Controls.Add(this.ultraTree1);
- this.ultraExpandableGroupBoxPanel2.Controls.Add(this.splitter1);
- this.ultraExpandableGroupBoxPanel2.Controls.Add(this.ultraGrid2);
- this.ultraExpandableGroupBoxPanel2.Controls.Add(this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left);
- this.ultraExpandableGroupBoxPanel2.Controls.Add(this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right);
- this.ultraExpandableGroupBoxPanel2.Controls.Add(this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top);
- this.ultraExpandableGroupBoxPanel2.Controls.Add(this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom);
- this.ultraExpandableGroupBoxPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ultraExpandableGroupBoxPanel2.Location = new System.Drawing.Point(3, 19);
- this.ultraExpandableGroupBoxPanel2.Name = "ultraExpandableGroupBoxPanel2";
- this.ultraExpandableGroupBoxPanel2.Size = new System.Drawing.Size(1242, 271);
- this.ultraExpandableGroupBoxPanel2.TabIndex = 0;
- //
- // splitter1
- //
- this.splitter1.Location = new System.Drawing.Point(248, 27);
- this.splitter1.Name = "splitter1";
- this.splitter1.Size = new System.Drawing.Size(3, 244);
- this.splitter1.TabIndex = 11;
- this.splitter1.TabStop = false;
- //
- // _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left
- //
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.BackColor = System.Drawing.SystemColors.Control;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Left;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.ForeColor = System.Drawing.SystemColors.ControlText;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.Location = new System.Drawing.Point(0, 27);
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.Name = "_ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left";
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.Size = new System.Drawing.Size(0, 244);
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Left.ToolbarsManager = this.ultraToolbarsManager2;
- //
- // ultraToolbarsManager2
- //
- this.ultraToolbarsManager2.DesignerFlags = 1;
- this.ultraToolbarsManager2.DockWithinContainer = this.ultraExpandableGroupBoxPanel2;
- this.ultraToolbarsManager2.LockToolbars = true;
- this.ultraToolbarsManager2.MdiMergeable = false;
- this.ultraToolbarsManager2.ShowFullMenusDelay = 500;
- this.ultraToolbarsManager2.ShowQuickCustomizeButton = false;
- this.ultraToolbarsManager2.Style = Infragistics.Win.UltraWinToolbars.ToolbarStyle.VisualStudio2005;
- ultraToolbar1.DockedColumn = 0;
- ultraToolbar1.DockedRow = 0;
- ultraToolbar1.Text = "UltraToolbar1";
- buttonTool2.InstanceProps.IsFirstInGroup = true;
- buttonTool4.InstanceProps.IsFirstInGroup = true;
- buttonTool5.InstanceProps.IsFirstInGroup = true;
- buttonTool7.InstanceProps.IsFirstInGroup = true;
- buttonTool11.InstanceProps.IsFirstInGroup = true;
- buttonTool12.InstanceProps.IsFirstInGroup = true;
- ultraToolbar1.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
- buttonTool1,
- buttonTool2,
- buttonTool3,
- buttonTool4,
- buttonTool5,
- buttonTool6,
- buttonTool7,
- buttonTool8,
- buttonTool9,
- buttonTool10,
- buttonTool11,
- buttonTool12});
- this.ultraToolbarsManager2.Toolbars.AddRange(new Infragistics.Win.UltraWinToolbars.UltraToolbar[] {
- ultraToolbar1});
- buttonTool13.SharedProps.Caption = "选取";
- buttonTool13.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool14.SharedProps.Caption = "移除";
- buttonTool14.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool15.SharedProps.Caption = "保存";
- buttonTool15.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool16.SharedProps.Caption = "复制";
- buttonTool16.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool17.SharedProps.Caption = "上移";
- buttonTool17.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool18.SharedProps.Caption = "下移";
- buttonTool18.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool19.SharedProps.Caption = "左移";
- buttonTool19.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool20.SharedProps.Caption = "右移";
- buttonTool20.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool21.SharedProps.Caption = "刷新";
- buttonTool21.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool22.SharedProps.Caption = "清空";
- buttonTool22.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool23.SharedProps.Caption = "粘贴";
- buttonTool23.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool24.SharedProps.Caption = "导入";
- buttonTool24.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.TextOnlyAlways;
- this.ultraToolbarsManager2.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
- buttonTool13,
- buttonTool14,
- buttonTool15,
- buttonTool16,
- buttonTool17,
- buttonTool18,
- buttonTool19,
- buttonTool20,
- buttonTool21,
- buttonTool22,
- buttonTool23,
- buttonTool24});
- this.ultraToolbarsManager2.ToolClick += new Infragistics.Win.UltraWinToolbars.ToolClickEventHandler(this.ultraToolbarsManager2_ToolClick);
- //
- // _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right
- //
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.BackColor = System.Drawing.SystemColors.Control;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Right;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.ForeColor = System.Drawing.SystemColors.ControlText;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.Location = new System.Drawing.Point(1242, 27);
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.Name = "_ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right";
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.Size = new System.Drawing.Size(0, 244);
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Right.ToolbarsManager = this.ultraToolbarsManager2;
- //
- // _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top
- //
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.BackColor = System.Drawing.SystemColors.Control;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Top;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.ForeColor = System.Drawing.SystemColors.ControlText;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.Location = new System.Drawing.Point(0, 0);
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.Name = "_ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top";
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.Size = new System.Drawing.Size(1242, 27);
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Top.ToolbarsManager = this.ultraToolbarsManager2;
- //
- // _ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom
- //
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.BackColor = System.Drawing.SystemColors.Control;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Bottom;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.ForeColor = System.Drawing.SystemColors.ControlText;
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.Location = new System.Drawing.Point(0, 271);
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.Name = "_ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom";
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(1242, 0);
- this._ultraExpandableGroupBoxPanel2_Toolbars_Dock_Area_Bottom.ToolbarsManager = this.ultraToolbarsManager2;
- //
- // ultraExpandableGroupBox1
- //
- this.ultraExpandableGroupBox1.Controls.Add(this.ultraExpandableGroupBoxPanel1);
- this.ultraExpandableGroupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ultraExpandableGroupBox1.ExpandedSize = new System.Drawing.Size(1012, 416);
- this.ultraExpandableGroupBox1.Location = new System.Drawing.Point(0, 52);
- this.ultraExpandableGroupBox1.Name = "ultraExpandableGroupBox1";
- this.ultraExpandableGroupBox1.Size = new System.Drawing.Size(1248, 388);
- this.ultraExpandableGroupBox1.SupportThemes = false;
- this.ultraExpandableGroupBox1.TabIndex = 8;
- this.ultraExpandableGroupBox1.Text = "菜单信息设置";
- this.ultraExpandableGroupBox1.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.Office2000;
- //
- // ultraExpandableGroupBoxPanel1
- //
- this.ultraExpandableGroupBoxPanel1.Controls.Add(this.ultraGrid1);
- this.ultraExpandableGroupBoxPanel1.Controls.Add(this.panel1);
- this.ultraExpandableGroupBoxPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ultraExpandableGroupBoxPanel1.Location = new System.Drawing.Point(3, 19);
- this.ultraExpandableGroupBoxPanel1.Name = "ultraExpandableGroupBoxPanel1";
- this.ultraExpandableGroupBoxPanel1.Size = new System.Drawing.Size(1242, 366);
- this.ultraExpandableGroupBoxPanel1.TabIndex = 0;
- //
- // ultraGrid1
- //
- this.ultraGrid1.DataSource = this.dataSet1;
- appearance1.BackColor = System.Drawing.SystemColors.Window;
- appearance1.BorderColor = System.Drawing.SystemColors.InactiveCaption;
- this.ultraGrid1.DisplayLayout.Appearance = appearance1;
- ultraGridColumn1.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGridColumn1.Header.VisiblePosition = 0;
- ultraGridColumn1.Hidden = true;
- ultraGridColumn2.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGridColumn2.Header.Caption = "键值";
- ultraGridColumn2.Header.VisiblePosition = 2;
- ultraGridColumn2.Width = 300;
- ultraGridColumn3.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
- ultraGridColumn3.CellAppearance = appearance2;
- ultraGridColumn3.Header.Caption = "组名";
- ultraGridColumn3.Header.VisiblePosition = 3;
- ultraGridColumn3.Width = 200;
- ultraGridColumn4.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
- ultraGridColumn4.CellAppearance = appearance3;
- ultraGridColumn4.Header.Caption = "菜单名";
- ultraGridColumn4.Header.VisiblePosition = 1;
- ultraGridColumn4.Width = 200;
- ultraGridColumn5.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGridColumn5.Header.Caption = "备注";
- ultraGridColumn5.Header.VisiblePosition = 5;
- ultraGridColumn5.Width = 150;
- ultraGridColumn6.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGridColumn6.Header.Caption = "类型";
- ultraGridColumn6.Header.VisiblePosition = 4;
- ultraGridColumn7.Header.VisiblePosition = 6;
- ultraGridColumn7.Hidden = true;
- ultraGridColumn8.Header.VisiblePosition = 7;
- ultraGridColumn8.Hidden = true;
- ultraGridColumn9.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGridColumn9.Header.Caption = "菜单路径";
- ultraGridColumn9.Header.VisiblePosition = 8;
- ultraGridColumn9.Width = 332;
- ultraGridBand1.Columns.AddRange(new object[] {
- ultraGridColumn1,
- ultraGridColumn2,
- ultraGridColumn3,
- ultraGridColumn4,
- ultraGridColumn5,
- ultraGridColumn6,
- ultraGridColumn7,
- ultraGridColumn8,
- ultraGridColumn9});
- this.ultraGrid1.DisplayLayout.BandsSerializer.Add(ultraGridBand1);
- this.ultraGrid1.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
- this.ultraGrid1.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
- appearance4.BackColor = System.Drawing.SystemColors.ActiveBorder;
- appearance4.BackColor2 = System.Drawing.SystemColors.ControlDark;
- appearance4.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
- appearance4.BorderColor = System.Drawing.SystemColors.Window;
- this.ultraGrid1.DisplayLayout.GroupByBox.Appearance = appearance4;
- appearance5.ForeColor = System.Drawing.SystemColors.GrayText;
- this.ultraGrid1.DisplayLayout.GroupByBox.BandLabelAppearance = appearance5;
- this.ultraGrid1.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
- this.ultraGrid1.DisplayLayout.GroupByBox.Hidden = true;
- appearance6.BackColor = System.Drawing.SystemColors.ControlLightLight;
- appearance6.BackColor2 = System.Drawing.SystemColors.Control;
- appearance6.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
- appearance6.ForeColor = System.Drawing.SystemColors.GrayText;
- this.ultraGrid1.DisplayLayout.GroupByBox.PromptAppearance = appearance6;
- this.ultraGrid1.DisplayLayout.MaxColScrollRegions = 1;
- this.ultraGrid1.DisplayLayout.MaxRowScrollRegions = 1;
- appearance7.BackColor = System.Drawing.SystemColors.Window;
- appearance7.ForeColor = System.Drawing.SystemColors.ControlText;
- this.ultraGrid1.DisplayLayout.Override.ActiveCellAppearance = appearance7;
- appearance8.BackColor = System.Drawing.SystemColors.Highlight;
- appearance8.ForeColor = System.Drawing.SystemColors.HighlightText;
- this.ultraGrid1.DisplayLayout.Override.ActiveRowAppearance = appearance8;
- this.ultraGrid1.DisplayLayout.Override.AllowRowFiltering = Infragistics.Win.DefaultableBoolean.True;
- this.ultraGrid1.DisplayLayout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.False;
- this.ultraGrid1.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
- this.ultraGrid1.DisplayLayout.Override.CellPadding = 0;
- appearance9.BackColor = System.Drawing.Color.LightSteelBlue;
- appearance9.TextHAlign = Infragistics.Win.HAlign.Center;
- this.ultraGrid1.DisplayLayout.Override.HeaderAppearance = appearance9;
- this.ultraGrid1.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
- this.ultraGrid1.DisplayLayout.Override.MinRowHeight = 21;
- appearance10.BackColor = System.Drawing.Color.LightSteelBlue;
- this.ultraGrid1.DisplayLayout.Override.RowSelectorAppearance = appearance10;
- this.ultraGrid1.DisplayLayout.Override.RowSelectorHeaderStyle = Infragistics.Win.UltraWinGrid.RowSelectorHeaderStyle.SeparateElement;
- this.ultraGrid1.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
- this.ultraGrid1.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
- this.ultraGrid1.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
- this.ultraGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ultraGrid1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.ultraGrid1.Location = new System.Drawing.Point(0, 64);
- this.ultraGrid1.Name = "ultraGrid1";
- this.ultraGrid1.Size = new System.Drawing.Size(1242, 302);
- this.ultraGrid1.TabIndex = 18;
- this.ultraGrid1.Text = "ultraGrid1";
- this.ultraGrid1.AfterRowActivate += new System.EventHandler(this.ultraGrid1_AfterRowActivate);
- //
- // panel1
- //
- this.panel1.Controls.Add(this.label1);
- this.panel1.Controls.Add(this.cb_LoginID);
- this.panel1.Controls.Add(this.txt_folder);
- this.panel1.Controls.Add(this.btn_ImportAll);
- this.panel1.Controls.Add(this.comboBox1);
- this.panel1.Controls.Add(this.ultraCheckEditor5);
- this.panel1.Controls.Add(this.ultraCheckEditor4);
- this.panel1.Controls.Add(this.textBox4);
- this.panel1.Controls.Add(this.ultraCheckEditor3);
- this.panel1.Controls.Add(this.textBox3);
- this.panel1.Controls.Add(this.ultraCheckEditor2);
- this.panel1.Controls.Add(this.textBox2);
- this.panel1.Controls.Add(this.ultraCheckEditor1);
- this.panel1.Controls.Add(this.textBox1);
- this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
- this.panel1.Location = new System.Drawing.Point(0, 0);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(1242, 64);
- this.panel1.TabIndex = 5;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(699, 39);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(41, 12);
- this.label1.TabIndex = 15;
- this.label1.Text = "登录ID";
- //
- // cb_LoginID
- //
- this.cb_LoginID.AlphaBlendMode = Infragistics.Win.AlphaBlendMode.Disabled;
- appearance11.BorderColor = System.Drawing.Color.Black;
- this.cb_LoginID.Appearance = appearance11;
- this.cb_LoginID.AutoSize = true;
- this.cb_LoginID.Location = new System.Drawing.Point(754, 31);
- this.cb_LoginID.Name = "cb_LoginID";
- this.cb_LoginID.Size = new System.Drawing.Size(199, 21);
- this.cb_LoginID.TabIndex = 14;
- this.cb_LoginID.ValueChanged += new System.EventHandler(this.cb_LoginID_ValueChanged);
- //
- // txt_folder
- //
- this.txt_folder.AutoSize = true;
- this.txt_folder.FlatMode = true;
- this.txt_folder.ImeMode = System.Windows.Forms.ImeMode.NoControl;
- this.txt_folder.Location = new System.Drawing.Point(1109, 6);
- this.txt_folder.Name = "txt_folder";
- this.txt_folder.Size = new System.Drawing.Size(181, 19);
- this.txt_folder.TabIndex = 13;
- this.txt_folder.Text = "C:\\CA\\";
- //
- // btn_ImportAll
- //
- this.btn_ImportAll.Location = new System.Drawing.Point(976, 3);
- this.btn_ImportAll.Name = "btn_ImportAll";
- this.btn_ImportAll.Size = new System.Drawing.Size(130, 27);
- this.btn_ImportAll.TabIndex = 12;
- this.btn_ImportAll.Text = "批量导入权限文件";
- this.btn_ImportAll.Click += new System.EventHandler(this.btn_ImportAll_Click);
- //
- // comboBox1
- //
- this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.comboBox1.Enabled = false;
- this.comboBox1.FormattingEnabled = true;
- this.comboBox1.Items.AddRange(new object[] {
- "MENU",
- "FORM"});
- this.comboBox1.Location = new System.Drawing.Point(80, 33);
- this.comboBox1.Name = "comboBox1";
- this.comboBox1.Size = new System.Drawing.Size(168, 20);
- this.comboBox1.TabIndex = 11;
- //
- // ultraCheckEditor5
- //
- this.ultraCheckEditor5.Location = new System.Drawing.Point(9, 33);
- this.ultraCheckEditor5.Name = "ultraCheckEditor5";
- this.ultraCheckEditor5.Size = new System.Drawing.Size(72, 20);
- this.ultraCheckEditor5.TabIndex = 10;
- this.ultraCheckEditor5.Tag = "comboBox1";
- this.ultraCheckEditor5.Text = "类 型";
- this.ultraCheckEditor5.CheckedChanged += new System.EventHandler(this.ultraCheckEditor_CheckedChanged);
- //
- // ultraCheckEditor4
- //
- this.ultraCheckEditor4.Location = new System.Drawing.Point(292, 32);
- this.ultraCheckEditor4.Name = "ultraCheckEditor4";
- this.ultraCheckEditor4.Size = new System.Drawing.Size(72, 20);
- this.ultraCheckEditor4.TabIndex = 9;
- this.ultraCheckEditor4.Tag = "textBox4";
- this.ultraCheckEditor4.Text = "备 注";
- this.ultraCheckEditor4.CheckedChanged += new System.EventHandler(this.ultraCheckEditor_CheckedChanged);
- //
- // textBox4
- //
- this.textBox4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.textBox4.Enabled = false;
- this.textBox4.Location = new System.Drawing.Point(364, 32);
- this.textBox4.Name = "textBox4";
- this.textBox4.Size = new System.Drawing.Size(263, 21);
- this.textBox4.TabIndex = 8;
- //
- // ultraCheckEditor3
- //
- this.ultraCheckEditor3.Location = new System.Drawing.Point(682, 5);
- this.ultraCheckEditor3.Name = "ultraCheckEditor3";
- this.ultraCheckEditor3.Size = new System.Drawing.Size(72, 20);
- this.ultraCheckEditor3.TabIndex = 7;
- this.ultraCheckEditor3.Tag = "textBox3";
- this.ultraCheckEditor3.Text = "组 名";
- this.ultraCheckEditor3.CheckedChanged += new System.EventHandler(this.ultraCheckEditor_CheckedChanged);
- //
- // textBox3
- //
- this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.textBox3.Enabled = false;
- this.textBox3.Location = new System.Drawing.Point(754, 5);
- this.textBox3.Name = "textBox3";
- this.textBox3.Size = new System.Drawing.Size(199, 21);
- this.textBox3.TabIndex = 6;
- //
- // ultraCheckEditor2
- //
- this.ultraCheckEditor2.BackColor = System.Drawing.SystemColors.Control;
- this.ultraCheckEditor2.Location = new System.Drawing.Point(292, 5);
- this.ultraCheckEditor2.Name = "ultraCheckEditor2";
- this.ultraCheckEditor2.Size = new System.Drawing.Size(72, 20);
- this.ultraCheckEditor2.TabIndex = 5;
- this.ultraCheckEditor2.Tag = "textBox2";
- this.ultraCheckEditor2.Text = "键 值";
- this.ultraCheckEditor2.CheckedChanged += new System.EventHandler(this.ultraCheckEditor_CheckedChanged);
- //
- // textBox2
- //
- this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.textBox2.Enabled = false;
- this.textBox2.Location = new System.Drawing.Point(364, 5);
- this.textBox2.Name = "textBox2";
- this.textBox2.Size = new System.Drawing.Size(263, 21);
- this.textBox2.TabIndex = 4;
- //
- // ultraCheckEditor1
- //
- this.ultraCheckEditor1.Location = new System.Drawing.Point(8, 5);
- this.ultraCheckEditor1.Name = "ultraCheckEditor1";
- this.ultraCheckEditor1.Size = new System.Drawing.Size(72, 20);
- this.ultraCheckEditor1.TabIndex = 3;
- this.ultraCheckEditor1.Tag = "textBox1";
- this.ultraCheckEditor1.Text = "菜 单 名";
- this.ultraCheckEditor1.CheckedChanged += new System.EventHandler(this.ultraCheckEditor_CheckedChanged);
- //
- // textBox1
- //
- this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.textBox1.Enabled = false;
- this.textBox1.Location = new System.Drawing.Point(80, 5);
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new System.Drawing.Size(168, 21);
- this.textBox1.TabIndex = 1;
- //
- // _FrmBase_Toolbars_Dock_Area_Left
- //
- this._FrmBase_Toolbars_Dock_Area_Left.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
- this._FrmBase_Toolbars_Dock_Area_Left.BackColor = System.Drawing.SystemColors.Control;
- this._FrmBase_Toolbars_Dock_Area_Left.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Left;
- this._FrmBase_Toolbars_Dock_Area_Left.ForeColor = System.Drawing.SystemColors.ControlText;
- this._FrmBase_Toolbars_Dock_Area_Left.Location = new System.Drawing.Point(0, 52);
- this._FrmBase_Toolbars_Dock_Area_Left.Name = "_FrmBase_Toolbars_Dock_Area_Left";
- this._FrmBase_Toolbars_Dock_Area_Left.Size = new System.Drawing.Size(0, 681);
- this._FrmBase_Toolbars_Dock_Area_Left.ToolbarsManager = this.ultraToolbarsManager1;
- //
- // _FrmBase_Toolbars_Dock_Area_Right
- //
- this._FrmBase_Toolbars_Dock_Area_Right.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
- this._FrmBase_Toolbars_Dock_Area_Right.BackColor = System.Drawing.SystemColors.Control;
- this._FrmBase_Toolbars_Dock_Area_Right.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Right;
- this._FrmBase_Toolbars_Dock_Area_Right.ForeColor = System.Drawing.SystemColors.ControlText;
- this._FrmBase_Toolbars_Dock_Area_Right.Location = new System.Drawing.Point(1248, 52);
- this._FrmBase_Toolbars_Dock_Area_Right.Name = "_FrmBase_Toolbars_Dock_Area_Right";
- this._FrmBase_Toolbars_Dock_Area_Right.Size = new System.Drawing.Size(0, 681);
- this._FrmBase_Toolbars_Dock_Area_Right.ToolbarsManager = this.ultraToolbarsManager1;
- //
- // _FrmBase_Toolbars_Dock_Area_Top
- //
- this._FrmBase_Toolbars_Dock_Area_Top.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
- this._FrmBase_Toolbars_Dock_Area_Top.BackColor = System.Drawing.SystemColors.Control;
- this._FrmBase_Toolbars_Dock_Area_Top.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Top;
- this._FrmBase_Toolbars_Dock_Area_Top.ForeColor = System.Drawing.SystemColors.ControlText;
- this._FrmBase_Toolbars_Dock_Area_Top.Location = new System.Drawing.Point(0, 0);
- this._FrmBase_Toolbars_Dock_Area_Top.Name = "_FrmBase_Toolbars_Dock_Area_Top";
- this._FrmBase_Toolbars_Dock_Area_Top.Size = new System.Drawing.Size(1248, 52);
- this._FrmBase_Toolbars_Dock_Area_Top.ToolbarsManager = this.ultraToolbarsManager1;
- //
- // _FrmBase_Toolbars_Dock_Area_Bottom
- //
- this._FrmBase_Toolbars_Dock_Area_Bottom.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
- this._FrmBase_Toolbars_Dock_Area_Bottom.BackColor = System.Drawing.SystemColors.Control;
- this._FrmBase_Toolbars_Dock_Area_Bottom.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Bottom;
- this._FrmBase_Toolbars_Dock_Area_Bottom.ForeColor = System.Drawing.SystemColors.ControlText;
- this._FrmBase_Toolbars_Dock_Area_Bottom.Location = new System.Drawing.Point(0, 733);
- this._FrmBase_Toolbars_Dock_Area_Bottom.Name = "_FrmBase_Toolbars_Dock_Area_Bottom";
- this._FrmBase_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(1248, 0);
- this._FrmBase_Toolbars_Dock_Area_Bottom.ToolbarsManager = this.ultraToolbarsManager1;
- //
- // ultraToolbarsManager3
- //
- this.ultraToolbarsManager3.DesignerFlags = 1;
- this.ultraToolbarsManager3.LockToolbars = true;
- this.ultraToolbarsManager3.MdiMergeable = false;
- this.ultraToolbarsManager3.ShowQuickCustomizeButton = false;
- this.ultraToolbarsManager3.Style = Infragistics.Win.UltraWinToolbars.ToolbarStyle.Office2000;
- buttonTool35.SharedProps.Caption = "上移";
- buttonTool35.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool36.SharedProps.Caption = "下移";
- buttonTool36.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool37.SharedProps.Caption = "左移";
- buttonTool37.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool38.SharedProps.Caption = "右移";
- buttonTool38.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool39.SharedProps.Caption = "保存";
- buttonTool39.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool40.SharedProps.Caption = "刷新";
- buttonTool40.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- this.ultraToolbarsManager3.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
- buttonTool35,
- buttonTool36,
- buttonTool37,
- buttonTool38,
- buttonTool39,
- buttonTool40});
- //
- // dstToolBar
- //
- this.dstToolBar.DataSetName = "dstToolBar";
- this.dstToolBar.Tables.AddRange(new System.Data.DataTable[] {
- this.Toolbar});
- //
- // Toolbar
- //
- this.Toolbar.Columns.AddRange(new System.Data.DataColumn[] {
- this.KEY_,
- this.CATEGORY,
- this.CAPTION,
- this.TYPE,
- this.PARENTMENU,
- this.SETINFO,
- this.ROLEID});
- this.Toolbar.TableName = "Toolbar";
- //
- // KEY_
- //
- this.KEY_.Caption = "类";
- this.KEY_.ColumnName = "KEY_";
- //
- // CATEGORY
- //
- this.CATEGORY.Caption = "工程";
- this.CATEGORY.ColumnName = "CATEGORY";
- //
- // CAPTION
- //
- this.CAPTION.Caption = "菜单名";
- this.CAPTION.ColumnName = "CAPTION";
- //
- // TYPE
- //
- this.TYPE.Caption = "类型";
- this.TYPE.ColumnName = "TYPE";
- //
- // PARENTMENU
- //
- this.PARENTMENU.Caption = "父菜单";
- this.PARENTMENU.ColumnName = "PARENTMENU";
- //
- // SETINFO
- //
- this.SETINFO.Caption = "菜单结构";
- this.SETINFO.ColumnName = "SETINFO";
- //
- // ROLEID
- //
- this.ROLEID.Caption = "角色ID";
- this.ROLEID.ColumnName = "ROLEID";
- //
- // dataSet3
- //
- this.dataSet3.DataSetName = "NewDataSet";
- //
- // FrmPurviewSet
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
- this.ClientSize = new System.Drawing.Size(1248, 733);
- this.Controls.Add(this.ultraExpandableGroupBox1);
- this.Controls.Add(this.ultraExpandableGroupBox2);
- this.Controls.Add(this._FrmBase_Toolbars_Dock_Area_Left);
- this.Controls.Add(this._FrmBase_Toolbars_Dock_Area_Right);
- this.Controls.Add(this._FrmBase_Toolbars_Dock_Area_Top);
- this.Controls.Add(this._FrmBase_Toolbars_Dock_Area_Bottom);
- this.Name = "FrmPurviewSet";
- this.Text = "权限设置";
- this.Load += new System.EventHandler(this.FrmPurviewSet_Load);
- ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraGrid2)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataSet2)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataTable2)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraTree1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox2)).EndInit();
- this.ultraExpandableGroupBox2.ResumeLayout(false);
- this.ultraExpandableGroupBoxPanel2.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager2)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).EndInit();
- this.ultraExpandableGroupBox1.ResumeLayout(false);
- this.ultraExpandableGroupBoxPanel1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.ultraGrid1)).EndInit();
- this.panel1.ResumeLayout(false);
- this.panel1.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.cb_LoginID)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.txt_folder)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager3)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dstToolBar)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.Toolbar)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataSet3)).EndInit();
- this.ResumeLayout(false);
- }
- #endregion
- void AddMenuNode(UltraTreeNode pNode, DataTable dtab)
- {
- DataView dvw = dtab.Copy().DefaultView;
- if (pNode.Key != "")
- dvw.RowFilter = "PARENTID='" + pNode.Key + "'";
- else
- dvw.RowFilter = "PARENTID is null";
- dvw.Sort = "XH ASC";
- foreach (DataRowView drow in dvw)
- {
- UltraTreeNode tNode = pNode.Nodes.Add(drow["ID_"].ToString(), drow["CAPTION"].ToString());
- AddMenuNode(tNode, dtab);
- }
- }
- private void ultraCheckEditor_CheckedChanged(object sender, System.EventArgs e)
- {
- foreach (Control c in (sender as Infragistics.Win.UltraWinEditors.UltraCheckEditor).Parent.Controls)
- {
- if (c.Name == (sender as Infragistics.Win.UltraWinEditors.UltraCheckEditor).Tag.ToString())
- {
- c.Enabled = (sender as Infragistics.Win.UltraWinEditors.UltraCheckEditor).Checked;
- if (c.Enabled)
- c.BackColor = Color.LightCyan;
- else
- c.BackColor = Color.Silver;
- }
- }
- }
- #region "Menu ToolBar"
- private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
- {
- switch (e.Tool.Key)
- {
- case "query":
- this.DoQuery();
- break;
- case "add":
- this.DoAdd();
- break;
- case "del":
- this.DoDel();
- break;
- case "edit":
- this.DoEdit();
- break;
- case "close":
- this.Close();
- break;
- }
- }
- private void DoQuery()
- {
- string strOut = "";
- DataSet obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
- "Core.Mes.ServerCommon.UserInfoManager", "GetPt_menuinfo", new object[] { this.GetStrWhere() }, out strOut) as DataSet;
- if (strOut != "")
- {
- MessageBox.Show(strOut); return;
- }
- obj.Tables[0].TableName = this.dataSet1.Tables[0].TableName;
- this.dataSet1.Clear();
- this.dataSet1.Merge(obj.Tables[0]);
- Fill_Path();
- }
- private void DoAdd()
- {
- if (Core.Mes.ClientFrameWork.ClientCommon._UserInfo.LoginID.ToUpper() != "ROOT" & Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserRoleID.ToUpper() != "ADMIN001" & !ClientCommon._UserInfo.UserRoleName.ToString().Contains("管理员"))
- {
- MessageBox.Show("权限不够,请与管理员联系", "系统提示");
- return;
- }
- string strOut = "";
- string strCaption = this.textBox1.Text.Trim();
- string strKey = this.textBox2.Text.Trim();
- string strCategory = this.textBox3.Text.Trim();
- string strRemark = this.textBox4.Text.Trim();
- string strType = comboBox1.Text.Trim();
- if (strCaption.Length == 0) strOut = "请输入菜单名!";
- if (strKey.Length == 0) strOut = "请输入键值!";
- if (strCategory.Length == 0) strOut = "请输入组名!";
- if (strOut != "")
- {
- MessageBox.Show(strOut); return;
- }
- object obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
- "Core.Mes.ServerCommon.UserInfoManager", "InsertPt_menuinfo", new object[]{ strKey,
- strCategory, strCaption, strRemark, strType}, out strOut);
- if (strOut != "")
- {
- MessageBox.Show(strOut); return;
- }
- string strID = obj.ToString();
- UltraGridRow ugr = this.ultraGrid1.DisplayLayout.Bands[0].AddNew();
- ugr.Cells["ID_"].Value = strID;
- ugr.Cells["KEY_"].Value = strKey;
- ugr.Cells["CATEGORY"].Value = strCategory;
- ugr.Cells["CAPTION"].Value = strCaption;
- ugr.Cells["REMARK"].Value = strRemark;
- ugr.Cells["TYPE"].Value = strType;
- ugr.Update();
- ugr.Activated = true;
- }
- private void DoDel()
- {
- if (Core.Mes.ClientFrameWork.ClientCommon._UserInfo.LoginID.ToUpper() != "ROOT" & Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserRoleID.ToUpper() != "ADMIN001" & !ClientCommon._UserInfo.UserRoleName.ToString().Contains("管理员"))
- {
- MessageBox.Show("权限不够,请与管理员联系", "系统提示");
- return;
- }
- string strOut = "";
- UltraGridRow ugr = this.ultraGrid1.ActiveRow;
- if (ugr == null)
- {
- MessageBox.Show("请选择要删除的行!");
- return;
- }
- if (MessageBox.Show("是否确认删除选择的菜单信息?", "提示", MessageBoxButtons.YesNo) == DialogResult.No)
- {
- return;
- }
- int rowIndex = ugr.Index;
- string strID = ugr.Cells["ID_"].Text;
- object obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
- "Core.Mes.ServerCommon.UserInfoManager", "DeletePt_menuinfo", new object[] { strID }, out strOut);
- if (strOut != "")
- {
- MessageBox.Show(strOut); return;
- }
- ugr.Delete(false);
- if (this.ultraGrid1.Rows.Count > 0)
- {
- if (rowIndex <= this.ultraGrid1.Rows.Count - 1)
- this.ultraGrid1.Rows[rowIndex].Activate();
- else
- this.ultraGrid1.Rows[this.ultraGrid1.Rows.Count - 1].Activate();
- }
- MessageBox.Show("删除成功!");
- }
- private void DoEdit()
- {
- if (Core.Mes.ClientFrameWork.ClientCommon._UserInfo.LoginID.ToUpper() != "ROOT" & Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserRoleID.ToUpper() != "ADMIN001" & !ClientCommon._UserInfo.UserRoleName.ToString().Contains("管理员"))
- {
- MessageBox.Show("权限不够,请与管理员联系", "系统提示");
- return;
- }
- UltraGridRow ugr = this.ultraGrid1.ActiveRow;
- if (ugr == null)
- {
- MessageBox.Show("请选择要修改的行!");
- return;
- }
- string strOut = "";
- string strID = ugr.Cells["ID_"].Text;
- string strCaption = this.textBox1.Text.Trim();
- string strKey = this.textBox2.Text.Trim();
- string strCategory = this.textBox3.Text.Trim();
- string strRemark = this.textBox4.Text.Trim();
- string strType = comboBox1.Text.Trim();
- if (strCaption.Length == 0) strOut = "请输入菜单名!";
- if (strKey.Length == 0) strOut = "请输入键值!";
- if (strCategory.Length == 0) strOut = "请输入组名!";
- if (strOut != "")
- {
- MessageBox.Show(strOut); return;
- }
- if (MessageBox.Show("是否确认修改选择的菜单信息?", "提示", MessageBoxButtons.YesNo) == DialogResult.No)
- {
- return;
- }
- object obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
- "Core.Mes.ServerCommon.UserInfoManager", "UpdatePt_menuinfo", new object[]{ strID, strKey,
- strCategory, strCaption, strRemark, strType}, out strOut);
- if (strOut != "")
- {
- MessageBox.Show(strOut); return;
- }
- ugr.Cells["KEY_"].Value = strKey;
- ugr.Cells["CATEGORY"].Value = strCategory;
- ugr.Cells["CAPTION"].Value = strCaption;
- ugr.Cells["REMARK"].Value = strRemark;
- ugr.Cells["TYPE"].Value = strType;
- ugr.Update();
- MessageBox.Show("修改成功!");
- }
- #endregion
- #region "Role ToolBar"
- private void ultraToolbarsManager2_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
- {
- switch (e.Tool.Key)
- {
- case "refresh":
- this.DoRefresh();
- break;
- case "select":
- DoSelect();
- break;
- case "remove":
- this.DoRemove();
- break;
- case "clear":
- this.DoClear();
- break;
- case "copy":
- this.DoCopy();
- break;
- case "plast":
- this.DoPlast();
- break;
- case "save":
- this.DoSave();
- break;
- case "left":
- this.DoLeft();
- break;
- case "up":
- this.DoUp();
- break;
- case "right":
- this.DoRight();
- break;
- case "down":
- this.DoDown();
- break;
- case "IMPORT":
- this.Import();
- break;
- }
- }
- private void DoRefresh()
- {
- string strOut = "";
- object obj = null;
- if (Core.Mes.ClientFrameWork.ClientCommon._UserInfo.LoginID.ToUpper() != "ROOT" & Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserRoleID.ToUpper() != "ADMIN001")
- {
- obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
- "Core.Mes.ServerCommon.UserInfoManager", "GetUam_role", null, out strOut);
- }
- {
- obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
- "Core.Mes.ServerCommon.UserInfoManager", "GetUser_Uam_Role", new object[] { RightsComm.GetChildDpt() }, out strOut);
- }
- if (strOut != "")
- {
- MessageBox.Show(strOut); return;
- }
- if (obj != null)
- {
- (obj as System.Data.DataSet).Tables[0].TableName = this.dataSet2.Tables[0].TableName;
- this.dataSet2.Clear();
- this.dataSet2.Merge((obj as System.Data.DataSet).Tables[0]);
- }
- }
- private void DoSelect()
- {
- UltraGridRow ugr1 = this.ultraGrid1.ActiveRow;
- UltraGridRow ugr2 = this.ultraGrid2.ActiveRow;
- if (ugr1 == null)
- {
- MessageBox.Show("请选择菜单信息!"); return;
- }
- if (ugr2 == null)
- {
- MessageBox.Show("请选择角色信息!"); return;
- }
- string strID = ugr1.Cells["ID_"].Text;
- string strName = ugr1.Cells["CAPTION"].Text;
- if (CheckIsReKey(strID, ultraTree1.Nodes))
- {
- MessageBox.Show("键值重复!");
- return;
- }
- try
- {
- if (this.ultraTree1.SelectedNodes.Count > 0)
- {
- Infragistics.Win.UltraWinTree.UltraTreeNode utn = new Infragistics.Win.UltraWinTree.UltraTreeNode(strID, strName);
- utn.Tag = ugr1.Cells["ID_"].Text;
- this.ultraTree1.SelectedNodes[0].Nodes.Add(utn);
- }
- else
- {
- Infragistics.Win.UltraWinTree.UltraTreeNode utn = new Infragistics.Win.UltraWinTree.UltraTreeNode(strID, strName);
- utn.Tag = ugr1.Cells["ID_"].Text;
- this.ultraTree1.Nodes.Add(utn);
- }
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.Message);
- }
- }
- private void DoRemove()
- {
- if (this.ultraTree1.SelectedNodes.Count == 0)
- {
- MessageBox.Show("请选择所要移除的菜单!"); return;
- }
- if (MessageBox.Show("是否确认移除选中的菜单!", "提示", MessageBoxButtons.YesNo) == DialogResult.No)
- {
- return;
- }
- if (this.ultraTree1.SelectedNodes.Count > 0)
- {
- this.ultraTree1.SelectedNodes[0].Remove();
- }
- }
- private void DoClear()
- {
- if (MessageBox.Show("是否确认清除该角色的所要菜单!", "提示", MessageBoxButtons.YesNo) == DialogResult.No)
- {
- return;
- }
- this.ultraTree1.Nodes.Clear();
- }
- private void DoCopy()
- {
- UltraGridRow ugr = this.ultraGrid2.ActiveRow;
- if (ugr == null)
- {
- MessageBox.Show("请选择要复制的角色!"); return;
- }
- foreach (UltraGridRow r in this.ultraGrid2.Rows)
- {
- r.Appearance.ForeColor = Color.Black;
- }
- ugr.Appearance.ForeColor = Color.Red;
- }
- private void DoPlast()
- {
- UltraGridRow nugr = this.ultraGrid2.ActiveRow;
- if (nugr == null)
- {
- MessageBox.Show("请选择复制到角色!"); return;
- }
- if (nugr.Appearance.ForeColor == Color.Red)
- {
- MessageBox.Show("复制到自己?"); return;
- }
- UltraGridRow ugr = null;
- foreach (UltraGridRow r in this.ultraGrid2.Rows)
- {
- if (r.Appearance.ForeColor == Color.Red)
- {
- ugr = r;
- ugr.Appearance.ForeColor = Color.Black;
- continue;
- }
- }
- if (ugr == null)
- {
- MessageBox.Show("请选择要复制的角色!"); return;
- }
- if (MessageBox.Show("是否确认复制选定的配置信息,原信息将被删除!", "提示", MessageBoxButtons.YesNo) == DialogResult.No)
- return;
- string strOut = "";
- object obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
- "Core.Mes.ServerCommon.UserInfoManager", "PlastPt_menuinfo", new object[]{ ugr.Cells["ROLEID"].Text,
- nugr.Cells["ROLEID"].Text}, out strOut);
- if (strOut != "")
- {
- MessageBox.Show(strOut); return;
- }
- this.RefreshTreeDate();
- }
- private void DoSave()
- {
- UltraGridRow ugr = this.ultraGrid2.ActiveRow;
- if (ugr == null)
- {
- MessageBox.Show("请选择要保存的角色信息!"); return;
- }
- ArrayList arMenuID = new ArrayList();
- ArrayList arSetInfo = new ArrayList();
- foreach (Infragistics.Win.UltraWinTree.UltraTreeNode utn in this.ultraTree1.Nodes)
- {
- arMenuID.Add(utn.Tag);
- arSetInfo.Add(utn.Index.ToString().PadLeft(3, '0'));
- if (utn.Nodes.Count > 0)
- {
- this.SetChildNodes(utn, utn.Index.ToString().PadLeft(3, '0'), ref arMenuID, ref arSetInfo);
- }
- }
- string strOut = "";
- object obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
- "Core.Mes.ServerCommon.UserInfoManager", "SavePt_usermenuinfo", new object[]{ ugr.Cells["ROLEID"].Text,
- arMenuID, arSetInfo}, out strOut);
- if (strOut != "")
- {
- MessageBox.Show(strOut); return;
- }
- MessageBox.Show("保存成功!");
- }
- private void DoLeft()
- {
- Infragistics.Win.UltraWinTree.UltraTreeNode utn = this.ultraTree1.ActiveNode;
- if (utn == null) return;
- if (utn.Level == 0)
- return;
- else if (utn.Level == 1)
- utn.Reposition(this.ultraTree1.Nodes);
- else
- {
- Infragistics.Win.UltraWinTree.UltraTreeNode putn = utn.Parent.Parent;
- utn.Reposition(putn.Nodes);
- }
- }
- private void DoUp()
- {
- Infragistics.Win.UltraWinTree.UltraTreeNode utn = this.ultraTree1.ActiveNode;
- if (utn == null) return;
- int i = utn.Index;
- if (i == 0) return;
- if (utn.Level == 0)
- utn.Reposition(this.ultraTree1.Nodes, i - 1);
- else
- utn.Reposition(utn.Parent.Nodes, i - 1);
- }
- private void DoRight()
- {
- Infragistics.Win.UltraWinTree.UltraTreeNode utn = this.ultraTree1.ActiveNode;
- if (utn == null) return;
- int i = utn.Index;
- if (i == 0) return;
- Infragistics.Win.UltraWinTree.UltraTreeNode putn;
- if (utn.Level == 0)
- putn = this.ultraTree1.Nodes[i - 1];
- else
- putn = utn.Parent.Nodes[i - 1];
- utn.Reposition(putn.Nodes);
- putn.ExpandAll();
- }
- private void DoDown()
- {
- Infragistics.Win.UltraWinTree.UltraTreeNode utn = this.ultraTree1.ActiveNode;
- if (utn == null) return;
- int i = utn.Index;
- if (utn.Level == 0)
- {
- if (i == this.ultraTree1.Nodes.Count - 1) return;
- utn.Reposition(this.ultraTree1.Nodes, i + 1);
- }
- else
- {
- if (i == utn.Parent.Nodes.Count - 1) return;
- utn.Reposition(utn.Parent.Nodes, i + 1);
- }
- }
- private void Import()
- {
- try
- {
- if (this.ultraGrid2.ActiveRow == null)
- {
- MessageBox.Show("请选择你要导入权限文件的角色", "系统提示");
- return;
- }
- string FileName = "";
- System.Windows.Forms.OpenFileDialog openfile = new OpenFileDialog();
- openfile.Filter = "*.xml|";
- openfile.Title = "选择权限文件";
- openfile.ShowDialog();
- if (openfile.FileName.Length > 0)
- {
- FileName = openfile.FileName;
- }
- else
- {
- return;
- }
- string RoleID = this.ultraGrid2.ActiveRow.Cells[0].Text;
- if (ImportRole(FileName, RoleID))
- {
- MessageBox.Show("导入成功", "系统提示");
- RefreshTreeDate();
- }
- else
- {
- MessageBox.Show("导入失败", "系统提示");
- }
- }
- catch (System.Exception ex)
- {
- System.Diagnostics.Debug.WriteLine(ex.ToString());
- }
- }
- #endregion
- private string GetStrWhere()
- {
- string str = "";
- if (this.ultraCheckEditor1.Checked && this.textBox1.Text.Trim().Length > 0)
- {
- str += string.Format(" and caption like '%{0}%' ", this.textBox1.Text.Trim());
- }
- if (this.ultraCheckEditor2.Checked && this.textBox2.Text.Trim().Length > 0)
- {
- str += string.Format(" and upper(key_) like upper('%{0}%') ", this.textBox2.Text.Trim());
- }
- if (this.ultraCheckEditor3.Checked && this.textBox3.Text.Trim().Length > 0)
- {
- str += string.Format(" and upper(category) like upper('%{0}%') ", this.textBox3.Text.Trim());
- }
- if (this.ultraCheckEditor4.Checked && this.textBox4.Text.Trim().Length > 0)
- {
- str += string.Format(" and upper(remark) like upper('%{0}%') ", this.textBox4.Text.Trim());
- }
- if (ultraCheckEditor5.Checked && comboBox1.Text.Trim().Length > 0)
- {
- str += string.Format(" and type='{0}'", comboBox1.Text.Trim());
- }
- return str;
- }
- UltraTreeNode findNode(string sKey, UltraTreeNode pNode)
- {
- for (int i = 0; i < pNode.Nodes.Count; i++)
- {
- if (pNode.Nodes[i].Key == sKey)
- return pNode.Nodes[i];
- else
- {
- UltraTreeNode fNode = findNode(sKey, pNode.Nodes[i]);
- if (fNode != null)
- return fNode;
- }
- }
- return null;
- }
- private void ultraGrid1_AfterRowActivate(object sender, System.EventArgs e)
- {
- UltraGridRow ugr = this.ultraGrid1.ActiveRow;
- this.textBox1.Text = ugr.Cells["CAPTION"].Text;
- this.textBox2.Text = ugr.Cells["KEY_"].Text;
- this.textBox3.Text = ugr.Cells["CATEGORY"].Text;
- this.textBox4.Text = ugr.Cells["REMARK"].Text;
- comboBox1.Text = ugr.Cells["TYPE"].Text;
- }
- void fillCheckMenuToRole(TreeNodesCollection pNodes, TreeNodesCollection menuNodes)
- {
- for (int i = 0; i < menuNodes.Count; i++)
- {
- if (menuNodes[i].CheckedState == CheckState.Checked)
- {
- if (CheckIsReKey(menuNodes[i].Key, ultraTree1.Nodes))
- {
- MessageBox.Show("键值重复!");
- return;
- }
- UltraTreeNode nNode = new UltraTreeNode(menuNodes[i].Key, menuNodes[i].Text);
- nNode.Tag = menuNodes[i].Key;
- pNodes.Add(nNode);
- if (menuNodes[i].Nodes.Count > 0)
- fillCheckMenuToRole(nNode.Nodes, menuNodes[i].Nodes);
- }
- }
- }
- private bool CheckIsReKey(string sFindID, TreeNodesCollection uNodes)
- {
- foreach (UltraTreeNode node in uNodes)
- {
- if (node.Tag.ToString() == sFindID) return true;
- if (node.Nodes.Count > 0)
- {
- if (CheckIsReKey(sFindID, node.Nodes))
- return true;
- }
- }
- return false;
- }
- private void SetChildNodes(Infragistics.Win.UltraWinTree.UltraTreeNode putn, string strParent, ref ArrayList ar1, ref ArrayList ar2)
- {
- string strSetInfo = "";
- string strCurr = "";
- foreach (Infragistics.Win.UltraWinTree.UltraTreeNode utn in putn.Nodes)
- {
- strCurr = utn.Index.ToString().PadLeft(3, '0');
- strSetInfo = strParent + strCurr;
- ar1.Add(utn.Tag);
- ar2.Add(strSetInfo);
- if (utn.Nodes.Count > 0)
- {
- this.SetChildNodes(utn, strSetInfo, ref ar1, ref ar2);
- }
- }
- }
- private void FrmPurviewSet_Load(object sender, System.EventArgs e)
- {
- comboBox1.SelectedIndex = 0;
- if (Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserName == "谢康宏")
- this.btn_ImportAll.Visible = this.txt_folder.Visible = true;
- else
- this.btn_ImportAll.Visible = this.txt_folder.Visible = false;
- //this.btn_ImportAll.Visible = this.txt_folder.Visible = true;
- //获取 用户-角色 对应表
- string strOut = "";
- DataSet obj1 = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
- "Core.Mes.ServerCommon.UserInfoManager", "GetUserRolePairs", new object[] { }, out strOut) as DataSet;
- if (strOut != "")
- {
- MessageBox.Show("获取所有登录ID失败!\n" + strOut); return;
- }
- if (dataSet3.Tables.Contains("UserRole"))
- {
- dataSet3.Tables["UserRole"].Reset();
- }
- else
- {
- dataSet3.Tables.Add(new DataTable("UserRole"));
- }
- dataSet3.Tables["UserRole"].Merge(obj1.Tables[0], true, MissingSchemaAction.Add);
- cb_LoginID.SuspendLayout();
- foreach (DataRow dr in dataSet3.Tables["UserRole"].Rows)
- {
- cb_LoginID.Items.Add(dr["LOGINID"].ToString());
- }
- cb_LoginID.Text = ClientCommon._UserInfo.LoginID.ToString();
- if (ClientCommon._UserInfo.UserRoleName.ToString().Contains("管理员"))
- {
- cb_LoginID.Enabled = true;
- }
- else
- {
- cb_LoginID.Enabled = false;
- }
- cb_LoginID.ResumeLayout();
- }
- private void ultraGrid2_AfterRowActivate(object sender, System.EventArgs e)
- {
- this.RefreshTreeDate();
- }
- private void RefreshTreeDate()
- {
- string strOut = "";
- DataSet obj = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
- "Core.Mes.ServerCommon.UserInfoManager", "GetPurviewTree",
- new object[] { string.Format(" and roleid = '{0}'", this.ultraGrid2.ActiveRow.Cells["ROLEID"].Text) },
- out strOut) as DataSet;
- if (strOut != "")
- {
- MessageBox.Show(strOut); return;
- }
- this.ultraTree1.Nodes.Clear();
- for (int i = 0; i < obj.Tables[0].Rows.Count; i++)
- {
- try
- {
- string strSet = obj.Tables[0].Rows[i]["SETINFO"].ToString();
- string strName = obj.Tables[0].Rows[i]["MENUNAME"].ToString();
- string strKey = obj.Tables[0].Rows[i]["MENUID"].ToString();
- Infragistics.Win.UltraWinTree.UltraTreeNode utn = null;
- utn = new Infragistics.Win.UltraWinTree.UltraTreeNode(strSet, strName);
- utn.Tag = strKey;
- if (strSet.Length == 3)
- {
- this.ultraTree1.Nodes.Add(utn);
- }
- else
- {
- addChildNode(ultraTree1.Nodes, utn);
- //foreach ( Infragistics.Win.UltraWinTree.UltraTreeNode cutn in this.ultraTree1.Nodes )
- //{
- // if (cutn.Key == strSet.Substring(0, cutn.Key.Length))
- // {
- // utn = new Infragistics.Win.UltraWinTree.UltraTreeNode(strSet, strName);
- // utn.Tag = strKey;
- // cutn.Nodes.Add(utn);
- // }
- // if (cutn.Nodes.Count > 0)
- // {
- // this.LoadChileNodes(cutn, strSet, strKey, strName);
- // }
- //}
- }
- }
- catch { }
- }
- }
- private void addChildNode(Infragistics.Win.UltraWinTree.TreeNodesCollection nodeColl, Infragistics.Win.UltraWinTree.UltraTreeNode newNode)
- {
- foreach (Infragistics.Win.UltraWinTree.UltraTreeNode aNode in nodeColl)
- {
- if (aNode.Key == newNode.Key.Substring(0, newNode.Key.Length - 3))
- {
- aNode.Nodes.Add(newNode);
- break;
- }
- else
- {
- addChildNode(aNode.Nodes, newNode);
- }
- }
- }
- void checkParent(UltraTreeNode node)
- {
- if (node.Parent != null)
- {
- node.Parent.CheckedState = CheckState.Checked;
- checkParent(node.Parent);
- }
- }
- void checkChild(UltraTreeNode node, CheckState state)
- {
- foreach (UltraTreeNode cNode in node.Nodes)
- {
- cNode.CheckedState = state;
- checkChild(cNode, state);
- }
- }
- void resetParent(UltraTreeNode node)
- {
- if (node.Parent != null)
- {
- bool NoCheck = true;
- foreach (UltraTreeNode cNode in node.Parent.Nodes)
- {
- if (cNode == node) continue;
- if (cNode.CheckedState == CheckState.Checked)
- {
- NoCheck = false;
- break;
- }
- }
- if (NoCheck)
- {
- node.Parent.CheckedState = CheckState.Unchecked;
- resetParent(node.Parent);
- }
- }
- }
- void menuPosSave()
- {
- string err = "";
- ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon", "Core.Mes.ServerCommon.UserInfoManager", "updatePT_MenuPos",
- new object[] { dtMenuPos }, out err);
- if (err != "")
- {
- MessageBox.Show("保存失败!/n" + err);
- }
- else
- {
- dtMenuPos.AcceptChanges();
- }
- }
- #region ultraTree2 dragdrop
- private UltraTree_DropHightLight_DrawFilter_Class UltraTree_DropHightLight_DrawFilter = new UltraTree_DropHightLight_DrawFilter_Class();
- private void UltraTree_DropHightLight_DrawFilter_Invalidate(object sender, System.EventArgs e)
- {
- }
- private void UltraTree_DropHightLight_DrawFilter_QueryStateAllowedForNode(Object sender, UltraTree_DropHightLight_DrawFilter_Class.QueryStateAllowedForNodeEventArgs e)
- {
- if (e.Node.Level == 0)
- {
- e.StatesAllowed = DropLinePositionEnum.OnNode;
- return;
- }
- if (e.Node.Selected)
- {
- e.StatesAllowed = DropLinePositionEnum.AboveNode | DropLinePositionEnum.BelowNode;
- UltraTree_DropHightLight_DrawFilter.EdgeSensitivity = e.Node.Bounds.Height / 2;
- }
- else
- {
- UltraTree_DropHightLight_DrawFilter.EdgeSensitivity = e.Node.Bounds.Height / 3;
- }
- }
- #endregion
- private bool ImportRole(string FileName, string RoleID)
- {
- try
- {
- if (!System.IO.File.Exists(FileName))
- {
- return false;
- }
- Infragistics.Win.UltraWinToolbars.UltraToolbarsManager ImpToolbar = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager();
- ImpToolbar.LoadFromXml(FileName);
- this.dstToolBar.Tables[0].Clear();
- this.dstToolBar.Tables[0].AcceptChanges();
- string SetInfo = "";
- string ParentSetInfo = "";
- if (ImpToolbar.Toolbars.Count > 0)
- {
- for (int i = 0; i < ImpToolbar.Toolbars.Count; i++)
- {
- for (int j = 0; j < ImpToolbar.Toolbars[i].Tools.Count; j++)
- {
- SetInfo = Convert.ToString(j).PadLeft(3, '0');
- GetMenuInfo(ImpToolbar.Toolbars[i].Tools[j], "ROOT", SetInfo, ParentSetInfo, RoleID);
- }
- }
- if (!CommitImportData())
- {
- return false;
- }
- return true;
- }
- return false;
- }
- catch (System.Exception ex)
- {
- System.Diagnostics.Debug.WriteLine(ex.ToString());
- return false;
- }
- }
- private void GetMenuInfo(Object MenuTool, string ParentMenuKey, string SetInfo, string ParentSetInfo, string RoleID)
- {
- try
- {
- if (MenuTool.GetType() == typeof(Infragistics.Win.UltraWinToolbars.PopupMenuTool))
- {
- Infragistics.Win.UltraWinToolbars.PopupMenuTool tmpPMenu = (MenuTool as Infragistics.Win.UltraWinToolbars.PopupMenuTool);
- System.Data.DataRow nprow = this.dstToolBar.Tables[0].NewRow();
- nprow["KEY_"] = tmpPMenu.Key.ToString();
- nprow["CATEGORY"] = tmpPMenu.SharedProps.Category.ToString();
- nprow["CAPTION"] = tmpPMenu.SharedProps.Caption.ToString();
- nprow["TYPE"] = "MENU";
- nprow["PARENTMENU"] = ParentMenuKey;
- nprow["SETINFO"] = ParentSetInfo + SetInfo;
- nprow["ROLEID"] = RoleID;
- this.dstToolBar.Tables[0].Rows.Add(nprow);
- if (tmpPMenu.Tools.Count > 0)
- {
- ParentSetInfo = ParentSetInfo + SetInfo;
- for (int i = 0; i < tmpPMenu.Tools.Count; i++)
- {
- SetInfo = Convert.ToString(i).PadLeft(3, '0');
- GetMenuInfo(tmpPMenu.Tools[i], tmpPMenu.Key.ToString(), SetInfo, ParentSetInfo, RoleID);
- }
- }
- }
- else
- {
- Infragistics.Win.UltraWinToolbars.ButtonTool tmpMenu = (MenuTool as Infragistics.Win.UltraWinToolbars.ButtonTool);
- System.Data.DataRow nrow = this.dstToolBar.Tables[0].NewRow();
- nrow["KEY_"] = tmpMenu.Key.ToString();
- nrow["CATEGORY"] = tmpMenu.SharedProps.Category.ToString();
- nrow["CAPTION"] = tmpMenu.SharedProps.Caption.ToString();
- nrow["TYPE"] = "FORM";
- nrow["PARENTMENU"] = ParentMenuKey;
- nrow["SETINFO"] = ParentSetInfo + SetInfo;
- nrow["ROLEID"] = RoleID;
- this.dstToolBar.Tables[0].Rows.Add(nrow);
- //this.dstToolBar.AcceptChanges();
- }
- }
- catch (System.Exception ex)
- {
- System.Diagnostics.Debug.WriteLine(ex.ToString());
- }
- }
- private bool CommitImportData()
- {
- try
- {
- if (this.dstToolBar.Tables[0].GetChanges() != null && this.dstToolBar.Tables[0].GetChanges().Rows.Count > 0)
- {
- string err = "";
- object obj = ClientCommon._RemotingHelp.ExecuteMethod("PurviewManager",
- "Core.Mes.PurviewManager.UAM_ROLE", "CommitImportData", new object[] { this.dstToolBar.Tables[0].GetChanges() }, out err);
- if (obj != null && obj.ToString() == "1")
- {
- this.dstToolBar.Tables[0].Clear();
- this.dstToolBar.AcceptChanges();
- return true;
- }
- else if (err.Length > 0)
- {
- return false;
- }
- }
- return true;
- }
- catch (System.Exception ex)
- {
- System.Diagnostics.Debug.WriteLine(ex.ToString());
- return false;
- }
- }
- private void btn_ImportAll_Click(object sender, EventArgs e)
- {
- try
- {
- string err = "";
- string FileName = "";
- string Folder = this.txt_folder.Text;
- string RoleID = "";
- object obj = ClientCommon._RemotingHelp.ExecuteMethod("PurviewManager",
- "Core.Mes.PurviewManager.UAM_ROLE", "GetRoleData", null, out err);
- if (obj != null)
- {
- foreach (System.Data.DataRow row in (obj as System.Data.DataSet).Tables[0].Rows)
- {
- if (row["MEMO"].GetType() != typeof(System.DBNull))
- {
- FileName = row["MEMO"].ToString();
- FileName = @Folder + FileName;
- RoleID = row["ROLEID"].ToString();
- if (ImportRole(FileName, RoleID))
- {
- System.IO.File.Delete(FileName);
- }
- else
- {
- System.Diagnostics.Debug.WriteLine(FileName + " 失败");
- }
- }
- }
- }
- }
- catch (System.Exception ex)
- {
- System.Diagnostics.Debug.WriteLine(ex.ToString());
- }
- }
- private void cb_LoginID_ValueChanged(object sender, EventArgs e)
- {
- Fill_Path();
- }
- private void Fill_Path()
- {
- if (cb_LoginID.Text != "" && dataSet1.Tables[0].Rows.Count > 0)
- {
- string s_Role = "";
- DataRow[] drs = dataSet3.Tables["UserRole"].Select("LoginID='" + cb_LoginID.Text.Trim() + "'");
- if (drs != null && drs.GetLength(0) > 0)
- {
- s_Role = drs[0]["ROLEID"].ToString().Trim();
- if (s_Role == "") return;
- }
- else
- {
- return;
- }
- Load_Role_Menu(s_Role);
- if (dataSet3.Tables["RoleMenu"] == null || dataSet3.Tables["RoleMenu"].Rows.Count <= 0)
- {
- return;
- }
- ultraGrid1.BeginUpdate();
- ultraGrid1.SuspendRowSynchronization();
- try
- {
- DataTable dt = dataSet3.Tables["RoleMenu"];
- foreach (DataRow dr in dataSet1.Tables[0].Rows)
- {
- // T.ROLEID, T.MENUID, T.SETINFO, M.KEY_, M.CATEGORY, M.CAPTION, M.REMARK
- drs = dt.Select(string.Format("ROLEID='{0}' AND MENUID='{1}'", s_Role, dr["ID_"]));
- if (drs == null || drs.GetLength(0) <= 0)
- {
- dr["PATH_"] = "";
- continue;
- }
- else
- {
- string s_path = string.Format("{0}{1}", (((drs[0]["SETINFO"].ToString().Length / 3) <= 1) ? "" : "─"), drs[0]["CAPTION"].ToString());
- string s_setinfo = drs[0]["SETINFO"].ToString();
- for (int idx = (s_setinfo.Length / 3) - 1; idx > 0; idx--)
- {
- DataRow[] dr_menu = dt.Select(string.Format("ROLEID='{0}' AND SETINFO='{1}'", s_Role, s_setinfo.Substring(0, idx * 3)));
- if (dr_menu == null || dr_menu.GetLength(0) <= 0)
- {
- s_path = ((idx <= 1) ? "" : "─") + "(未知路径节点)" + s_path;
- }
- else
- {
- s_path = ((idx <= 1) ? "" : "─") + dr_menu[0]["CAPTION"] + s_path;
- }
- }
- dr["PATH_"] = s_path;
- }
- }
- }
- finally
- {
- ultraGrid1.ResumeRowSynchronization();
- ultraGrid1.EndUpdate();
- }
- }
- }
- //获取 角色-菜单 对应表
- private void Load_Role_Menu(string Role_ID)
- {
- if (Role_ID.Trim() == "")
- {
- dataSet3.Tables["RoleMenu"].Reset();
- }
- else
- {
- if (!dataSet3.Tables.Contains("RoleMenu") || dataSet3.Tables["RoleMenu"].Rows.Count <= 0)
- {
- string strOut = "";
- DataSet obj2 = ClientCommon._RemotingHelp.ExecuteMethod("ServerCommon",
- "Core.Mes.ServerCommon.UserInfoManager", "GetRoleMenuPairs", new object[] { Role_ID }, out strOut) as DataSet;
- if (strOut != "")
- {
- MessageBox.Show(strOut); return;
- }
- if (dataSet3.Tables.Contains("RoleMenu"))
- {
- dataSet3.Tables["RoleMenu"].Reset();
- }
- else
- {
- dataSet3.Tables.Add(new DataTable("RoleMenu"));
- }
- dataSet3.Tables["RoleMenu"].Merge(obj2.Tables[0], true, MissingSchemaAction.Add);
- }
- }
- }
- }//class
- }
|