基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
/***********************
|
||||
* 说明:拉样入口
|
||||
* 创建人:钱雄
|
||||
* 创建日期:2020-09-12
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Business;
|
||||
using Lskj.Util;
|
||||
using Lskj.Model;
|
||||
|
||||
namespace Lskj.layang
|
||||
{
|
||||
/// <summary>
|
||||
/// c#库被调用统一接口类
|
||||
/// </summary>
|
||||
public sealed class DllBaseClass : IForm
|
||||
{
|
||||
public DllBaseClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DllBaseClass(string[] obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
FormMain main = new FormMain();
|
||||
this.SubForm = main;
|
||||
main.SysModel = new DynamicLaYangModel(obj);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("Lskj.PubBillInfo.dll--参数错误-->" + obj.ToString(), ex);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 窗口
|
||||
/// </summary>
|
||||
public Form SubForm { get; set; }
|
||||
}
|
||||
}
|
||||
Generated
+459
@@ -0,0 +1,459 @@
|
||||
namespace Lskj.layang
|
||||
{
|
||||
partial class FormMain
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows 窗体设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.qsld_panel = new DevExpress.XtraEditors.PanelControl();
|
||||
this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.qsdz_amount = new DevExpress.XtraEditors.LabelControl();
|
||||
this.qsdz_count = new DevExpress.XtraEditors.LabelControl();
|
||||
this.labelControl5 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.labelControl4 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.jtld_panel = new DevExpress.XtraEditors.PanelControl();
|
||||
this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.jtdz_amount = new DevExpress.XtraEditors.LabelControl();
|
||||
this.jtdz_count = new DevExpress.XtraEditors.LabelControl();
|
||||
this.labelControl7 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.labelControl6 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.qs_panel = new DevExpress.XtraEditors.PanelControl();
|
||||
this.labelControl8 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.qs_amount = new DevExpress.XtraEditors.LabelControl();
|
||||
this.qs_count = new DevExpress.XtraEditors.LabelControl();
|
||||
this.panelControl2 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.BtnFinish = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.Printing_time = new DevExpress.XtraEditors.LabelControl();
|
||||
this.Challenge_time = new DevExpress.XtraEditors.LabelControl();
|
||||
this.bk_boardtime = new DevExpress.XtraEditors.LabelControl();
|
||||
this.all_amount = new DevExpress.XtraEditors.LabelControl();
|
||||
this.Cutoff_time = new DevExpress.XtraEditors.LabelControl();
|
||||
this.average_time = new DevExpress.XtraEditors.LabelControl();
|
||||
this.all_time = new DevExpress.XtraEditors.LabelControl();
|
||||
this.labelControl9 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.all_count = new DevExpress.XtraEditors.LabelControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
|
||||
this.panelControl1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.qsld_panel)).BeginInit();
|
||||
this.qsld_panel.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.jtld_panel)).BeginInit();
|
||||
this.jtld_panel.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.qs_panel)).BeginInit();
|
||||
this.qs_panel.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
|
||||
this.panelControl2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panelControl1
|
||||
//
|
||||
this.panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.panelControl1.Controls.Add(this.qsld_panel);
|
||||
this.panelControl1.Controls.Add(this.jtld_panel);
|
||||
this.panelControl1.Controls.Add(this.qs_panel);
|
||||
this.panelControl1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panelControl1.Location = new System.Drawing.Point(0, 0);
|
||||
this.panelControl1.Name = "panelControl1";
|
||||
this.panelControl1.Size = new System.Drawing.Size(1054, 485);
|
||||
this.panelControl1.TabIndex = 4;
|
||||
//
|
||||
// qsld_panel
|
||||
//
|
||||
this.qsld_panel.Controls.Add(this.labelControl1);
|
||||
this.qsld_panel.Controls.Add(this.qsdz_amount);
|
||||
this.qsld_panel.Controls.Add(this.qsdz_count);
|
||||
this.qsld_panel.Controls.Add(this.labelControl5);
|
||||
this.qsld_panel.Controls.Add(this.labelControl4);
|
||||
this.qsld_panel.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.qsld_panel.Location = new System.Drawing.Point(0, 327);
|
||||
this.qsld_panel.Name = "qsld_panel";
|
||||
this.qsld_panel.Size = new System.Drawing.Size(1054, 157);
|
||||
this.qsld_panel.TabIndex = 5;
|
||||
//
|
||||
// labelControl1
|
||||
//
|
||||
this.labelControl1.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
|
||||
this.labelControl1.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.labelControl1.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.labelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.labelControl1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.labelControl1.Location = new System.Drawing.Point(2, 2);
|
||||
this.labelControl1.Name = "labelControl1";
|
||||
this.labelControl1.Size = new System.Drawing.Size(62, 153);
|
||||
this.labelControl1.TabIndex = 6;
|
||||
this.labelControl1.Text = "确\r\n色\r\n大\r\n张";
|
||||
//
|
||||
// qsdz_amount
|
||||
//
|
||||
this.qsdz_amount.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.qsdz_amount.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.qsdz_amount.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.qsdz_amount.Location = new System.Drawing.Point(914, 79);
|
||||
this.qsdz_amount.Name = "qsdz_amount";
|
||||
this.qsdz_amount.Size = new System.Drawing.Size(72, 72);
|
||||
this.qsdz_amount.TabIndex = 3;
|
||||
this.qsdz_amount.Text = "总重量(KG)";
|
||||
//
|
||||
// qsdz_count
|
||||
//
|
||||
this.qsdz_count.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.qsdz_count.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.qsdz_count.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.qsdz_count.Location = new System.Drawing.Point(914, 7);
|
||||
this.qsdz_count.Name = "qsdz_count";
|
||||
this.qsdz_count.Size = new System.Drawing.Size(72, 72);
|
||||
this.qsdz_count.TabIndex = 2;
|
||||
this.qsdz_count.Text = "总次数(次)";
|
||||
//
|
||||
// labelControl5
|
||||
//
|
||||
this.labelControl5.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.labelControl5.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.labelControl5.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.labelControl5.Location = new System.Drawing.Point(66, 79);
|
||||
this.labelControl5.Name = "labelControl5";
|
||||
this.labelControl5.Size = new System.Drawing.Size(72, 72);
|
||||
this.labelControl5.TabIndex = 1;
|
||||
this.labelControl5.Tag = "";
|
||||
this.labelControl5.Text = "重\r\n量\r\n(KG)";
|
||||
//
|
||||
// labelControl4
|
||||
//
|
||||
this.labelControl4.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.labelControl4.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.labelControl4.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.labelControl4.Location = new System.Drawing.Point(66, 7);
|
||||
this.labelControl4.Name = "labelControl4";
|
||||
this.labelControl4.Size = new System.Drawing.Size(72, 72);
|
||||
this.labelControl4.TabIndex = 0;
|
||||
this.labelControl4.Text = "次\r\n数\r\n(次)";
|
||||
//
|
||||
// jtld_panel
|
||||
//
|
||||
this.jtld_panel.Controls.Add(this.labelControl2);
|
||||
this.jtld_panel.Controls.Add(this.jtdz_amount);
|
||||
this.jtld_panel.Controls.Add(this.jtdz_count);
|
||||
this.jtld_panel.Controls.Add(this.labelControl7);
|
||||
this.jtld_panel.Controls.Add(this.labelControl6);
|
||||
this.jtld_panel.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.jtld_panel.Location = new System.Drawing.Point(0, 170);
|
||||
this.jtld_panel.Name = "jtld_panel";
|
||||
this.jtld_panel.Size = new System.Drawing.Size(1054, 157);
|
||||
this.jtld_panel.TabIndex = 6;
|
||||
//
|
||||
// labelControl2
|
||||
//
|
||||
this.labelControl2.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
|
||||
this.labelControl2.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.labelControl2.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.labelControl2.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.labelControl2.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.labelControl2.Location = new System.Drawing.Point(2, 2);
|
||||
this.labelControl2.Name = "labelControl2";
|
||||
this.labelControl2.Size = new System.Drawing.Size(62, 153);
|
||||
this.labelControl2.TabIndex = 7;
|
||||
this.labelControl2.Text = "机\r\n台\r\n大\r\n张";
|
||||
//
|
||||
// jtdz_amount
|
||||
//
|
||||
this.jtdz_amount.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.jtdz_amount.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.jtdz_amount.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.jtdz_amount.Location = new System.Drawing.Point(914, 79);
|
||||
this.jtdz_amount.Name = "jtdz_amount";
|
||||
this.jtdz_amount.Size = new System.Drawing.Size(72, 72);
|
||||
this.jtdz_amount.TabIndex = 4;
|
||||
this.jtdz_amount.Text = "总重量(KG)";
|
||||
//
|
||||
// jtdz_count
|
||||
//
|
||||
this.jtdz_count.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.jtdz_count.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.jtdz_count.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.jtdz_count.Location = new System.Drawing.Point(914, 7);
|
||||
this.jtdz_count.Name = "jtdz_count";
|
||||
this.jtdz_count.Size = new System.Drawing.Size(72, 72);
|
||||
this.jtdz_count.TabIndex = 3;
|
||||
this.jtdz_count.Text = "总次数(次)";
|
||||
//
|
||||
// labelControl7
|
||||
//
|
||||
this.labelControl7.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.labelControl7.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.labelControl7.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.labelControl7.Location = new System.Drawing.Point(66, 79);
|
||||
this.labelControl7.Name = "labelControl7";
|
||||
this.labelControl7.Size = new System.Drawing.Size(72, 72);
|
||||
this.labelControl7.TabIndex = 2;
|
||||
this.labelControl7.Text = "重\r\n量\r\n(KG)";
|
||||
//
|
||||
// labelControl6
|
||||
//
|
||||
this.labelControl6.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.labelControl6.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.labelControl6.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.labelControl6.Location = new System.Drawing.Point(66, 7);
|
||||
this.labelControl6.Name = "labelControl6";
|
||||
this.labelControl6.Size = new System.Drawing.Size(72, 72);
|
||||
this.labelControl6.TabIndex = 1;
|
||||
this.labelControl6.Text = "次\r\n数\r\n(次)";
|
||||
//
|
||||
// qs_panel
|
||||
//
|
||||
this.qs_panel.Controls.Add(this.labelControl8);
|
||||
this.qs_panel.Controls.Add(this.qs_amount);
|
||||
this.qs_panel.Controls.Add(this.qs_count);
|
||||
this.qs_panel.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.qs_panel.Location = new System.Drawing.Point(0, 0);
|
||||
this.qs_panel.Name = "qs_panel";
|
||||
this.qs_panel.Size = new System.Drawing.Size(1054, 170);
|
||||
this.qs_panel.TabIndex = 4;
|
||||
//
|
||||
// labelControl8
|
||||
//
|
||||
this.labelControl8.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
|
||||
this.labelControl8.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.labelControl8.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.labelControl8.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.labelControl8.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.labelControl8.Location = new System.Drawing.Point(2, 2);
|
||||
this.labelControl8.Name = "labelControl8";
|
||||
this.labelControl8.Size = new System.Drawing.Size(62, 166);
|
||||
this.labelControl8.TabIndex = 5;
|
||||
this.labelControl8.Text = "确\r\n色\r\n拉\r\n样";
|
||||
//
|
||||
// qs_amount
|
||||
//
|
||||
this.qs_amount.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.qs_amount.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.qs_amount.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.qs_amount.Location = new System.Drawing.Point(837, 89);
|
||||
this.qs_amount.Name = "qs_amount";
|
||||
this.qs_amount.Size = new System.Drawing.Size(72, 72);
|
||||
this.qs_amount.TabIndex = 4;
|
||||
this.qs_amount.Text = "总重量(KG)";
|
||||
//
|
||||
// qs_count
|
||||
//
|
||||
this.qs_count.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.qs_count.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.qs_count.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.qs_count.Location = new System.Drawing.Point(837, 9);
|
||||
this.qs_count.Name = "qs_count";
|
||||
this.qs_count.Size = new System.Drawing.Size(72, 72);
|
||||
this.qs_count.TabIndex = 3;
|
||||
this.qs_count.Text = "总次数(次)";
|
||||
//
|
||||
// panelControl2
|
||||
//
|
||||
this.panelControl2.Controls.Add(this.BtnFinish);
|
||||
this.panelControl2.Controls.Add(this.Printing_time);
|
||||
this.panelControl2.Controls.Add(this.Challenge_time);
|
||||
this.panelControl2.Controls.Add(this.bk_boardtime);
|
||||
this.panelControl2.Controls.Add(this.all_amount);
|
||||
this.panelControl2.Controls.Add(this.Cutoff_time);
|
||||
this.panelControl2.Controls.Add(this.average_time);
|
||||
this.panelControl2.Controls.Add(this.all_time);
|
||||
this.panelControl2.Controls.Add(this.labelControl9);
|
||||
this.panelControl2.Controls.Add(this.all_count);
|
||||
this.panelControl2.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panelControl2.Location = new System.Drawing.Point(0, 485);
|
||||
this.panelControl2.Name = "panelControl2";
|
||||
this.panelControl2.Size = new System.Drawing.Size(1054, 96);
|
||||
this.panelControl2.TabIndex = 5;
|
||||
//
|
||||
// BtnFinish
|
||||
//
|
||||
this.BtnFinish.Location = new System.Drawing.Point(971, 11);
|
||||
this.BtnFinish.Name = "BtnFinish";
|
||||
this.BtnFinish.Size = new System.Drawing.Size(75, 72);
|
||||
this.BtnFinish.TabIndex = 16;
|
||||
this.BtnFinish.Text = "拉样完工";
|
||||
this.BtnFinish.Click += new System.EventHandler(this.OnFinishClick);
|
||||
//
|
||||
// Printing_time
|
||||
//
|
||||
this.Printing_time.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.Printing_time.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.Printing_time.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.Printing_time.Location = new System.Drawing.Point(752, 11);
|
||||
this.Printing_time.Name = "Printing_time";
|
||||
this.Printing_time.Size = new System.Drawing.Size(100, 72);
|
||||
this.Printing_time.TabIndex = 15;
|
||||
this.Printing_time.Text = "印刷开工时间";
|
||||
//
|
||||
// Challenge_time
|
||||
//
|
||||
this.Challenge_time.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.Challenge_time.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.Challenge_time.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.Challenge_time.Location = new System.Drawing.Point(646, 11);
|
||||
this.Challenge_time.Name = "Challenge_time";
|
||||
this.Challenge_time.Size = new System.Drawing.Size(100, 72);
|
||||
this.Challenge_time.TabIndex = 14;
|
||||
this.Challenge_time.Text = "挑战申请时间";
|
||||
//
|
||||
// bk_boardtime
|
||||
//
|
||||
this.bk_boardtime.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.bk_boardtime.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.bk_boardtime.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.bk_boardtime.Location = new System.Drawing.Point(540, 11);
|
||||
this.bk_boardtime.Name = "bk_boardtime";
|
||||
this.bk_boardtime.Size = new System.Drawing.Size(100, 72);
|
||||
this.bk_boardtime.TabIndex = 13;
|
||||
this.bk_boardtime.Text = "版辊上机时间";
|
||||
//
|
||||
// all_amount
|
||||
//
|
||||
this.all_amount.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.all_amount.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.all_amount.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.all_amount.Location = new System.Drawing.Point(242, 11);
|
||||
this.all_amount.Name = "all_amount";
|
||||
this.all_amount.Size = new System.Drawing.Size(80, 72);
|
||||
this.all_amount.TabIndex = 12;
|
||||
this.all_amount.Text = "总重量(KG)\r\n";
|
||||
//
|
||||
// Cutoff_time
|
||||
//
|
||||
this.Cutoff_time.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.Cutoff_time.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.Cutoff_time.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.Cutoff_time.Location = new System.Drawing.Point(434, 11);
|
||||
this.Cutoff_time.Name = "Cutoff_time";
|
||||
this.Cutoff_time.Size = new System.Drawing.Size(100, 72);
|
||||
this.Cutoff_time.TabIndex = 11;
|
||||
this.Cutoff_time.Text = "截至当前用时(分)\r\n";
|
||||
//
|
||||
// average_time
|
||||
//
|
||||
this.average_time.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.average_time.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.average_time.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.average_time.Location = new System.Drawing.Point(328, 11);
|
||||
this.average_time.Name = "average_time";
|
||||
this.average_time.Size = new System.Drawing.Size(100, 72);
|
||||
this.average_time.TabIndex = 10;
|
||||
this.average_time.Text = "平均每次用时(分)";
|
||||
//
|
||||
// all_time
|
||||
//
|
||||
this.all_time.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.all_time.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.all_time.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.all_time.Location = new System.Drawing.Point(156, 11);
|
||||
this.all_time.Name = "all_time";
|
||||
this.all_time.Size = new System.Drawing.Size(80, 72);
|
||||
this.all_time.TabIndex = 9;
|
||||
this.all_time.Text = "总用时(分)\r\n";
|
||||
//
|
||||
// labelControl9
|
||||
//
|
||||
this.labelControl9.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
|
||||
this.labelControl9.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.labelControl9.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.labelControl9.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.labelControl9.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.labelControl9.Location = new System.Drawing.Point(2, 2);
|
||||
this.labelControl9.Name = "labelControl9";
|
||||
this.labelControl9.Size = new System.Drawing.Size(62, 92);
|
||||
this.labelControl9.TabIndex = 8;
|
||||
this.labelControl9.Text = "数\r\n据\r\n合\r\n计";
|
||||
//
|
||||
// all_count
|
||||
//
|
||||
this.all_count.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.all_count.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.all_count.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
|
||||
this.all_count.Location = new System.Drawing.Point(70, 11);
|
||||
this.all_count.Name = "all_count";
|
||||
this.all_count.Size = new System.Drawing.Size(80, 72);
|
||||
this.all_count.TabIndex = 4;
|
||||
this.all_count.Text = "总次数(次)\r\n";
|
||||
//
|
||||
// FormMain
|
||||
//
|
||||
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.Appearance.Options.UseBackColor = true;
|
||||
this.Appearance.Options.UseFont = true;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1054, 579);
|
||||
this.Controls.Add(this.panelControl2);
|
||||
this.Controls.Add(this.panelControl1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.Name = "FormMain";
|
||||
this.Text = "确色拉样";
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
|
||||
this.panelControl1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.qsld_panel)).EndInit();
|
||||
this.qsld_panel.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.jtld_panel)).EndInit();
|
||||
this.jtld_panel.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.qs_panel)).EndInit();
|
||||
this.qs_panel.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
|
||||
this.panelControl2.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.XtraEditors.PanelControl panelControl1;
|
||||
private DevExpress.XtraEditors.PanelControl jtld_panel;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl2;
|
||||
private DevExpress.XtraEditors.LabelControl jtdz_amount;
|
||||
private DevExpress.XtraEditors.LabelControl jtdz_count;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl7;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl6;
|
||||
private DevExpress.XtraEditors.PanelControl qsld_panel;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl1;
|
||||
private DevExpress.XtraEditors.LabelControl qsdz_amount;
|
||||
private DevExpress.XtraEditors.LabelControl qsdz_count;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl5;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl4;
|
||||
private DevExpress.XtraEditors.PanelControl qs_panel;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl8;
|
||||
private DevExpress.XtraEditors.LabelControl qs_amount;
|
||||
private DevExpress.XtraEditors.LabelControl qs_count;
|
||||
private DevExpress.XtraEditors.PanelControl panelControl2;
|
||||
private DevExpress.XtraEditors.LabelControl all_amount;
|
||||
private DevExpress.XtraEditors.LabelControl Cutoff_time;
|
||||
private DevExpress.XtraEditors.LabelControl average_time;
|
||||
private DevExpress.XtraEditors.LabelControl all_time;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl9;
|
||||
private DevExpress.XtraEditors.LabelControl all_count;
|
||||
private DevExpress.XtraEditors.SimpleButton BtnFinish;
|
||||
private DevExpress.XtraEditors.LabelControl Printing_time;
|
||||
private DevExpress.XtraEditors.LabelControl Challenge_time;
|
||||
private DevExpress.XtraEditors.LabelControl bk_boardtime;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,644 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Control;
|
||||
using DevExpress.XtraEditors;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Core;
|
||||
using Lskj.Model;
|
||||
using Lskj.Util;
|
||||
using Lskj.Control.Model;
|
||||
|
||||
namespace Lskj.layang
|
||||
{
|
||||
public partial class FormMain : BaseForm
|
||||
{
|
||||
SimpleButton[] qsButton = new SimpleButton[12];
|
||||
SimpleButton[] qsldButton = new SimpleButton[10];
|
||||
SimpleButton[] jtldButton = new SimpleButton[10];
|
||||
MemoEdit[] mem = new MemoEdit[12];
|
||||
string[] tmqz = new string[] { "QS", "QSLD", "JTLD" };
|
||||
|
||||
#region 公共常量
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
public DataTable dt;
|
||||
public DataTable qsDt;
|
||||
public DataTable qslDt;
|
||||
public DataTable jtDt;
|
||||
#endregion
|
||||
|
||||
#region 私有变量
|
||||
/// <summary>
|
||||
/// 工单号
|
||||
/// </summary>
|
||||
private String gdbillid;
|
||||
/// <summary>
|
||||
/// 拉样模型
|
||||
/// </summary>
|
||||
public DynamicLaYangModel SysModel;
|
||||
/// <summary>
|
||||
/// QS=确色拉样,QSLD=确色拉大,JTLD=机台拉大
|
||||
/// </summary>
|
||||
private String TmQzTag;
|
||||
/// <summary>
|
||||
/// 次数
|
||||
/// </summary>
|
||||
private int qsCount;
|
||||
/// <summary>
|
||||
/// 用料数量
|
||||
/// </summary>
|
||||
private decimal qsAmount;
|
||||
/// <summary>
|
||||
/// 操作员id
|
||||
/// </summary>
|
||||
private int operatorid;
|
||||
/// <summary>
|
||||
/// 操作员名
|
||||
/// </summary>
|
||||
private String operatorname;
|
||||
/// <summary>
|
||||
/// 班组
|
||||
/// </summary>
|
||||
private String bz = "1班";
|
||||
/// <summary>
|
||||
/// 班次
|
||||
/// </summary>
|
||||
private String bc = "白班";
|
||||
/// <summary>
|
||||
/// 机台id
|
||||
/// </summary>
|
||||
private int jtid = 56;
|
||||
/// <summary>
|
||||
/// 当前点击次数
|
||||
/// </summary>
|
||||
int cutCount;
|
||||
/// </summary>
|
||||
///计算sqlValue
|
||||
/// </summary>
|
||||
string sqlValue;
|
||||
/// </summary>
|
||||
///执行SQL
|
||||
/// </summary>
|
||||
string ExecParam;
|
||||
List<string> CalSqlValue = new List<string>();
|
||||
#endregion
|
||||
|
||||
public FormMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
FormLoad();
|
||||
foreach (string item in tmqz)
|
||||
{
|
||||
btnRefresh(item);
|
||||
}
|
||||
TotalData();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
Lskj.Control.Model.AutoSizeChange.ControllInitializeSize(this);
|
||||
WaitForm.HideForm();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:动态加载界面</para>
|
||||
/// </summary>
|
||||
private void FormLoad()
|
||||
{
|
||||
gdbillid = this.SysModel.gdbillid;
|
||||
sqlValue = this.SysModel.sqlValue;
|
||||
ExecParam = this.SysModel.execParam;
|
||||
operatorname = ERPInfo.Instance.UserName;
|
||||
|
||||
CalSqlValue = sqlValue.Split(';').Where(s => !string.IsNullOrEmpty(s)).ToList();
|
||||
|
||||
//bc = ERPInfo.Instance.WorkBZ;
|
||||
//bz = ERPInfo.Instance.ClassName;
|
||||
//jtid = ERPInfo.Instance.WorkJT;
|
||||
if (DBConfig.Instance.CreateConnection())
|
||||
{
|
||||
//执行SQL语句查询表格数据
|
||||
dt = SqlHelper.ExecuteDataTable(string.Format("select operatordate,qscount,amount,TmQz from view_BillOutExpendTab where gdbillid='{0}'", gdbillid));
|
||||
queryDataTable();
|
||||
//换行后的宽度
|
||||
int newWidth = 0;
|
||||
|
||||
//动态添加按钮
|
||||
for (int i = 0; i < qsButton.Length; i++)
|
||||
{
|
||||
qsButton[i] = new SimpleButton();
|
||||
int width = i * 77;
|
||||
if (width < 770)
|
||||
{
|
||||
qsButton[i].Text = (i + 1).ToString();
|
||||
qsButton[i].Location = new Point(width + 67, 9);
|
||||
qsButton[i].Size = new Size(72, 72);
|
||||
qsButton[i].Parent = this.qs_panel;
|
||||
qsButton[i].Enabled = false;
|
||||
qsButton[i].Appearance.BackColor = Color.Gainsboro;
|
||||
qsButton[i].ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat;
|
||||
|
||||
qsButton[i].Appearance.Options.UseBackColor = true;
|
||||
qsButton[i].LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.UltraFlat;
|
||||
qsButton[i].LookAndFeel.UseDefaultLookAndFeel = false;
|
||||
qsButton[i].Click += new EventHandler(this.QsButton_Click);
|
||||
}
|
||||
else
|
||||
{
|
||||
qsButton[i].Text = (i + 1).ToString();
|
||||
qsButton[i].Location = new Point(newWidth + 67, 88);
|
||||
qsButton[i].Size = new Size(72, 72);
|
||||
qsButton[i].Parent = this.qs_panel;
|
||||
qsButton[i].Enabled = false;
|
||||
qsButton[i].Appearance.BackColor = Color.Gainsboro;
|
||||
qsButton[i].ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat;
|
||||
|
||||
qsButton[i].Appearance.Options.UseBackColor = true;
|
||||
qsButton[i].LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.UltraFlat;
|
||||
qsButton[i].LookAndFeel.UseDefaultLookAndFeel = false;
|
||||
|
||||
qsButton[i].Click += new EventHandler(this.QsButton_Click);
|
||||
newWidth += 77;
|
||||
}
|
||||
LyAttributes ly = new LyAttributes();
|
||||
ly.TmQzTag = "QS";
|
||||
ly.qsCount = i + 1;
|
||||
DataTable newdt = dt.Select("TmQz='QS'") != null && dt.Select("TmQz='QS'").Length > 0 ? dt.Select("TmQz='QS'").CopyToDataTable() : null;
|
||||
if (newdt != null && newdt.Rows.Count > 0)
|
||||
{
|
||||
DataRow[] newdr = newdt.Select(string.Format("qscount='{0}'", i + 1));
|
||||
if (newdr.Length > 0)
|
||||
{
|
||||
ly.qsAmount = Convert.ToDecimal(newdr[0]["amount"]);
|
||||
ly.qsCount = Convert.ToInt32(newdr[0]["qscount"]);
|
||||
}
|
||||
}
|
||||
ly.mem = mem[i];
|
||||
qsButton[i].Tag = ly;
|
||||
this.qs_panel.Controls.Add(qsButton[i]);
|
||||
}
|
||||
|
||||
//动态添加确色大张按钮和编辑框
|
||||
for (int i = 0; i < qsldButton.Length; i++)
|
||||
{
|
||||
qsldButton[i] = new SimpleButton();
|
||||
mem[i] = new MemoEdit();
|
||||
qsldButton[i].Text = (i + 1).ToString();
|
||||
qsldButton[i].Location = new Point((i + 1) * 77 + 67, 7);
|
||||
mem[i].Location = new Point((i + 1) * 77 + 67, 79);
|
||||
mem[i].Enabled = false;
|
||||
qsldButton[i].Parent = this.qsld_panel;
|
||||
qsldButton[i].Size = new Size(72, 72);
|
||||
qsldButton[i].Enabled = false;
|
||||
qsldButton[i].Appearance.BackColor = Color.Gainsboro;
|
||||
qsldButton[i].ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat;
|
||||
|
||||
qsldButton[i].Appearance.Options.UseBackColor = true;
|
||||
qsldButton[i].LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.UltraFlat;
|
||||
qsldButton[i].LookAndFeel.UseDefaultLookAndFeel = false;
|
||||
|
||||
mem[i].Size = new Size(72, 72);
|
||||
mem[i].BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat;
|
||||
mem[i].Properties.ScrollBars = System.Windows.Forms.ScrollBars.None;
|
||||
mem[i].Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
mem[i].Properties.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
|
||||
qsldButton[i].TabIndex = i + 1;
|
||||
qsldButton[i].Click += new EventHandler(this.QsdzButton_Click);
|
||||
LyAttributes ly = new LyAttributes();
|
||||
ly.TmQzTag = "QSLD";
|
||||
ly.qsCount = i + 1;
|
||||
DataTable newdt = dt.Select("TmQz='QSLD'") != null && dt.Select("TmQz='QSLD'").Length > 0 ? dt.Select("TmQz='QSLD'").CopyToDataTable() : null;
|
||||
if (newdt != null && newdt.Rows.Count > 0)
|
||||
{
|
||||
DataRow[] newdr = newdt.Select(string.Format("qscount='{0}'", i + 1));
|
||||
if (newdr.Length > 0)
|
||||
{
|
||||
ly.qsAmount = Convert.ToDecimal(newdr[0]["amount"]);
|
||||
ly.qsCount = Convert.ToInt32(newdr[0]["qscount"]);
|
||||
}
|
||||
}
|
||||
ly.mem = mem[i];
|
||||
qsldButton[i].Tag = ly;
|
||||
mem[i].Text = ly.qsAmount.ToString("0.##");
|
||||
this.qsld_panel.Controls.Add(qsldButton[i]);
|
||||
this.qsld_panel.Controls.Add(mem[i]);
|
||||
}
|
||||
|
||||
//动态添加机台大张按钮和编辑框
|
||||
for (int i = 0; i < jtldButton.Length; i++)
|
||||
{
|
||||
jtldButton[i] = new SimpleButton();
|
||||
mem[i] = new MemoEdit();
|
||||
jtldButton[i].Text = (i + 1).ToString();
|
||||
jtldButton[i].Location = new Point((i + 1) * 77 + 67, 7);
|
||||
mem[i].Location = new Point((i + 1) * 77 + 67, 79);
|
||||
mem[i].Enabled = false;
|
||||
jtldButton[i].Parent = this.jtld_panel;
|
||||
jtldButton[i].Size = new Size(72, 72);
|
||||
jtldButton[i].Enabled = false;
|
||||
jtldButton[i].Appearance.BackColor = Color.Gainsboro;
|
||||
jtldButton[i].ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat;
|
||||
jtldButton[i].Appearance.Options.UseBackColor = true;
|
||||
jtldButton[i].LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.UltraFlat;
|
||||
jtldButton[i].LookAndFeel.UseDefaultLookAndFeel = false;
|
||||
|
||||
mem[i].Size = new Size(72, 72);
|
||||
mem[i].BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat;
|
||||
mem[i].Properties.ScrollBars = System.Windows.Forms.ScrollBars.None;
|
||||
mem[i].Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
mem[i].Properties.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
|
||||
mem[i].TabIndex = i + 1;
|
||||
jtldButton[i].Click += new EventHandler(this.JtdzButton_Click);
|
||||
LyAttributes ly = new LyAttributes();
|
||||
ly.TmQzTag = "JTLD";
|
||||
ly.qsCount = i + 1;
|
||||
DataTable newdt = dt.Select("TmQz='JTLD'") != null && dt.Select("TmQz='JTLD'").Length > 0 ? dt.Select("TmQz='JTLD'").CopyToDataTable() : null;
|
||||
if (newdt != null && newdt.Rows.Count > 0)
|
||||
{
|
||||
DataRow[] newdr = newdt.Select(string.Format("qscount='{0}'", i + 1));
|
||||
if (newdr.Length > 0)
|
||||
{
|
||||
ly.qsAmount = Convert.ToDecimal(newdr[0]["amount"]);
|
||||
ly.qsCount = Convert.ToInt32(newdr[0]["qsCount"]);
|
||||
}
|
||||
}
|
||||
ly.mem = mem[i];
|
||||
jtldButton[i].Tag = ly;
|
||||
mem[i].Text = ly.qsAmount.ToString("0.##");
|
||||
this.jtld_panel.Controls.Add(jtldButton[i]);
|
||||
this.jtld_panel.Controls.Add(mem[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询表格数据
|
||||
/// </summary>
|
||||
private void queryDataTable()
|
||||
{
|
||||
qsDt = SqlHelper.ExecuteDataTable(string.Format("select qscount,amount,operatordate from view_BillOutExpendTab where gdbillid='{0}'AND TmQz='QS' order by qscount desc", gdbillid));
|
||||
qslDt = SqlHelper.ExecuteDataTable(string.Format("select qscount,amount,operatordate from view_BillOutExpendTab where gdbillid='{0}'AND TmQz='QSLD' order by qscount desc", gdbillid));
|
||||
jtDt = SqlHelper.ExecuteDataTable(string.Format("select qscount,amount,operatordate from view_BillOutExpendTab where gdbillid='{0}'AND TmQz='JTLD' order by qscount desc", gdbillid));
|
||||
}
|
||||
|
||||
#region 事件相关
|
||||
/// <summary>
|
||||
/// 按钮刷新事件
|
||||
/// </summary>
|
||||
private void btnRefresh(string flag)
|
||||
{
|
||||
try
|
||||
{
|
||||
int allAmount = 0;
|
||||
DateTime clickTime;
|
||||
if ("QS".Equals(flag + ""))
|
||||
{
|
||||
if (qsDt != null)
|
||||
{
|
||||
if (qsDt.Rows.Count == 0)
|
||||
{
|
||||
qsButton[0].Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
cutCount = Convert.ToInt32(qsDt.Rows[0]["qscount"]);
|
||||
if (cutCount < qsButton.Length)
|
||||
{
|
||||
int j = cutCount;
|
||||
qsButton[cutCount].Enabled = true;
|
||||
for (int i = 0; i < cutCount; i++)
|
||||
{
|
||||
j -= 1;
|
||||
qsButton[i].Appearance.BackColor = Color.LightSteelBlue;
|
||||
clickTime = Convert.ToDateTime(qsDt.Rows[j]["operatordate"].ToString());
|
||||
qsButton[i].Text = (i + 1) + "\n" + clickTime.ToShortDateString() + "\n" + clickTime.ToShortTimeString();
|
||||
}
|
||||
}
|
||||
this.qs_count.Text = "总次数(次)" + "\n" + cutCount;
|
||||
this.qs_amount.Text = "总重量(KG)" + "\n" + 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ("QSLD".Equals(flag + ""))
|
||||
{
|
||||
if (qslDt != null)
|
||||
{
|
||||
if (qslDt.Rows.Count == 0)
|
||||
{
|
||||
qsldButton[0].Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
cutCount = Convert.ToInt32(qslDt.Rows[0]["qscount"]);
|
||||
|
||||
if (cutCount < qsldButton.Length)
|
||||
{
|
||||
int j = cutCount;
|
||||
qsldButton[cutCount].Enabled = true;
|
||||
for (int i = 0; i < cutCount; i++)
|
||||
{
|
||||
j -= 1;
|
||||
qsAmount = Convert.ToInt32(qslDt.Rows[i]["amount"]);
|
||||
qsldButton[i].Appearance.BackColor = Color.LightSteelBlue;
|
||||
allAmount += Convert.ToInt32(qsAmount);
|
||||
clickTime = Convert.ToDateTime(qslDt.Rows[j]["operatordate"].ToString());
|
||||
qsldButton[i].Text = (i + 1) + "\n" + clickTime.ToShortDateString() + "\n" + clickTime.ToShortTimeString();
|
||||
}
|
||||
}
|
||||
this.qsdz_count.Text = "总次数(次)" + "\n" + cutCount;
|
||||
this.qsdz_amount.Text = "总重量(KG)" + "\n" + allAmount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ("JTLD".Equals(flag + ""))
|
||||
{
|
||||
if (jtDt != null)
|
||||
{
|
||||
if (jtDt.Rows.Count == 0)
|
||||
{
|
||||
jtldButton[0].Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
cutCount = Convert.ToInt32(jtDt.Rows[0]["qscount"]);
|
||||
|
||||
if (cutCount < jtldButton.Length)
|
||||
{
|
||||
int j = cutCount;
|
||||
jtldButton[cutCount].Enabled = true;
|
||||
for (int i = 0; i < cutCount; i++)
|
||||
{
|
||||
j -= 1;
|
||||
jtldButton[i].Appearance.BackColor = Color.LightSteelBlue;
|
||||
qsAmount = Convert.ToInt32(jtDt.Rows[i]["amount"]);
|
||||
allAmount += Convert.ToInt32(qsAmount);
|
||||
clickTime = Convert.ToDateTime(jtDt.Rows[j]["operatordate"].ToString());
|
||||
jtldButton[i].Text = (i + 1) + "\n" + clickTime.ToShortDateString() + "\n" + clickTime.ToShortTimeString();
|
||||
}
|
||||
}
|
||||
this.jtdz_count.Text = "总次数(次)" + "\n" + cutCount;
|
||||
this.jtdz_amount.Text = "总重量(KG)" + "\n" + allAmount;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 确色拉样按钮点击事件
|
||||
/// </summary>
|
||||
private void QsButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
SimpleButton button = (SimpleButton)sender;
|
||||
LyAttributes ly = button.Tag as LyAttributes;
|
||||
qsCount = Convert.ToInt32(button.Text);
|
||||
qsAmount = ly.qsAmount;
|
||||
TmQzTag = ly.TmQzTag;
|
||||
// 验证拉样存储过程
|
||||
string tipMsg = string.Empty;
|
||||
if (PullSampleImpl.Pullsample(gdbillid, TmQzTag, qsCount, qsAmount, operatorid, operatorname, bz, bc, jtid, out tipMsg) == 1)
|
||||
{
|
||||
queryDataTable();
|
||||
button.Enabled = false;
|
||||
btnRefresh(TmQzTag);
|
||||
TotalData();
|
||||
MessageUtil.Show("执行成功!");
|
||||
}
|
||||
else
|
||||
{
|
||||
//返回错误信息
|
||||
MessageUtil.Show(tipMsg);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 确色大张按钮点击事件
|
||||
/// </summary>
|
||||
private void QsdzButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
SimpleButton button = (SimpleButton)sender;
|
||||
LyAttributes ly = button.Tag as LyAttributes;
|
||||
if (button.Text != "保存")
|
||||
{
|
||||
button.Text = "保存";
|
||||
ly.mem.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
qsAmount = Convert.ToDecimal(ly.mem.Text);
|
||||
qsCount = ly.qsCount;
|
||||
TmQzTag = ly.TmQzTag;
|
||||
if (qsAmount > 45)
|
||||
{
|
||||
MessageBox.Show("数量不能超过45kg");
|
||||
}
|
||||
else
|
||||
{
|
||||
// 验证拉样存储过程
|
||||
string tipMsg = string.Empty;
|
||||
if (PullSampleImpl.Pullsample(gdbillid, TmQzTag, qsCount, qsAmount, operatorid, operatorname, bz, bc, jtid, out tipMsg) == 1)
|
||||
{
|
||||
queryDataTable();
|
||||
button.Enabled = false;
|
||||
button.BackColor = Color.Silver;
|
||||
ly.mem.Enabled = false;
|
||||
btnRefresh(TmQzTag);
|
||||
TotalData();
|
||||
MessageUtil.Show("执行成功!");
|
||||
}
|
||||
else
|
||||
{
|
||||
//返回错误信息
|
||||
MessageUtil.Show(tipMsg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 机台大张按钮点击事件
|
||||
/// </summary>
|
||||
private void JtdzButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
SimpleButton button = (SimpleButton)sender;
|
||||
LyAttributes ly = button.Tag as LyAttributes;
|
||||
if (button.Text != "保存")
|
||||
{
|
||||
button.Text = "保存";
|
||||
ly.mem.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
qsAmount = Convert.ToDecimal(ly.mem.Text);
|
||||
qsCount = ly.qsCount;
|
||||
TmQzTag = ly.TmQzTag;
|
||||
if (qsAmount > 45)
|
||||
{
|
||||
MessageBox.Show("数量不能超过45kg");
|
||||
}
|
||||
else
|
||||
{
|
||||
// 验证拉样存储过程
|
||||
string tipMsg = string.Empty;
|
||||
if (PullSampleImpl.Pullsample(gdbillid, TmQzTag, qsCount, qsAmount, operatorid, operatorname, bz, bc, jtid, out tipMsg) == 1)
|
||||
{
|
||||
queryDataTable();
|
||||
button.Enabled = false;
|
||||
button.BackColor = Color.Silver;
|
||||
ly.mem.Enabled = false;
|
||||
btnRefresh(TmQzTag);
|
||||
TotalData();
|
||||
MessageUtil.Show("执行成功!");
|
||||
}
|
||||
else
|
||||
{
|
||||
//返回错误信息
|
||||
MessageUtil.Show(tipMsg);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 拉样完工点击按钮点击事件
|
||||
/// </summary>
|
||||
private void OnFinishClick(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult result = MessageUtil.Show(("是否确认拉样完工?"), MessageBoxButtons.YesNo);
|
||||
if (result == DialogResult.Yes)
|
||||
{
|
||||
string sqlValue = string.Format("update Mrp_WorkOrderTab set qswgtig=1 where GdBillid='{0}'", gdbillid);
|
||||
try
|
||||
{
|
||||
if (SqlHelper.ExecuteNonQuery(sqlValue) > 0)
|
||||
{
|
||||
SqlHelper.ExecuteNonQuery(ExecParam);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 数据合计
|
||||
/// </summary>
|
||||
private void TotalData()
|
||||
{
|
||||
//总次数
|
||||
if (SqlHelper.ExecuteDataTable(CalSqlValue[0]).Rows.Count > 0)
|
||||
{
|
||||
this.all_count.Text = "总次数(次)\n" + SqlHelper.ExecuteDataTable(CalSqlValue[0]).Rows[0]["cs"];
|
||||
}
|
||||
//总用时
|
||||
if (SqlHelper.ExecuteDataTable(CalSqlValue[1]).Rows.Count > 0)
|
||||
{
|
||||
this.all_time.Text = "总用时(分)\n" + SqlHelper.ExecuteDataTable(CalSqlValue[1]).Rows[0]["zdate"];
|
||||
}
|
||||
//总重量
|
||||
if (SqlHelper.ExecuteDataTable(CalSqlValue[2]).Rows.Count > 0)
|
||||
{
|
||||
this.all_amount.Text = "总重量(KG)\n" + SqlHelper.ExecuteDataTable(CalSqlValue[2]).Rows[0]["zamount"];
|
||||
}
|
||||
//平均用时
|
||||
if (SqlHelper.ExecuteDataTable(CalSqlValue[3]).Rows.Count > 0)
|
||||
{
|
||||
this.average_time.Text = "平均每次用时(分)\n" + SqlHelper.ExecuteDataTable(CalSqlValue[3]).Rows[0]["pdate"];
|
||||
}
|
||||
//截止用时
|
||||
if (SqlHelper.ExecuteDataTable(CalSqlValue[4]).Rows.Count > 0)
|
||||
{
|
||||
this.Cutoff_time.Text = "截至当前用时(分)\n" + SqlHelper.ExecuteDataTable(CalSqlValue[4]).Rows[0]["ddate"];
|
||||
}
|
||||
//版辊上机时间
|
||||
if (SqlHelper.ExecuteDataTable(CalSqlValue[5]).Rows.Count > 0)
|
||||
{
|
||||
this.bk_boardtime.Text = "版辊上机时间\n" + SqlHelper.ExecuteDataTable(CalSqlValue[5]).Rows[0]["BGStartDt"];
|
||||
}
|
||||
//挑战申请时间
|
||||
if (SqlHelper.ExecuteDataTable(CalSqlValue[6]).Rows.Count > 0)
|
||||
{
|
||||
this.Challenge_time.Text = "挑战申请时间\n" + SqlHelper.ExecuteDataTable(CalSqlValue[6]).Rows[0]["tdsqdt"];
|
||||
}
|
||||
//印刷开工时间
|
||||
if (SqlHelper.ExecuteDataTable(CalSqlValue[7]).Rows.Count > 0)
|
||||
{
|
||||
this.Printing_time.Text = "印刷开工时间\n" + SqlHelper.ExecuteDataTable(CalSqlValue[7]).Rows[0]["Kgdate"];
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:拉样属性类</para>
|
||||
/// </summary>
|
||||
class LyAttributes
|
||||
{
|
||||
//标志
|
||||
public string TmQzTag { get; set; }
|
||||
//用料数量
|
||||
public decimal qsAmount { get; set; }
|
||||
//次数
|
||||
public int qsCount { get; set; }
|
||||
public MemoEdit mem { get; set; }
|
||||
public LabelControl qs_countLab { get; set; }
|
||||
public LabelControl qs_amountLab { get; set; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?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>
|
||||
</root>
|
||||
@@ -0,0 +1,172 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{4FFB6DC7-A9E4-4DE9-B0F4-3A8A9B617A77}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Lskj.layang</RootNamespace>
|
||||
<AssemblyName>Lskj.Layang</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile>
|
||||
</TargetFrameworkProfile>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\Debug\Lib\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DocumentationFile>..\..\Debug\AllMethodXml\Lskj.Layang.XML</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="DevExpress.Data.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||
<Reference Include="DevExpress.Printing.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||
<Reference Include="DevExpress.Sparkline.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||
<Reference Include="DevExpress.Utils.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data.Linq" />
|
||||
<Reference Include="System.Net" />
|
||||
<Reference Include="System.Runtime.Remoting" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="UIAutomationClient" />
|
||||
<Reference Include="WindowsBase" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="DllBaseClass.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="FormMain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FormMain.Designer.cs">
|
||||
<DependentUpon>FormMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="FormMain.resx">
|
||||
<DependentUpon>FormMain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<None Include="app.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Lskj.Business\Lskj.Business.csproj">
|
||||
<Project>{7EAFCCC2-A18F-49E9-85C6-A984966CFD01}</Project>
|
||||
<Name>Lskj.Business</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Control\Lskj.Control.csproj">
|
||||
<Project>{447CDC40-659F-4CCA-9ED6-8E818B4CF8BF}</Project>
|
||||
<Name>Lskj.Control</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Core\Lskj.Core.csproj">
|
||||
<Project>{2A1BE6AC-1077-491B-A754-C5822FE8121E}</Project>
|
||||
<Name>Lskj.Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Data\Lskj.Data.csproj">
|
||||
<Project>{308B9B18-9BE2-495C-9C64-EED81D567813}</Project>
|
||||
<Name>Lskj.Data</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Model\Lskj.Model.csproj">
|
||||
<Project>{52BC40E0-C0C6-4F78-996B-CAE028D209CA}</Project>
|
||||
<Name>Lskj.Model</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Util\Lskj.Util.csproj">
|
||||
<Project>{A51BF642-6543-4DE3-8948-83F558B72BD4}</Project>
|
||||
<Name>Lskj.Util</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Microsoft .NET Framework 4 %28x86 和 x64%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Windows Installer 3.1</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Lskj.layang
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// 应用程序的主入口点。
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new FormMain());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的常规信息通过以下
|
||||
// 特性集控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("Lskj.demo1")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Lskj.demo1")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2020")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 使此程序集中的类型
|
||||
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
|
||||
// 则将该类型上的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("4e8388a3-e564-4e2e-8287-d2188547e0fd")]
|
||||
|
||||
// 程序集的版本信息由下面四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 内部版本号
|
||||
// 修订号
|
||||
//
|
||||
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Lskj.layang.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 一个强类型的资源类,用于查找本地化的字符串等。
|
||||
/// </summary>
|
||||
// 此类是由 StronglyTypedResourceBuilder
|
||||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回此类使用的缓存的 ResourceManager 实例。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lskj.layang.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 使用此强类型资源类,为所有资源查找
|
||||
/// 重写当前线程的 CurrentUICulture 属性。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
<?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.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: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" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</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" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Lskj.layang.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /></startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="NPOI" publicKeyToken="0df73ec7942b34e1" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.1.3.1" newVersion="2.1.3.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Spire.XLS" publicKeyToken="663f351905198cb3" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-10.3.8.0" newVersion="10.3.8.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Spire.Presentation" publicKeyToken="663f351905198cb3" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.3.6.0" newVersion="5.3.6.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Spire.Doc" publicKeyToken="663f351905198cb3" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-8.3.15.0" newVersion="8.3.15.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user