diff --git a/Stone.WinForm/Stone.WinBiz/BasicData/F_ErrTypeLevel.cs b/Stone.WinForm/Stone.WinBiz/BasicData/F_ErrTypeLevel.cs
index d73fe89..d4f3c14 100644
--- a/Stone.WinForm/Stone.WinBiz/BasicData/F_ErrTypeLevel.cs
+++ b/Stone.WinForm/Stone.WinBiz/BasicData/F_ErrTypeLevel.cs
@@ -14,8 +14,8 @@ namespace Stone.WinBiz.BasicData
{
public F_ErrTypeLevel()
{
- this.type = "PartOutQty";
- this.name = "基础资料_累计发货数量";
+ this.type = "ErrTypeLevel";
+ this.name = "系统设置_预期设置";
this.entity = new Entity_t_ErrTypeLevel();
//this.entityView = new Entity_v_Product();
}
diff --git a/Stone.WinForm/Stone.WinModule/BasicData/F_Factory.cs b/Stone.WinForm/Stone.WinModule/BasicData/F_Factory.cs
index 7e341a4..2a923c5 100644
--- a/Stone.WinForm/Stone.WinModule/BasicData/F_Factory.cs
+++ b/Stone.WinForm/Stone.WinModule/BasicData/F_Factory.cs
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
+using System.Windows.Forms;
using Stone.WinBiz.BasicData;
namespace Stone.WinModule.BasicData
@@ -88,6 +89,13 @@ namespace Stone.WinModule.BasicData
return frm;
}
+ if(f_base.type == "ErrTypeLevel")
+ {
+ frmErrTypeLevelDetail frm = new frmErrTypeLevelDetail();
+ frm.m_Base = f_base;
+ return frm;
+ }
+
return null;
}
diff --git a/Stone.WinForm/Stone.WinModule/BasicData/frmErrTypeLevelDetail.Designer.cs b/Stone.WinForm/Stone.WinModule/BasicData/frmErrTypeLevelDetail.Designer.cs
new file mode 100644
index 0000000..af4eb92
--- /dev/null
+++ b/Stone.WinForm/Stone.WinModule/BasicData/frmErrTypeLevelDetail.Designer.cs
@@ -0,0 +1,164 @@
+namespace Stone.WinModule.BasicData
+{
+ partial class frmErrTypeLevelDetail
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows 窗体设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.txtMemo = new System.Windows.Forms.TextBox();
+ this.label3 = new System.Windows.Forms.Label();
+ this.txtName = new System.Windows.Forms.TextBox();
+ this.txtCode = new System.Windows.Forms.TextBox();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.colorDialog1 = new System.Windows.Forms.ColorDialog();
+ this.label4 = new System.Windows.Forms.Label();
+ this.txtemail = new System.Windows.Forms.TextBox();
+ this.SuspendLayout();
+ //
+ // btnAddNewLine
+ //
+ this.btnAddNewLine.Location = new System.Drawing.Point(41, 191);
+ //
+ // btnClose
+ //
+ this.btnClose.Location = new System.Drawing.Point(254, 191);
+ //
+ // btnOK
+ //
+ this.btnOK.Location = new System.Drawing.Point(167, 191);
+ //
+ // txtMemo
+ //
+ this.txtMemo.Location = new System.Drawing.Point(113, 100);
+ this.txtMemo.MaxLength = 200;
+ this.txtMemo.Name = "txtMemo";
+ this.txtMemo.Size = new System.Drawing.Size(222, 21);
+ this.txtMemo.TabIndex = 2;
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(23, 103);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(41, 12);
+ this.label3.TabIndex = 111;
+ this.label3.Text = "级别:";
+ //
+ // txtName
+ //
+ this.txtName.Location = new System.Drawing.Point(113, 71);
+ this.txtName.MaxLength = 100;
+ this.txtName.Name = "txtName";
+ this.txtName.Size = new System.Drawing.Size(222, 21);
+ this.txtName.TabIndex = 1;
+ //
+ // txtCode
+ //
+ this.txtCode.Location = new System.Drawing.Point(113, 40);
+ this.txtCode.MaxLength = 10;
+ this.txtCode.Name = "txtCode";
+ this.txtCode.Size = new System.Drawing.Size(222, 21);
+ this.txtCode.TabIndex = 0;
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(23, 74);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(65, 12);
+ this.label2.TabIndex = 109;
+ this.label2.Text = "预警类型:";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(23, 44);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(65, 12);
+ this.label1.TabIndex = 108;
+ this.label1.Text = "类型编码:";
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(23, 140);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(77, 12);
+ this.label4.TabIndex = 111;
+ this.label4.Text = "邮件通知人:";
+ //
+ // txtemail
+ //
+ this.txtemail.Location = new System.Drawing.Point(113, 137);
+ this.txtemail.MaxLength = 200;
+ this.txtemail.Name = "txtemail";
+ this.txtemail.Size = new System.Drawing.Size(222, 21);
+ this.txtemail.TabIndex = 2;
+ //
+ // frmErrTypeLevelDetail
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.ClientSize = new System.Drawing.Size(381, 277);
+ this.Controls.Add(this.txtemail);
+ this.Controls.Add(this.txtMemo);
+ this.Controls.Add(this.label4);
+ this.Controls.Add(this.label3);
+ this.Controls.Add(this.txtName);
+ this.Controls.Add(this.txtCode);
+ this.Controls.Add(this.label2);
+ this.Controls.Add(this.label1);
+ this.Name = "frmErrTypeLevelDetail";
+ this.Load += new System.EventHandler(this.frmColorDetail_Load);
+ this.Controls.SetChildIndex(this.btnOK, 0);
+ this.Controls.SetChildIndex(this.btnClose, 0);
+ this.Controls.SetChildIndex(this.btnAddNewLine, 0);
+ this.Controls.SetChildIndex(this.label1, 0);
+ this.Controls.SetChildIndex(this.label2, 0);
+ this.Controls.SetChildIndex(this.txtCode, 0);
+ this.Controls.SetChildIndex(this.txtName, 0);
+ this.Controls.SetChildIndex(this.label3, 0);
+ this.Controls.SetChildIndex(this.label4, 0);
+ this.Controls.SetChildIndex(this.txtMemo, 0);
+ this.Controls.SetChildIndex(this.txtemail, 0);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.TextBox txtMemo;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.TextBox txtName;
+ private System.Windows.Forms.TextBox txtCode;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.ColorDialog colorDialog1;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.TextBox txtemail;
+ }
+}
diff --git a/Stone.WinForm/Stone.WinModule/BasicData/frmErrTypeLevelDetail.cs b/Stone.WinForm/Stone.WinModule/BasicData/frmErrTypeLevelDetail.cs
new file mode 100644
index 0000000..cf8ab63
--- /dev/null
+++ b/Stone.WinForm/Stone.WinModule/BasicData/frmErrTypeLevelDetail.cs
@@ -0,0 +1,66 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+using Stone.Common;
+
+namespace Stone.WinModule.BasicData
+{
+ public partial class frmErrTypeLevelDetail : Stone.WinModule.BasicData.frmBaseMainDetail
+ {
+ public frmErrTypeLevelDetail()
+ {
+ InitializeComponent();
+ }
+
+ private void frmColorDetail_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ public override bool GetData()
+ {
+ if (!MyValidator.IsEmpty(this.txtCode, "")) return false;
+ if (!MyValidator.IsEmpty(this.txtName, "")) return false;
+ if (!MyValidator.IsEmpty(this.txtMemo, "")) return false;
+ if (!MyValidator.IsEmpty(this.txtemail, "")) return false;
+ base.GetData();
+ drData["Code"] = MyStrings.GetString(this.txtCode.Text.Trim());
+ drData["ErrTypeDesc"] = MyStrings.GetString(this.txtName.Text.Trim());
+ drData["Errlevel"] = MyStrings.GetString(this.txtMemo.Text.Trim());
+ drData["ToPerson"] = MyStrings.GetString(this.txtemail.Text.Trim());
+
+ return true;
+ }
+
+ public override bool SetData()
+ {
+ if (type == 2)
+ {
+ this.txtCode.ReadOnly = true;
+ }
+
+ if (base.SetData())
+ {
+ this.txtCode.Text = drData["Code"].ToString();
+ this.txtName.Text = drData["Name"].ToString();
+ this.txtMemo.Text = drData["Memo"].ToString();
+ }
+
+ return false;
+ }
+
+ public override void Clear()
+ {
+ base.Clear();
+ this.txtCode.Text = "";
+ this.txtName.Text = "";
+ this.txtMemo.Text = "";
+ this.txtCode.Focus();
+ }
+
+ }
+}
diff --git a/Stone.WinForm/Stone.WinModule/BasicData/frmErrTypeLevelDetail.resx b/Stone.WinForm/Stone.WinModule/BasicData/frmErrTypeLevelDetail.resx
new file mode 100644
index 0000000..aa0ca0f
--- /dev/null
+++ b/Stone.WinForm/Stone.WinModule/BasicData/frmErrTypeLevelDetail.resx
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 17, 17
+
+
\ No newline at end of file
diff --git a/Stone.WinForm/Stone.WinModule/Stone.WinModule.csproj b/Stone.WinForm/Stone.WinModule/Stone.WinModule.csproj
index 0daf151..a30a6a0 100644
--- a/Stone.WinForm/Stone.WinModule/Stone.WinModule.csproj
+++ b/Stone.WinForm/Stone.WinModule/Stone.WinModule.csproj
@@ -154,6 +154,12 @@
frmCallOff.cs
+
+ Form
+
+
+ frmErrTypeLevelDetail.cs
+
Form
@@ -646,6 +652,9 @@
frmColor.cs
+
+ frmErrTypeLevelDetail.cs
+
frmFeature.cs