From e9400c84c89638423bdb95cc102865926f925dcd Mon Sep 17 00:00:00 2001 From: jhz <jinghz@oceic.com> Date: 星期二, 12 七月 2022 18:20:13 +0800 Subject: [PATCH] 系统参数按组织设置 --- BLL/Xt_SystemParameterForOrg.cs | 160 ++++++++++++++++ BLL/Xt_SystemParameterForOrg.Designer.cs | 292 +++++++++++++++++++++++++++++ BLL/BLL.csproj | 9 BLL/系统管理/Xt_SystemParameter.cs | 9 BLL/Xt_SystemParameterForOrg.resx | 123 ++++++++++++ 5 files changed, 589 insertions(+), 4 deletions(-) diff --git a/BLL/BLL.csproj b/BLL/BLL.csproj index 1be3219..570128b 100644 --- a/BLL/BLL.csproj +++ b/BLL/BLL.csproj @@ -106,6 +106,12 @@ <DesignTime>True</DesignTime> <DependentUpon>Resources.resx</DependentUpon> </Compile> + <Compile Include="Xt_SystemParameterForOrg.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="Xt_SystemParameterForOrg.Designer.cs"> + <DependentUpon>Xt_SystemParameterForOrg.cs</DependentUpon> + </Compile> <Compile Include="绯荤粺绠$悊\鐢ㄦ埛绠$悊\Gy_UserByOrgRelation.cs"> <SubType>Form</SubType> </Compile> @@ -431,6 +437,9 @@ <Generator>ResXFileCodeGenerator</Generator> <LastGenOutput>Resources.Designer.cs</LastGenOutput> </EmbeddedResource> + <EmbeddedResource Include="Xt_SystemParameterForOrg.resx"> + <DependentUpon>Xt_SystemParameterForOrg.cs</DependentUpon> + </EmbeddedResource> <EmbeddedResource Include="鍏敤妯″潡\AboutBox1.resx"> <SubType>Designer</SubType> <DependentUpon>AboutBox1.cs</DependentUpon> diff --git a/BLL/Xt_SystemParameterForOrg.Designer.cs b/BLL/Xt_SystemParameterForOrg.Designer.cs new file mode 100644 index 0000000..b0e3f7e --- /dev/null +++ b/BLL/Xt_SystemParameterForOrg.Designer.cs @@ -0,0 +1,292 @@ +锘� +namespace BLL +{ + partial class Xt_SystemParameterForOrg + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.label1 = new System.Windows.Forms.Label(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.txtHFarmat = new System.Windows.Forms.TextBox(); + this.label6 = new System.Windows.Forms.Label(); + this.txtHExplanation = new System.Windows.Forms.TextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.txtHValue = new System.Windows.Forms.TextBox(); + this.label4 = new System.Windows.Forms.Label(); + this.txtHCaption = new System.Windows.Forms.TextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.txtHKey = new System.Windows.Forms.TextBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.grdMain = new System.Windows.Forms.DataGridView(); + this.timer1 = new System.Windows.Forms.Timer(this.components); + this.groupBox4 = new System.Windows.Forms.GroupBox(); + this.cmdCancel = new System.Windows.Forms.Button(); + this.cmdOK = new System.Windows.Forms.Button(); + this.groupBox1.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.groupBox3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.grdMain)).BeginInit(); + this.groupBox4.SuspendLayout(); + this.SuspendLayout(); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top; + this.groupBox1.Location = new System.Drawing.Point(0, 0); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(734, 63); + this.groupBox1.TabIndex = 0; + this.groupBox1.TabStop = false; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("瀹嬩綋", 13.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label1.Location = new System.Drawing.Point(241, 21); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(235, 24); + this.label1.TabIndex = 0; + this.label1.Text = "鎸夌粍缁囪缃郴缁熷弬鏁�"; + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.txtHFarmat); + this.groupBox2.Controls.Add(this.label6); + this.groupBox2.Controls.Add(this.txtHExplanation); + this.groupBox2.Controls.Add(this.label5); + this.groupBox2.Controls.Add(this.txtHValue); + this.groupBox2.Controls.Add(this.label4); + this.groupBox2.Controls.Add(this.txtHCaption); + this.groupBox2.Controls.Add(this.label3); + this.groupBox2.Controls.Add(this.txtHKey); + this.groupBox2.Controls.Add(this.label2); + this.groupBox2.Dock = System.Windows.Forms.DockStyle.Top; + this.groupBox2.Location = new System.Drawing.Point(0, 63); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(734, 155); + this.groupBox2.TabIndex = 1; + this.groupBox2.TabStop = false; + // + // txtHFarmat + // + this.txtHFarmat.Location = new System.Drawing.Point(93, 113); + this.txtHFarmat.Name = "txtHFarmat"; + this.txtHFarmat.ReadOnly = true; + this.txtHFarmat.Size = new System.Drawing.Size(629, 25); + this.txtHFarmat.TabIndex = 9; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(21, 118); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(67, 15); + this.label6.TabIndex = 8; + this.label6.Text = "鏍煎紡鑼冧緥"; + // + // txtHExplanation + // + this.txtHExplanation.Location = new System.Drawing.Point(93, 82); + this.txtHExplanation.Name = "txtHExplanation"; + this.txtHExplanation.ReadOnly = true; + this.txtHExplanation.Size = new System.Drawing.Size(629, 25); + this.txtHExplanation.TabIndex = 7; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(21, 87); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(53, 15); + this.label5.TabIndex = 6; + this.label5.Text = "鎻� 杩�"; + // + // txtHValue + // + this.txtHValue.Location = new System.Drawing.Point(444, 51); + this.txtHValue.Name = "txtHValue"; + this.txtHValue.ReadOnly = true; + this.txtHValue.Size = new System.Drawing.Size(278, 25); + this.txtHValue.TabIndex = 5; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(390, 56); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(30, 15); + this.label4.TabIndex = 4; + this.label4.Text = "鍊� "; + // + // txtHCaption + // + this.txtHCaption.Location = new System.Drawing.Point(93, 51); + this.txtHCaption.Name = "txtHCaption"; + this.txtHCaption.ReadOnly = true; + this.txtHCaption.Size = new System.Drawing.Size(278, 25); + this.txtHCaption.TabIndex = 3; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(21, 56); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(53, 15); + this.label3.TabIndex = 2; + this.label3.Text = "鍚� 绉�"; + // + // txtHKey + // + this.txtHKey.Location = new System.Drawing.Point(93, 20); + this.txtHKey.Name = "txtHKey"; + this.txtHKey.ReadOnly = true; + this.txtHKey.Size = new System.Drawing.Size(278, 25); + this.txtHKey.TabIndex = 1; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(21, 25); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(52, 15); + this.label2.TabIndex = 0; + this.label2.Text = "鍏抽敭鍊�"; + // + // groupBox3 + // + this.groupBox3.Controls.Add(this.grdMain); + this.groupBox3.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox3.Location = new System.Drawing.Point(0, 218); + this.groupBox3.Name = "groupBox3"; + this.groupBox3.Size = new System.Drawing.Size(734, 326); + this.groupBox3.TabIndex = 2; + this.groupBox3.TabStop = false; + // + // grdMain + // + this.grdMain.AllowUserToAddRows = false; + this.grdMain.AllowUserToDeleteRows = false; + this.grdMain.BackgroundColor = System.Drawing.SystemColors.InactiveCaption; + this.grdMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.grdMain.Dock = System.Windows.Forms.DockStyle.Fill; + this.grdMain.Location = new System.Drawing.Point(3, 21); + this.grdMain.Margin = new System.Windows.Forms.Padding(4); + this.grdMain.Name = "grdMain"; + this.grdMain.ReadOnly = true; + this.grdMain.RowHeadersWidth = 51; + this.grdMain.RowTemplate.Height = 23; + this.grdMain.Size = new System.Drawing.Size(728, 302); + this.grdMain.TabIndex = 20; + this.grdMain.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.grdMain_CellBeginEdit); + // + // timer1 + // + this.timer1.Enabled = true; + this.timer1.Interval = 500; + this.timer1.Tick += new System.EventHandler(this.timer1_Tick); + // + // groupBox4 + // + this.groupBox4.Controls.Add(this.cmdCancel); + this.groupBox4.Controls.Add(this.cmdOK); + this.groupBox4.Dock = System.Windows.Forms.DockStyle.Bottom; + this.groupBox4.Location = new System.Drawing.Point(0, 544); + this.groupBox4.Name = "groupBox4"; + this.groupBox4.Size = new System.Drawing.Size(734, 79); + this.groupBox4.TabIndex = 3; + this.groupBox4.TabStop = false; + // + // cmdCancel + // + this.cmdCancel.Location = new System.Drawing.Point(575, 24); + this.cmdCancel.Name = "cmdCancel"; + this.cmdCancel.Size = new System.Drawing.Size(115, 42); + this.cmdCancel.TabIndex = 1; + this.cmdCancel.Text = "鍙� 娑�"; + this.cmdCancel.UseVisualStyleBackColor = true; + this.cmdCancel.Click += new System.EventHandler(this.cmdCancel_Click); + // + // cmdOK + // + this.cmdOK.Location = new System.Drawing.Point(421, 24); + this.cmdOK.Name = "cmdOK"; + this.cmdOK.Size = new System.Drawing.Size(115, 42); + this.cmdOK.TabIndex = 0; + this.cmdOK.Text = "淇� 瀛�"; + this.cmdOK.UseVisualStyleBackColor = true; + this.cmdOK.Click += new System.EventHandler(this.cmdOK_Click); + // + // Xt_SystemParameterForOrg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(734, 623); + this.Controls.Add(this.groupBox3); + this.Controls.Add(this.groupBox4); + this.Controls.Add(this.groupBox2); + this.Controls.Add(this.groupBox1); + this.Name = "Xt_SystemParameterForOrg"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "鎸夌粍缁囪缃郴缁熷弬鏁�"; + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.groupBox2.ResumeLayout(false); + this.groupBox2.PerformLayout(); + this.groupBox3.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.grdMain)).EndInit(); + this.groupBox4.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.TextBox txtHCaption; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox txtHKey; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.GroupBox groupBox3; + private System.Windows.Forms.TextBox txtHExplanation; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox txtHValue; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.TextBox txtHFarmat; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.DataGridView grdMain; + private System.Windows.Forms.Timer timer1; + private System.Windows.Forms.GroupBox groupBox4; + private System.Windows.Forms.Button cmdCancel; + private System.Windows.Forms.Button cmdOK; + } +} \ No newline at end of file diff --git a/BLL/Xt_SystemParameterForOrg.cs b/BLL/Xt_SystemParameterForOrg.cs new file mode 100644 index 0000000..b010678 --- /dev/null +++ b/BLL/Xt_SystemParameterForOrg.cs @@ -0,0 +1,160 @@ +锘縰sing System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace BLL +{ + public partial class Xt_SystemParameterForOrg : Form + { + public Xt_SystemParameterForOrg() + { + InitializeComponent(); + } + + public const int HInterIDCol = 0; + public const int HKeyCol = 1; + public const int HOrgIDCol = 2; + public const int HOrgNumberCol = 3; + public const int HOrgNameCol = 4; + public const int HValueCol = 5; + public string sHKey; + + private void timer1_Tick(object sender, EventArgs e) + { + timer1.Enabled = false; + initGrid(); + Display(); + } + + private void initGrid() + { + // + grdMain.ColumnCount = 6; //鎬诲垪鏁� + DBUtility.Xt_BaseBillFun.initGridFst(grdMain, this.Name); + //= + grdMain.Columns[HOrgNumberCol].HeaderText = "缁勭粐浠g爜"; + grdMain.Columns[HOrgNameCol].HeaderText = "缁勭粐鍚嶇О"; + grdMain.Columns[HValueCol].HeaderText = "鍙傛暟鍊�"; + ////鍥哄畾璧嬪��===================================================== + //============================================================================= + //鏍煎紡鍖� + + //璁剧疆 鎵嬪伐闅愯棌 + DBUtility.ClsPub.HideGridView(grdMain, Name, DBUtility.ClsPub.AppPath);//璁剧疆闅愯棌鍒� + ////闅愯棌鍒� + grdMain.Columns[HInterIDCol].Visible = false; + grdMain.Columns[HKeyCol].Visible = false; + grdMain.Columns[HOrgIDCol].Visible = false; + //闅愯棌婧愬崟淇℃伅 + //璁剧疆鍙紪杈戝垪 + string sAllowCol = HValueCol.ToString() ; + //璁剧疆鍚堣鍒� + string sTotalCol = ""; + //鏍煎紡鍖栫綉鏍� + //DBUtility.Xt_BaseBillFun.initGridLast(sAllowCol, sTotalCol, oSumGrid); + DBUtility.Xt_BaseBillFun.GetGrid(grdMain, this.Name); + } + + private void Display() + { + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + try + { + //鏍规嵁 HKEY 鏉ヨ幏鍙� 鐜版湁淇℃伅 + DataSet ds = oCn.RunProcReturn("exec h_p_Xt_SystemParameter_GetValue '" + sHKey + "'", "h_p_Xt_SystemParameter_GetValue"); + if(ds==null) + { + MessageBox.Show("璇诲彇澶辫触1锛佹病鏈夎繑鍥炰换浣曟暟鎹紒"); + return; + } + if (ds.Tables[0].Rows.Count != 0) + { + //鏄剧ず鍒� 琛ㄥご + txtHKey.Text = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HKey"]); + txtHCaption.Text = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HCaption"]); + txtHValue.Text = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HMainValue"]); + txtHExplanation.Text = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HExplanation"]); + txtHFarmat.Text = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HFarmat"]); + } + else + { + MessageBox.Show("璇诲彇澶辫触2锛佹病鏈夎繑鍥炰换浣曟暟鎹紒"); + return; + } + //鏄剧ず鍒� 琛ㄤ綋 + grdMain.RowCount = ds.Tables[0].Rows.Count; + for (int i = 0; i < ds.Tables[0].Rows.Count; i++) + { + if (i >= grdMain.RowCount - 1) + grdMain.Rows.Add(); + //鍗曟嵁鍥哄畾璧嬪�� + grdMain.Rows[i].Cells[HInterIDCol].Value = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HInterID"]); + grdMain.Rows[i].Cells[HKeyCol].Value = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HKey"]); + grdMain.Rows[i].Cells[HOrgIDCol].Value = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HOrgID"]); + grdMain.Rows[i].Cells[HOrgNumberCol].Value = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HOrgNumber"]); + grdMain.Rows[i].Cells[HOrgNameCol].Value = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HOrgName"]); + grdMain.Rows[i].Cells[HValueCol].Value = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HValue"]); + } + } + catch(Exception e1) + { + MessageBox.Show("璇诲彇澶辫触锛�" + e1.Message); + + } + + } + + private void cmdCancel_Click(object sender, EventArgs e) + { + DBUtility.Xt_BaseBillFun.SaveGrid(grdMain, this.Name); + this.Close(); + } + + private void cmdOK_Click(object sender, EventArgs e) + { + //淇濆瓨鍓嶅垽鏂� + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + + try + { + //娓呴櫎 瀛愯〃淇℃伅 + oCn.RunProc(" delete from Xt_SystemParameterSub Where HKey= '" + sHKey + "'"); + //寰幆鍐欏叆瀛愯〃 + for (int i = 0; i < grdMain.Rows.Count; i++) + { + if (DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HValueCol].Value).ToString() !="" && + DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HKeyCol].Value).ToString() !="") + { + oCn.RunProc(" insert into Xt_SystemParameterSub (HInterID,HValue,HKey,HOrgID) " + + " values( " + + " " + DBUtility.ClsPub.isLong(grdMain.Rows[i].Cells[HInterIDCol].Value).ToString() + " " + + ", '" + DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HValueCol].Value).ToString() + "' " + + ", '" + DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HKeyCol].Value).ToString() + "' " + + ", " + DBUtility.ClsPub.isLong(grdMain.Rows[i].Cells[HOrgIDCol].Value).ToString() + " " + + ") "); + } + } + MessageBox.Show("淇濆瓨瀹屾瘯锛�"); + } + catch(Exception e1) + { + MessageBox.Show("淇濆瓨澶辫触锛�"+ e1.Message); + + } + } + + private void grdMain_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e) + { + int i = grdMain.CurrentCell.ColumnIndex; + if (i == HKeyCol || i == HOrgNumberCol || i == HOrgNameCol) + { + e.Cancel = true; + } + } + } +} diff --git a/BLL/Xt_SystemParameterForOrg.resx b/BLL/Xt_SystemParameterForOrg.resx new file mode 100644 index 0000000..1f666f2 --- /dev/null +++ b/BLL/Xt_SystemParameterForOrg.resx @@ -0,0 +1,123 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> +</root> \ No newline at end of file diff --git "a/BLL/\347\263\273\347\273\237\347\256\241\347\220\206/Xt_SystemParameter.cs" "b/BLL/\347\263\273\347\273\237\347\256\241\347\220\206/Xt_SystemParameter.cs" index 9c422ab..49b04f5 100644 --- "a/BLL/\347\263\273\347\273\237\347\256\241\347\220\206/Xt_SystemParameter.cs" +++ "b/BLL/\347\263\273\347\273\237\347\256\241\347\220\206/Xt_SystemParameter.cs" @@ -566,12 +566,13 @@ private void org_Click(object sender, EventArgs e) { + Xt_SystemParameterForOrg oXt_SystemParameterForOrg = new Xt_SystemParameterForOrg(); if (DBUtility.Gy_BaseFun.AllowRow(grdMain)) { - //鏍规嵁閫変腑琛屾樉绀� 鎸夌粍缁囩殑 绯荤粺鍙傛暟娓呭崟 - - - + //鑾峰彇閫変腑琛岀殑 HKEY + string sKey = DBUtility.ClsPub.isStrNull(grdMain.Rows[grdMain.CurrentRow.Index].Cells[Fun_GetCol("鍏抽敭鐮�")].Value); + oXt_SystemParameterForOrg.sHKey = sKey; + oXt_SystemParameterForOrg.ShowDialog(); } } } -- Gitblit v1.9.1