Commit 4a3b0d6c authored by 段廷瑞's avatar 段廷瑞

1、工具平台:添加需求受理功能

parent 28b65b6f
......@@ -2,6 +2,12 @@
<configuration>
<appSettings>
<add key="UpdateTime" value="2021-12-30 10:52:06.703" />
<add key="ExceptFiles" value="" />
<add key="ContainFiles" value="" />
<add key="PatchTimeFrame_Dll" value="48" />
<add key="PatchTimeFrame_Sql" value="720" />
<add key="PatchTimeFrame_Xml" value="720" />
<add key="Exclude_PDB" value="1" />
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
......
["D:\\source\\PDM_LN\\ExportPath\\Logs\\Debug","D:\\source\\PDM_LN\\ExportPath\\Logs\\Info","D:\\source\\FTT_PDM\\ExportPath\\Logs\\Info"]
\ No newline at end of file
{"LoginInfo":null,"LoginVerify":null,"UpdateTime":"2021-12-30 10:52:06.703"}
\ No newline at end of file
{"LoginInfo":"wwF/xpBzWek=","LoginVerify":"v86f5Q3Xa7U=","UpdateTime":"2022-01-11 15:44:07.991"}
\ No newline at end of file
......@@ -132,4 +132,10 @@
<UserId>sa</UserId>
<Pwd>sa</Pwd>
</links>
<links>
<Link>192.168.1.202</Link>
<DbName>LY_U6_211102</DbName>
<UserId>sa</UserId>
<Pwd>sa</Pwd>
</links>
</DocumentElement>
\ No newline at end of file
......@@ -130,6 +130,12 @@
<Compile Include="UI\sys\wLogin.Designer.cs">
<DependentUpon>wLogin.cs</DependentUpon>
</Compile>
<Compile Include="UI\sys\wTellUSAck.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UI\sys\wTellUSAck.Designer.cs">
<DependentUpon>wTellUSAck.cs</DependentUpon>
</Compile>
<Compile Include="UI\sys\wTellUS.cs">
<SubType>Form</SubType>
</Compile>
......@@ -377,6 +383,9 @@
<EmbeddedResource Include="UI\sys\wLogin.resx">
<DependentUpon>wLogin.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UI\sys\wTellUSAck.resx">
<DependentUpon>wTellUSAck.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UI\sys\wTellUS.resx">
<DependentUpon>wTellUS.cs</DependentUpon>
</EmbeddedResource>
......
......@@ -98,17 +98,6 @@ namespace Tools.UI.sys
}
}
//事件:下载
private void btnDownload_Click(object sender, EventArgs e)
{
if(this.dgvDetail.SelectedRows.Count == 0)
{
Utils.Tip("请选中要下载的行!");
return;
}
}
//表格:下载文件
private void DgvDetail_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
......
......@@ -44,6 +44,10 @@
this.btnRevoke = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.dgvHistory = new System.Windows.Forms.DataGridView();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panelRevoke = new System.Windows.Forms.Panel();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.panel3 = new System.Windows.Forms.Panel();
......@@ -52,10 +56,6 @@
this.btnDelete = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.dgvRevoked = new System.Windows.Forms.DataGridView();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
......@@ -280,6 +280,33 @@
this.dgvHistory.Size = new System.Drawing.Size(545, 62);
this.dgvHistory.TabIndex = 3;
//
// Column3
//
this.Column3.DataPropertyName = "DemandText";
this.Column3.HeaderText = "需求内容";
this.Column3.Name = "Column3";
this.Column3.Width = 200;
//
// Column5
//
this.Column5.DataPropertyName = "AcceptStatus";
this.Column5.HeaderText = "受理状态";
this.Column5.Name = "Column5";
this.Column5.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// Column2
//
this.Column2.DataPropertyName = "CreateDate";
this.Column2.HeaderText = "创建日期";
this.Column2.Name = "Column2";
//
// Column4
//
this.Column4.DataPropertyName = "ModifiedDate";
this.Column4.HeaderText = "修改日期";
this.Column4.Name = "Column4";
//
// panelRevoke
//
this.panelRevoke.Controls.Add(this.tableLayoutPanel3);
......@@ -389,33 +416,6 @@
this.dgvRevoked.Size = new System.Drawing.Size(545, 37);
this.dgvRevoked.TabIndex = 3;
//
// Column3
//
this.Column3.DataPropertyName = "DemandText";
this.Column3.HeaderText = "需求内容";
this.Column3.Name = "Column3";
this.Column3.Width = 200;
//
// Column5
//
this.Column5.DataPropertyName = "AcceptStatus";
this.Column5.HeaderText = "受理状态";
this.Column5.Name = "Column5";
this.Column5.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// Column2
//
this.Column2.DataPropertyName = "CreateDate";
this.Column2.HeaderText = "创建日期";
this.Column2.Name = "Column2";
//
// Column4
//
this.Column4.DataPropertyName = "ModifiedDate";
this.Column4.HeaderText = "修改日期";
this.Column4.Name = "Column4";
//
// Column1
//
this.Column1.DataPropertyName = "DemandText";
......
......@@ -111,9 +111,16 @@ namespace Tools.UI.sys
}
//获取当前行索引
var index = this.dgvHistory.SelectedRows[0].Index;
var drNow = this._dt.DefaultView[index].Row;
var acceptStatus = drNow["AcceptStatus"].ToString();
if (acceptStatus != AcceptStatus.None)
{
Utils.Tip($"需求{acceptStatus},不允许再编辑!");
return;
}
//设定编辑行
this._IsAdd = false;
this._EditRow = this._dt.DefaultView[index].Row;
this._EditRow = drNow;
this.tbDemand.Text = this._EditRow["DemandText"].ToString();
this.ShowEditPage();
}
......@@ -189,9 +196,17 @@ namespace Tools.UI.sys
MessageBox.Show("请先选择一行信息!", "提示");
return;
}
//设置状态并保存
//获取当前行
var index = this.dgvHistory.SelectedRows[0].Index;
var drNow = this._dt.DefaultView[index].Row;
//状态检查
var acceptStatus = drNow["AcceptStatus"].ToString();
if (acceptStatus == AcceptStatus.Accepted && status == DelStatus.Revoked)
{
Utils.Tip($"需求{acceptStatus},不允许撤销!");
return;
}
//设置状态并保存
drNow["DelStatus"] = status;
drNow.EndEdit();
this.Save();
......
namespace Tools.UI.sys
{
partial class wTellUSAck
{
/// <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.panelHistory = new System.Windows.Forms.Panel();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.panel4 = new System.Windows.Forms.Panel();
this.label3 = new System.Windows.Forms.Label();
this.dgvDetail = new System.Windows.Forms.DataGridView();
this.btnAccept = new System.Windows.Forms.Button();
this.btnRefuse = new System.Windows.Forms.Button();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panelHistory.SuspendLayout();
this.tableLayoutPanel2.SuspendLayout();
this.panel4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvDetail)).BeginInit();
this.SuspendLayout();
//
// panelHistory
//
this.panelHistory.Controls.Add(this.tableLayoutPanel2);
this.panelHistory.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelHistory.Location = new System.Drawing.Point(0, 0);
this.panelHistory.Name = "panelHistory";
this.panelHistory.Size = new System.Drawing.Size(678, 467);
this.panelHistory.TabIndex = 1;
//
// tableLayoutPanel2
//
this.tableLayoutPanel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(245)))), ((int)(((byte)(255)))));
this.tableLayoutPanel2.ColumnCount = 3;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel2.Controls.Add(this.panel4, 1, 3);
this.tableLayoutPanel2.Controls.Add(this.label3, 1, 0);
this.tableLayoutPanel2.Controls.Add(this.dgvDetail, 1, 1);
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 5;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 10F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 10F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(678, 467);
this.tableLayoutPanel2.TabIndex = 1;
//
// panel4
//
this.panel4.Controls.Add(this.btnAccept);
this.panel4.Controls.Add(this.btnRefuse);
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(23, 425);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(632, 29);
this.panel4.TabIndex = 1;
//
// label3
//
this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
this.label3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.label3.Location = new System.Drawing.Point(23, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(632, 30);
this.label3.TabIndex = 2;
this.label3.Text = "已受理的需求无法编辑和撤销!";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// dgvDetail
//
this.dgvDetail.BackgroundColor = System.Drawing.SystemColors.Window;
this.dgvDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column3,
this.Column5,
this.Column2,
this.Column4});
this.dgvDetail.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvDetail.Location = new System.Drawing.Point(23, 33);
this.dgvDetail.Name = "dgvDetail";
this.dgvDetail.RowTemplate.Height = 23;
this.dgvDetail.Size = new System.Drawing.Size(632, 376);
this.dgvDetail.TabIndex = 3;
//
// btnAccept
//
this.btnAccept.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.btnAccept.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.btnAccept.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.btnAccept.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAccept.ForeColor = System.Drawing.Color.White;
this.btnAccept.Location = new System.Drawing.Point(322, 2);
this.btnAccept.Name = "btnAccept";
this.btnAccept.Size = new System.Drawing.Size(82, 25);
this.btnAccept.TabIndex = 5;
this.btnAccept.Text = "受 理";
this.btnAccept.UseVisualStyleBackColor = false;
//
// btnRefuse
//
this.btnRefuse.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.btnRefuse.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
this.btnRefuse.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.btnRefuse.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnRefuse.ForeColor = System.Drawing.Color.White;
this.btnRefuse.Location = new System.Drawing.Point(229, 2);
this.btnRefuse.Name = "btnRefuse";
this.btnRefuse.Size = new System.Drawing.Size(82, 25);
this.btnRefuse.TabIndex = 4;
this.btnRefuse.Text = "回 绝";
this.btnRefuse.UseVisualStyleBackColor = false;
//
// Column3
//
this.Column3.DataPropertyName = "DemandText";
this.Column3.HeaderText = "需求内容";
this.Column3.Name = "Column3";
this.Column3.Width = 200;
//
// Column5
//
this.Column5.DataPropertyName = "AcceptStatus";
this.Column5.HeaderText = "受理状态";
this.Column5.Name = "Column5";
this.Column5.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// Column2
//
this.Column2.DataPropertyName = "CreateDate";
this.Column2.HeaderText = "创建日期";
this.Column2.Name = "Column2";
//
// Column4
//
this.Column4.DataPropertyName = "ModifiedDate";
this.Column4.HeaderText = "修改日期";
this.Column4.Name = "Column4";
//
// wTellUSAck
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(678, 467);
this.Controls.Add(this.panelHistory);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "wTellUSAck";
this.Text = "需求反馈";
this.Load += new System.EventHandler(this.wTellUS_Load);
this.panelHistory.ResumeLayout(false);
this.tableLayoutPanel2.ResumeLayout(false);
this.panel4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvDetail)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panelHistory;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.DataGridView dgvDetail;
private System.Windows.Forms.Button btnAccept;
private System.Windows.Forms.Button btnRefuse;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
//
using Tools.MyCommon;
using Tools.MyData;
using Tools.MyUtils;
namespace Tools.UI.sys
{
public partial class wTellUSAck : wEditBasic
{
/// <summary>
/// 数据源(单表)
/// </summary>
DataTable _dt = null;
public wTellUSAck()
{
InitializeComponent();
}
private void wTellUS_Load(object sender, EventArgs e)
{
//初始化模块表
this.ModuleTableList = new List<TQuery> { new TQuery("FTT_UserDemand", $"SELECT * FROM FTT_UserDemand WHERE ISNULL(DelStatus,0)={DelStatus.Nomarl}") };
//初始化数据访问对象
this.InitDBHelper(Utils.GetDbLinkString204("FTT_Work"));
//初始化界面
this.InitUI();
//异步装载数据
Task.Run(() => this.InitData());
}
public override void InitData()
{
this._ds = this._db.GetData(this.ModuleTableList, true);
this._dt = this._ds.Tables[0];
}
public override void InitUI()
{
//显示编辑页面
this.InitGridView(this.dgvDetail, false, true);
//绑定事件
this.btnAccept.Click += BtnAccept_Click;
this.btnRefuse.Click += BtnRefuse_Click;
}
//事件:受理
private void BtnAccept_Click(object sender, EventArgs e)
{
this.SetAcceptStatus(AcceptStatus.Accepted);
}
//事件:回绝
private void BtnRefuse_Click(object sender, EventArgs e)
{
this.SetAcceptStatus(AcceptStatus.Failed);
}
/// <summary>
/// 设置记录状态
/// </summary>
/// <param name="status"></param>
private void SetAcceptStatus(string status)
{
if (this.dgvDetail.CurrentRow == null)
{
MessageBox.Show("请先选择一行信息!", "提示");
return;
}
//设置状态并保存
var index = this.dgvDetail.CurrentRow.Index;
var drNow = this._dt.DefaultView[index].Row;
drNow["AcceptStatus"] = status;
drNow["AckUserName"] = LoginInfo.UserName;
drNow.EndEdit();
this.Save();
}
}
}
<?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="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
\ No newline at end of file
......@@ -38,7 +38,7 @@
this.HomePage = new System.Windows.Forms.TabPage();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.lbTellUS = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.lbUserAck = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
......@@ -176,7 +176,7 @@
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel1.Controls.Add(this.lbTellUS, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.label7, 3, 1);
this.tableLayoutPanel1.Controls.Add(this.lbUserAck, 3, 1);
this.tableLayoutPanel1.Controls.Add(this.label8, 1, 3);
this.tableLayoutPanel1.Controls.Add(this.label9, 3, 3);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
......@@ -205,23 +205,24 @@
this.lbTellUS.Text = "需求反馈";
this.lbTellUS.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label7
//
this.label7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
this.label7.Dock = System.Windows.Forms.DockStyle.Fill;
this.label7.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.ForeColor = System.Drawing.Color.White;
this.label7.Location = new System.Drawing.Point(250, 93);
this.label7.Margin = new System.Windows.Forms.Padding(0);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(115, 62);
this.label7.TabIndex = 1;
this.label7.Text = "敬请期待";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// lbUserAck
//
this.lbUserAck.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
this.lbUserAck.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbUserAck.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbUserAck.ForeColor = System.Drawing.Color.Black;
this.lbUserAck.Location = new System.Drawing.Point(250, 93);
this.lbUserAck.Margin = new System.Windows.Forms.Padding(0);
this.lbUserAck.Name = "lbUserAck";
this.lbUserAck.Size = new System.Drawing.Size(115, 62);
this.lbUserAck.TabIndex = 1;
this.lbUserAck.Text = "需求受理";
this.lbUserAck.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbUserAck.Click += new System.EventHandler(this.lbUserAck_Click);
//
// label8
//
this.label8.BackColor = System.Drawing.Color.PaleTurquoise;
this.label8.BackColor = System.Drawing.Color.Turquoise;
this.label8.Dock = System.Windows.Forms.DockStyle.Fill;
this.label8.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.ForeColor = System.Drawing.Color.White;
......@@ -599,7 +600,7 @@
private System.Windows.Forms.TabPage HomePage;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Label lbTellUS;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label lbUserAck;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
}
......
......@@ -552,6 +552,8 @@ namespace Tools
#endregion
#region 扩展:首页功能
//需求反馈和受理之间应该加上并发控制,后续再说
//事件:需求反馈
private void LbTellUS_Click(object sender, EventArgs e)
{
......@@ -564,6 +566,23 @@ namespace Tools
//弹出需求反馈窗口
new wTellUS().ShowDialog();
}
//事件:需求受理
private void lbUserAck_Click(object sender, EventArgs e)
{
//权限校验
if (LoginInfo.UserName.Equals(APP.TEMP_USER_NAME) && string.IsNullOrEmpty(LoginInfo.Password))
{
this.ShowMessage("使用此功能,需要先登录!");
return;
}
if (!LoginInfo.IsPrincipal)
{
this.ShowMessage("只有部门负责人才能使用该权限!");
return;
}
//弹出需求受理窗口
new wTellUSAck().ShowDialog();
}
#endregion
......@@ -662,5 +681,7 @@ namespace Tools
}
#endregion
}
}
......@@ -125,7 +125,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD0
EgAAAk1TRnQBSQFMAgEBBQEAAcgBAAHIAQABIAEAASABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
EgAAAk1TRnQBSQFMAgEBBQEAAdABAAHQAQABIAEAASABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABgAMAAUADAAEBAQABCAYAASAYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
......@@ -214,6 +214,9 @@
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>713, 17</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>713, 17</value>
</metadata>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>814, 17</value>
</metadata>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment