基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
/******************************
|
||||
* 说明:附件管理类入口
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-12-29
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Control;
|
||||
using Lskj.Data;
|
||||
using Lskj.Model;
|
||||
using Lskj.Util;
|
||||
using Lskj.Business;
|
||||
|
||||
namespace Lskj.PhotoView
|
||||
{
|
||||
/// <summary>
|
||||
/// 附件管理类入口
|
||||
/// </summary>
|
||||
public class DllBaseClass : IForm
|
||||
{
|
||||
public DllBaseClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 附件入口构造函数
|
||||
/// </summary>
|
||||
/// <param name="args">The arguments.</param>
|
||||
public DllBaseClass(string[] args)
|
||||
{
|
||||
try
|
||||
{
|
||||
FrmMain frmMain = new FrmMain();
|
||||
this.SubForm = frmMain;
|
||||
|
||||
if (string.IsNullOrEmpty(args[5]) ||
|
||||
string.IsNullOrEmpty(args[6]) ||
|
||||
string.IsNullOrEmpty(args[7]))
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.PhotoViewArgsError);
|
||||
this.SubForm.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
frmMain.Model = new DynamicPhotoViewModel(args);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("Lskj.PhotoView.dll--参数错误-->" + args.ToString(), ex);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 窗口
|
||||
/// </summary>
|
||||
public Form SubForm { get; set; }
|
||||
}
|
||||
}
|
||||
Generated
+443
@@ -0,0 +1,443 @@
|
||||
namespace Lskj.PhotoView
|
||||
{
|
||||
partial class FrmMain
|
||||
{
|
||||
/// <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.ssc_container = new DevExpress.XtraEditors.SplitContainerControl();
|
||||
this.panelControl6 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.panelControl7 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.tv_Main = new Lskj.Control.TreeViewEx();
|
||||
this.panelControl2 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.panelControl3 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.panelControl5 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.txtEdit = new DevExpress.XtraEditors.PictureEdit();
|
||||
this.panelControl4 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.gcMain = new Lskj.Control.GridControlEx();
|
||||
this.pl_top = new DevExpress.XtraEditors.PanelControl();
|
||||
this.pl_top_search = new DevExpress.XtraEditors.PanelControl();
|
||||
this.pl_top_fix_search = new DevExpress.XtraEditors.PanelControl();
|
||||
this.cbField = new System.Windows.Forms.ComboBox();
|
||||
this.btnFixSearch = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.txtFixKey = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.pl_buttom = new DevExpress.XtraEditors.PanelControl();
|
||||
this.btnRefresh = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnUpload = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnPhoto = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
|
||||
((System.ComponentModel.ISupportInitialize)(this.ssc_container)).BeginInit();
|
||||
this.ssc_container.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl6)).BeginInit();
|
||||
this.panelControl6.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl7)).BeginInit();
|
||||
this.panelControl7.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
|
||||
this.panelControl2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl3)).BeginInit();
|
||||
this.panelControl3.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl5)).BeginInit();
|
||||
this.panelControl5.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtEdit.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl4)).BeginInit();
|
||||
this.panelControl4.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
|
||||
this.panelControl1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top)).BeginInit();
|
||||
this.pl_top.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_search)).BeginInit();
|
||||
this.pl_top_search.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_fix_search)).BeginInit();
|
||||
this.pl_top_fix_search.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_buttom)).BeginInit();
|
||||
this.pl_buttom.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// ssc_container
|
||||
//
|
||||
this.ssc_container.CollapsePanel = DevExpress.XtraEditors.SplitCollapsePanel.Panel1;
|
||||
this.ssc_container.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.ssc_container.FixedPanel = DevExpress.XtraEditors.SplitFixedPanel.None;
|
||||
this.ssc_container.Location = new System.Drawing.Point(0, 0);
|
||||
this.ssc_container.Name = "ssc_container";
|
||||
this.ssc_container.Panel1.Controls.Add(this.panelControl6);
|
||||
this.ssc_container.Panel1.Controls.Add(this.panelControl3);
|
||||
this.ssc_container.Panel1.Text = "Panel1";
|
||||
this.ssc_container.Panel2.Controls.Add(this.panelControl1);
|
||||
this.ssc_container.Panel2.Controls.Add(this.pl_top);
|
||||
this.ssc_container.Panel2.Controls.Add(this.pl_buttom);
|
||||
this.ssc_container.Panel2.Text = "Panel2";
|
||||
this.ssc_container.Size = new System.Drawing.Size(825, 540);
|
||||
this.ssc_container.SplitterPosition = 209;
|
||||
this.ssc_container.TabIndex = 0;
|
||||
this.ssc_container.Text = "splitContainerControl1";
|
||||
//
|
||||
// panelControl6
|
||||
//
|
||||
this.panelControl6.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.panelControl6.Appearance.Options.UseBackColor = true;
|
||||
this.panelControl6.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.panelControl6.Controls.Add(this.panelControl7);
|
||||
this.panelControl6.Controls.Add(this.panelControl2);
|
||||
this.panelControl6.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelControl6.Location = new System.Drawing.Point(0, 0);
|
||||
this.panelControl6.Name = "panelControl6";
|
||||
this.panelControl6.Size = new System.Drawing.Size(209, 337);
|
||||
this.panelControl6.TabIndex = 2;
|
||||
//
|
||||
// panelControl7
|
||||
//
|
||||
this.panelControl7.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.panelControl7.Appearance.Options.UseBackColor = true;
|
||||
this.panelControl7.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.panelControl7.Controls.Add(this.tv_Main);
|
||||
this.panelControl7.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelControl7.Location = new System.Drawing.Point(0, 25);
|
||||
this.panelControl7.Name = "panelControl7";
|
||||
this.panelControl7.Size = new System.Drawing.Size(209, 312);
|
||||
this.panelControl7.TabIndex = 2;
|
||||
//
|
||||
// tv_Main
|
||||
//
|
||||
this.tv_Main.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tv_Main.Location = new System.Drawing.Point(0, 0);
|
||||
this.tv_Main.Name = "tv_Main";
|
||||
this.tv_Main.Size = new System.Drawing.Size(209, 312);
|
||||
this.tv_Main.TabIndex = 0;
|
||||
//
|
||||
// panelControl2
|
||||
//
|
||||
this.panelControl2.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.panelControl2.Appearance.Options.UseBackColor = true;
|
||||
this.panelControl2.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.panelControl2.Controls.Add(this.label2);
|
||||
this.panelControl2.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panelControl2.Location = new System.Drawing.Point(0, 0);
|
||||
this.panelControl2.Name = "panelControl2";
|
||||
this.panelControl2.Size = new System.Drawing.Size(209, 25);
|
||||
this.panelControl2.TabIndex = 1;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(7, 7);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(79, 14);
|
||||
this.label2.TabIndex = 1;
|
||||
this.label2.Text = "选择附件分类";
|
||||
//
|
||||
// panelControl3
|
||||
//
|
||||
this.panelControl3.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.panelControl3.Appearance.Options.UseBackColor = true;
|
||||
this.panelControl3.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.panelControl3.Controls.Add(this.panelControl5);
|
||||
this.panelControl3.Controls.Add(this.panelControl4);
|
||||
this.panelControl3.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panelControl3.Location = new System.Drawing.Point(0, 337);
|
||||
this.panelControl3.Name = "panelControl3";
|
||||
this.panelControl3.Size = new System.Drawing.Size(209, 203);
|
||||
this.panelControl3.TabIndex = 1;
|
||||
//
|
||||
// panelControl5
|
||||
//
|
||||
this.panelControl5.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.panelControl5.Appearance.Options.UseBackColor = true;
|
||||
this.panelControl5.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.panelControl5.Controls.Add(this.txtEdit);
|
||||
this.panelControl5.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelControl5.Location = new System.Drawing.Point(0, 25);
|
||||
this.panelControl5.Name = "panelControl5";
|
||||
this.panelControl5.Size = new System.Drawing.Size(209, 178);
|
||||
this.panelControl5.TabIndex = 2;
|
||||
//
|
||||
// txtEdit
|
||||
//
|
||||
this.txtEdit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
|
||||
this.txtEdit.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.txtEdit.Location = new System.Drawing.Point(0, 0);
|
||||
this.txtEdit.Name = "txtEdit";
|
||||
this.txtEdit.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Zoom;
|
||||
this.txtEdit.Size = new System.Drawing.Size(209, 178);
|
||||
this.txtEdit.TabIndex = 1;
|
||||
this.txtEdit.Click += new System.EventHandler(this.OnPhotoEditClick);
|
||||
//
|
||||
// panelControl4
|
||||
//
|
||||
this.panelControl4.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.panelControl4.Appearance.Options.UseBackColor = true;
|
||||
this.panelControl4.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.panelControl4.Controls.Add(this.label3);
|
||||
this.panelControl4.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panelControl4.Location = new System.Drawing.Point(0, 0);
|
||||
this.panelControl4.Name = "panelControl4";
|
||||
this.panelControl4.Size = new System.Drawing.Size(209, 25);
|
||||
this.panelControl4.TabIndex = 1;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.BackColor = System.Drawing.Color.Transparent;
|
||||
this.label3.Location = new System.Drawing.Point(7, 7);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(173, 14);
|
||||
this.label3.TabIndex = 1;
|
||||
this.label3.Text = "图片预览(点击预览区打开文件)";
|
||||
//
|
||||
// panelControl1
|
||||
//
|
||||
this.panelControl1.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.panelControl1.Appearance.Options.UseBackColor = true;
|
||||
this.panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.panelControl1.Controls.Add(this.gcMain);
|
||||
this.panelControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelControl1.Location = new System.Drawing.Point(0, 34);
|
||||
this.panelControl1.Name = "panelControl1";
|
||||
this.panelControl1.Size = new System.Drawing.Size(611, 470);
|
||||
this.panelControl1.TabIndex = 15;
|
||||
//
|
||||
// gcMain
|
||||
//
|
||||
this.gcMain.AdapterObj = null;
|
||||
this.gcMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gcMain.Location = new System.Drawing.Point(0, 0);
|
||||
this.gcMain.Name = "gcMain";
|
||||
this.gcMain.Size = new System.Drawing.Size(611, 470);
|
||||
this.gcMain.TabIndex = 0;
|
||||
//
|
||||
// pl_top
|
||||
//
|
||||
this.pl_top.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_top.Controls.Add(this.pl_top_search);
|
||||
this.pl_top.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pl_top.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_top.Name = "pl_top";
|
||||
this.pl_top.Size = new System.Drawing.Size(611, 34);
|
||||
this.pl_top.TabIndex = 13;
|
||||
//
|
||||
// pl_top_search
|
||||
//
|
||||
this.pl_top_search.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pl_top_search.Appearance.Options.UseBackColor = true;
|
||||
this.pl_top_search.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_top_search.Controls.Add(this.pl_top_fix_search);
|
||||
this.pl_top_search.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_top_search.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_top_search.Name = "pl_top_search";
|
||||
this.pl_top_search.Size = new System.Drawing.Size(611, 34);
|
||||
this.pl_top_search.TabIndex = 8;
|
||||
//
|
||||
// pl_top_fix_search
|
||||
//
|
||||
this.pl_top_fix_search.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_top_fix_search.Controls.Add(this.cbField);
|
||||
this.pl_top_fix_search.Controls.Add(this.btnFixSearch);
|
||||
this.pl_top_fix_search.Controls.Add(this.txtFixKey);
|
||||
this.pl_top_fix_search.Controls.Add(this.label1);
|
||||
this.pl_top_fix_search.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.pl_top_fix_search.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_top_fix_search.Name = "pl_top_fix_search";
|
||||
this.pl_top_fix_search.Size = new System.Drawing.Size(380, 34);
|
||||
this.pl_top_fix_search.TabIndex = 9;
|
||||
//
|
||||
// cbField
|
||||
//
|
||||
this.cbField.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbField.FormattingEnabled = true;
|
||||
this.cbField.Location = new System.Drawing.Point(38, 7);
|
||||
this.cbField.Name = "cbField";
|
||||
this.cbField.Size = new System.Drawing.Size(107, 22);
|
||||
this.cbField.TabIndex = 1;
|
||||
this.cbField.Tag = "";
|
||||
//
|
||||
// btnFixSearch
|
||||
//
|
||||
this.btnFixSearch.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnFixSearch.Appearance.Options.UseFont = true;
|
||||
this.btnFixSearch.Location = new System.Drawing.Point(307, 5);
|
||||
this.btnFixSearch.Name = "btnFixSearch";
|
||||
this.btnFixSearch.Size = new System.Drawing.Size(63, 24);
|
||||
this.btnFixSearch.TabIndex = 33;
|
||||
this.btnFixSearch.Text = "查询(&Q)";
|
||||
this.btnFixSearch.Click += new System.EventHandler(this.OnFixSearchButtonClick);
|
||||
//
|
||||
// txtFixKey
|
||||
//
|
||||
this.txtFixKey.Location = new System.Drawing.Point(149, 7);
|
||||
this.txtFixKey.Name = "txtFixKey";
|
||||
this.txtFixKey.Size = new System.Drawing.Size(154, 22);
|
||||
this.txtFixKey.TabIndex = 32;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(7, 11);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(31, 14);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "查询";
|
||||
//
|
||||
// pl_buttom
|
||||
//
|
||||
this.pl_buttom.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pl_buttom.Appearance.Options.UseBackColor = true;
|
||||
this.pl_buttom.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_buttom.Controls.Add(this.simpleButton1);
|
||||
this.pl_buttom.Controls.Add(this.btnRefresh);
|
||||
this.pl_buttom.Controls.Add(this.btnUpload);
|
||||
this.pl_buttom.Controls.Add(this.btnPhoto);
|
||||
this.pl_buttom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.pl_buttom.Location = new System.Drawing.Point(0, 504);
|
||||
this.pl_buttom.Name = "pl_buttom";
|
||||
this.pl_buttom.Size = new System.Drawing.Size(611, 36);
|
||||
this.pl_buttom.TabIndex = 14;
|
||||
//
|
||||
// btnRefresh
|
||||
//
|
||||
this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnRefresh.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnRefresh.Appearance.Options.UseFont = true;
|
||||
this.btnRefresh.Location = new System.Drawing.Point(533, 6);
|
||||
this.btnRefresh.Name = "btnRefresh";
|
||||
this.btnRefresh.Size = new System.Drawing.Size(72, 26);
|
||||
this.btnRefresh.TabIndex = 37;
|
||||
this.btnRefresh.Text = "刷新";
|
||||
this.btnRefresh.Click += new System.EventHandler(this.OnRefreshButtonClick);
|
||||
//
|
||||
// btnUpload
|
||||
//
|
||||
this.btnUpload.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnUpload.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnUpload.Appearance.Options.UseFont = true;
|
||||
this.btnUpload.Location = new System.Drawing.Point(455, 6);
|
||||
this.btnUpload.Name = "btnUpload";
|
||||
this.btnUpload.Size = new System.Drawing.Size(72, 26);
|
||||
this.btnUpload.TabIndex = 36;
|
||||
this.btnUpload.Text = "上传附件";
|
||||
this.btnUpload.Click += new System.EventHandler(this.OnUploadButtonClick);
|
||||
//
|
||||
// btnPhoto
|
||||
//
|
||||
this.btnPhoto.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnPhoto.Appearance.Options.UseFont = true;
|
||||
this.btnPhoto.Location = new System.Drawing.Point(9, 6);
|
||||
this.btnPhoto.Name = "btnPhoto";
|
||||
this.btnPhoto.Size = new System.Drawing.Size(72, 26);
|
||||
this.btnPhoto.TabIndex = 35;
|
||||
this.btnPhoto.Text = "启动拍照";
|
||||
this.btnPhoto.Click += new System.EventHandler(this.OnPhotoButtonClick);
|
||||
//
|
||||
// simpleButton1
|
||||
//
|
||||
this.simpleButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.simpleButton1.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.simpleButton1.Appearance.Options.UseFont = true;
|
||||
this.simpleButton1.Location = new System.Drawing.Point(376, 5);
|
||||
this.simpleButton1.Name = "simpleButton1";
|
||||
this.simpleButton1.Size = new System.Drawing.Size(72, 26);
|
||||
this.simpleButton1.TabIndex = 38;
|
||||
this.simpleButton1.Text = "帮助文档";
|
||||
this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
|
||||
//
|
||||
// FrmMain
|
||||
//
|
||||
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(825, 540);
|
||||
this.Controls.Add(this.ssc_container);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "FrmMain";
|
||||
this.Text = "附件管理";
|
||||
((System.ComponentModel.ISupportInitialize)(this.ssc_container)).EndInit();
|
||||
this.ssc_container.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl6)).EndInit();
|
||||
this.panelControl6.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl7)).EndInit();
|
||||
this.panelControl7.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
|
||||
this.panelControl2.ResumeLayout(false);
|
||||
this.panelControl2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl3)).EndInit();
|
||||
this.panelControl3.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl5)).EndInit();
|
||||
this.panelControl5.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtEdit.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl4)).EndInit();
|
||||
this.panelControl4.ResumeLayout(false);
|
||||
this.panelControl4.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
|
||||
this.panelControl1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top)).EndInit();
|
||||
this.pl_top.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_search)).EndInit();
|
||||
this.pl_top_search.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_fix_search)).EndInit();
|
||||
this.pl_top_fix_search.ResumeLayout(false);
|
||||
this.pl_top_fix_search.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_buttom)).EndInit();
|
||||
this.pl_buttom.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.XtraEditors.SplitContainerControl ssc_container;
|
||||
private Control.TreeViewEx tv_Main;
|
||||
private DevExpress.XtraEditors.PanelControl panelControl1;
|
||||
private Control.GridControlEx gcMain;
|
||||
private DevExpress.XtraEditors.PanelControl pl_top;
|
||||
private DevExpress.XtraEditors.PanelControl pl_top_search;
|
||||
private DevExpress.XtraEditors.PanelControl pl_top_fix_search;
|
||||
private System.Windows.Forms.ComboBox cbField;
|
||||
private DevExpress.XtraEditors.SimpleButton btnFixSearch;
|
||||
private System.Windows.Forms.TextBox txtFixKey;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private DevExpress.XtraEditors.PanelControl pl_buttom;
|
||||
private DevExpress.XtraEditors.SimpleButton btnRefresh;
|
||||
private DevExpress.XtraEditors.SimpleButton btnUpload;
|
||||
private DevExpress.XtraEditors.SimpleButton btnPhoto;
|
||||
private DevExpress.XtraEditors.PanelControl panelControl3;
|
||||
private DevExpress.XtraEditors.PanelControl panelControl4;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private DevExpress.XtraEditors.PanelControl panelControl5;
|
||||
private DevExpress.XtraEditors.PictureEdit txtEdit;
|
||||
private DevExpress.XtraEditors.PanelControl panelControl6;
|
||||
private DevExpress.XtraEditors.PanelControl panelControl2;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private DevExpress.XtraEditors.PanelControl panelControl7;
|
||||
private DevExpress.XtraEditors.SimpleButton simpleButton1;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,970 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.XtraEditors;
|
||||
using Lskj.Business;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Core;
|
||||
using Lskj.Data;
|
||||
using Lskj.Model;
|
||||
using Lskj.PhotoView.Properties;
|
||||
using Lskj.Util;
|
||||
|
||||
namespace Lskj.PhotoView
|
||||
{
|
||||
public partial class FrmMain : BaseForm
|
||||
{
|
||||
/// <summary>
|
||||
/// 附件目录ID
|
||||
/// </summary>
|
||||
private int _directoryId;
|
||||
/// <summary>
|
||||
/// 附件主键值
|
||||
/// </summary>
|
||||
private string _parmaryKey = "fileId";
|
||||
/// <summary>
|
||||
/// 附件名称字段
|
||||
/// </summary>
|
||||
private string _fileNameKey = "sName";
|
||||
/// <summary>
|
||||
/// 附件固定模块(用于提取表格列、表格颜色、右键菜单、查询条件)
|
||||
/// </summary>
|
||||
private string _attachMenuCode = "2005_1";
|
||||
/// <summary>
|
||||
/// 当前操作附件
|
||||
/// </summary>
|
||||
private string _curFileName = string.Empty;
|
||||
/// <summary>
|
||||
/// 可关联图片类型
|
||||
/// </summary>
|
||||
private string[] _imageExt = { ".bmp", ".dib", ".rle", ".emf", ".gif", ".jpg", ".jpeg", ".jpe", ".jif", ".pcx", ".dcx", ".pic", ".png", ".tga", ".tif", ".tiffxif", ".wmf", ".jfif " };
|
||||
|
||||
/// <summary>
|
||||
/// 传入参数
|
||||
/// </summary>
|
||||
public DynamicPhotoViewModel Model;
|
||||
/// <summary>
|
||||
/// 基础档案模块对象
|
||||
/// </summary>
|
||||
public AttachModuleModel ModuleModelObj;
|
||||
/// <summary>
|
||||
/// 附件模块
|
||||
/// </summary>
|
||||
public ModuleModel AttachModelObj;
|
||||
/// <summary>
|
||||
/// 查询条件控件
|
||||
/// </summary>
|
||||
public MyControl SearchObj;
|
||||
|
||||
public FrmMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
#region private method
|
||||
/// <summary>
|
||||
/// <para>说明:窗口初始化</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-08 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="e">一个包含事件数据的 <see cref="T:System.EventArgs" />。</param>
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
WaitForm.ShowForm();
|
||||
|
||||
DataRow menuRow = MainImpl.GetSystemdllTab(this._attachMenuCode);
|
||||
if (menuRow == null)
|
||||
{
|
||||
MessageUtil.Show(string.Format(ResourceKeys.NotFoundMenu, this.Model.ModuleCode));
|
||||
return;
|
||||
}
|
||||
|
||||
this.AttachModelObj = new ModuleModel(menuRow);
|
||||
this.ModuleModelObj = new AttachModuleModel(AttachImpl.GetSystemModule(Model.ModuleCode));
|
||||
if (this.ModuleModelObj.ModType == 1 && !this.ModuleModelObj.IsReport)
|
||||
this.ModuleModelObj.ParmaryKey = BaseImpl.GetBasePrimaryKey(this.Model.ModuleCode);
|
||||
this.Model.Privilege = Model.ModuleId > 0 ? BaseImpl.GetUserPurviewsByMenuId(Model.ModuleId + "") + "" : BaseImpl.GetUserPurviewsByMenuCode(Model.ModuleCode) + "";
|
||||
|
||||
if (string.IsNullOrEmpty(this.Model.SpeciesValue)) this.Model.SpeciesValue = this.ModuleModelObj.MenuBmpSpec;
|
||||
|
||||
this._directoryId = AttachImpl.GetAttachDirectoryId(this.Model.DirId, this.Model.ParmaryValue);
|
||||
this.AttachModelObj.MenuSql = ReplaceHelper.ReplaceWhereCond(this.AttachModelObj.MenuSql) + " and parentId=" + this._directoryId;
|
||||
|
||||
// 取消ImageEdit右键菜单
|
||||
this.txtEdit.ContextMenu = new ContextMenu();
|
||||
|
||||
this.SetLeftTreeView(); // 设置树
|
||||
this.SetQueryCondition(); // 设置查询条件
|
||||
this.SetGridView(); // 设置表格数据
|
||||
this.SetAttachEvent();
|
||||
|
||||
this.SearchObj.SearchGrid();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//MessageUtil.Show(ex);
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
LogUtil.WriteError("PhotoView初始化出错!", ex);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
Lskj.Control.Model.AutoSizeChange.ControllInitializeSize(this);
|
||||
WaitForm.HideForm();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置左侧树</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-08 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void SetLeftTreeView()
|
||||
{
|
||||
this.tv_Main.TreeNodeKeyField = "SpeciesNo";
|
||||
this.tv_Main.TreeNodeTextField = "SpeciesName";
|
||||
this.tv_Main.BindTreeView(AttachImpl.GetAttachSpecies(this.Model.SpeciesValue));
|
||||
this.tv_Main.TreeNodeSelectAfter += new TreeViewEventHandler(OnTreeNodeSelectAfter);
|
||||
|
||||
//GridDragTree dragTree = new GridDragTree(this.gcMain.GridView, this.tv_Main.TreeView);
|
||||
//dragTree.OnDragComplete += new GridDragTreeCompleteEventHandler(dragTree_OnDragComplete);
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置顶部查询条件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-08 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void SetQueryCondition()
|
||||
{
|
||||
this.SearchObj = new MyControl(this.AttachModelObj.MenuSql, this.gcMain, this.tv_Main, null);
|
||||
|
||||
DataTable queryTable = BaseModuleImpl.GetCustomQueryFields(this.AttachModelObj.CondKey);
|
||||
this.SearchObj.ModuleId = Model.ModuleId;
|
||||
this.SearchObj.ParentUnionField = this.SearchObj.ParentKeyField = this.tv_Main.TreeNodeKeyField;
|
||||
|
||||
if (queryTable != null && queryTable.Rows.Count > 0)
|
||||
{
|
||||
// 加载自定义查询条件
|
||||
this.pl_top_fix_search.Visible = false;
|
||||
this.SearchObj.OtherParams = Model.OtherParams();
|
||||
this.SearchObj.InitSearchControl(queryTable, this.pl_top_search, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
// 加载固定查询条件
|
||||
DataTable table = BaseModuleImpl.GetFixedQueryFields(this._attachMenuCode);
|
||||
this.cbField.DisplayMember = "fieldText";
|
||||
this.cbField.ValueMember = "fieldName";
|
||||
this.cbField.DataSource = table;
|
||||
|
||||
this.SearchObj.InitDefaultSearchControl(table, this.pl_top_fix_search);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置附件操作回调</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-03-22 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void SetAttachEvent()
|
||||
{
|
||||
AttachHelper.OnDeleteSuccess += new EventHandler(OnAttachDeleteSuccess);
|
||||
AttachHelper.OnDownLoadSuccess += new EventHandler(OnAttachDownLoadSuccess);
|
||||
AttachHelper.OnUploadSuccess += new EventHandler(OnAttachUploadSuccess);
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置GridView</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-08 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void SetGridView()
|
||||
{
|
||||
this.gcMain.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(this._attachMenuCode));
|
||||
this.gcMain.SetGridRightMenus(BaseModuleImpl.GetBaseGridRightMenus(this._attachMenuCode), this.Model, OnGridViewRightCallBack, this.SearchObj, this.GetMenus());
|
||||
this.gcMain.SetReadOnlyColumns(BaseModuleImpl.GetBaseGridColumns(this._attachMenuCode), this.ModuleModelObj.FormKey);
|
||||
this.gcMain.GridView.DoubleClick += new EventHandler(OnGridViewDoubleClick);
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:获取固定的右键菜单</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>ContextMenuStrip.</returns>
|
||||
private ContextMenuStrip GetMenus()
|
||||
{
|
||||
ContextMenuStrip menu = new ContextMenuStrip();
|
||||
ToolStripMenuItem tsmDownLoad = new ToolStripMenuItem("下载附件", null, OnDownLoadItemClick);
|
||||
ToolStripMenuItem tsmUpload = new ToolStripMenuItem("上传附件", null, OnUploadButtonClick);
|
||||
ToolStripMenuItem tsmLock = new ToolStripMenuItem("锁定附件", null, OnLockItemClick);
|
||||
ToolStripMenuItem tmsUnlock = new ToolStripMenuItem("解锁附件", null, OnUnlockItemClick);
|
||||
ToolStripMenuItem tsmDelete = new ToolStripMenuItem("删除附件", null, OnDeleteItemClick);
|
||||
ToolStripMenuItem tsmUnion = new ToolStripMenuItem("关联附件", null, OnUnionItemClick);
|
||||
btnUpload.Enabled = btnPhoto.Enabled = tsmDownLoad.Enabled = tsmLock.Enabled = tsmDelete.Enabled = tsmUpload.Enabled = tmsUnlock.Enabled = !this.Model.IsView;
|
||||
|
||||
if (this.Model.Completed && !this.Model.IsView)
|
||||
{
|
||||
btnUpload.Enabled = btnPhoto.Enabled = tsmLock.Enabled = tsmDelete.Enabled = tsmUpload.Enabled = tmsUnlock.Enabled = false;
|
||||
}
|
||||
|
||||
tsmUnion.Visible = this.Model.IsUnionImage;
|
||||
menu.Items.AddRange(new ToolStripMenuItem[] { tsmUnion, tsmDelete, tmsUnlock, tsmLock, tsmUpload, tsmDownLoad });
|
||||
return menu;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region protected event
|
||||
/// <summary>
|
||||
/// <para>说明:左侧树结构点击后</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="TreeViewEventArgs"/> instance containing the event data.</param>
|
||||
protected void OnTreeNodeSelectAfter(object sender, TreeViewEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string where = string.Format(" and {0} like '{1}%' ", this.tv_Main.TreeNodeKeyField, e.Node.Name);
|
||||
this.SearchObj.SearchGrid(this.AttachModelObj.MenuSql + where);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:右键菜单执行后刷新数据,刷新规则按照上一次查询条件刷新</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-11-02 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnGridViewRightCallBack(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.SearchObj.SearchLastGrid();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:双击修改界面</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-11-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnGridViewDoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
// 调用附件下载(lstest.exe包含了下载权限验证)
|
||||
DataRow rowItem = this.gcMain.GridView.GetFocusedDataRow();
|
||||
if (rowItem != null)
|
||||
{
|
||||
this._curFileName = BaseModuleImpl.GetFileServerPath(Convert.ToInt32(rowItem[this._parmaryKey]));
|
||||
if (Path.GetFileName(_curFileName) != Path.GetFileName(this.txtEdit.Tag + ""))
|
||||
AttachHelper.DownLoadFile(this.Handle, Path.Combine(SystemInfo.Instance.ServerAttachPath, this._curFileName));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:拖动数据</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e">The e.</param>
|
||||
///
|
||||
protected void OnOnDragCompleted(object sender, GridDragTreeArgs e)
|
||||
{
|
||||
//if (e.GridViewSelectRows == null || e.GridViewSelectRows.Length == 0 || e.SelectTreeNode == null) return;
|
||||
|
||||
//if (MessageUtil.Show(string.Format(ResourceKeys.DragSelectNode, e.SelectTreeNode.Text), MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
//{
|
||||
// int[] records = new int[e.GridViewSelectRows.Length];
|
||||
|
||||
// for (int i = 0; i < e.GridViewSelectRows.Length; i++)
|
||||
// {
|
||||
// DataRow item = e.GridViewSelectRows[i];
|
||||
// try
|
||||
// {
|
||||
// records[i] = ReplaceHelper.ReplaceRowParamCond(item, this.ModuleModelObj.DragCond)
|
||||
// ? BaseModuleImpl.UpdateRecord(this._attachMenuTable, this.tv_Main.TreeNodeKeyField, e.SelectTreeNode.Tag + "", this.ModuleModelObj.ParmaryKey, item[this.ModuleModelObj.ParmaryKey] + "")
|
||||
// : 0;
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// LogHelper.Instance.WriteError(ex);
|
||||
// }
|
||||
// }
|
||||
|
||||
// int successCount = records.Contains(1) ? records.Where(x => x == 1).Count() : 0;
|
||||
// int faultCount = records.Contains(0) ? records.Where(x => x == 0).Count() : 0;
|
||||
|
||||
// MessageUtil.Show(string.Format(ResourceKeys.DragSuccessCount, successCount) + "\r\n" + string.Format(ResourceKeys.DragFaultCount, faultCount));
|
||||
// this.SearchObj.SearchLastGrid();
|
||||
//}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:刷新数据</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-08 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnRefreshButtonClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.SearchObj.SearchLastGrid();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:查询条件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-08 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnFixSearchButtonClick(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:启动拍照</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-08 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnPhotoButtonClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
TreeNode tn = tv_Main.TreeView.SelectedNode;
|
||||
if (tn == null)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.SelectedFileClass);
|
||||
return;
|
||||
}
|
||||
if (tn.Nodes.Count > 0)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.SelectedFinalNode);
|
||||
return;
|
||||
}
|
||||
if (!DBConfig.Instance.IsCmpCapture)
|
||||
{
|
||||
RegControlHelper.IsRegisterOcx(PubUtil.AbsolutelyPath + "Cmp/_Install.bat");
|
||||
DBConfig.Instance.SetActiveOcx("IsCmpCapture");
|
||||
}
|
||||
string[] defaultArgs = string.Format(ModuleArgs.DefaultArgs, this.Model.FormText, this.Model.UserId, this.Model.UserName, this.Model.Privilege, this.Model.ModuleCode).Split('~');
|
||||
string[] menuArgs = { _directoryId + "", tn.Name };
|
||||
string[] args = defaultArgs.Concat(menuArgs).ToArray();
|
||||
IForm form = FormHelper.LoadDllForm(ResourceDynamic.CmCapture, args);
|
||||
DialogResult result = form.SubForm.ShowDialog();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("附件管理启动拍照出错!", ex);
|
||||
//MessageUtil.Show("附件管理启动拍照出错!" + ex);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:上传附件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-08 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnUploadButtonClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
TreeNode treeNode = this.tv_Main.TreeView.SelectedNode;
|
||||
if (treeNode == null)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.UnableSelectedNode);
|
||||
return;
|
||||
}
|
||||
if (treeNode.Nodes.Count > 0)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.UnableSelectedLastNode);
|
||||
return;
|
||||
}
|
||||
|
||||
string spesiesNo = treeNode.Name;
|
||||
string fileNum = "001";
|
||||
|
||||
AttachHelper.UpLoadFile(this.Handle, this._directoryId + "", spesiesNo, fileNum);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("附件管理上传附件出错!", ex);
|
||||
//MessageUtil.Show("附件管理上传附件出错!" + ex);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:下载附件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnDownLoadItemClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
int[] rows = this.gcMain.GridView.GetSelectedRows();
|
||||
if (rows.Length == 0)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.SelectRowIsNull);
|
||||
return;
|
||||
}
|
||||
if (this.gcMain.GridView.Columns.ColumnByName(this._parmaryKey) == null)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.AttachParmaryKeyIsNull);
|
||||
return;
|
||||
}
|
||||
string fileIds = string.Empty;
|
||||
for (int i = 0; i < rows.Length; i++)
|
||||
{
|
||||
DataRow rowItem = this.gcMain.GridView.GetDataRow(rows[i]);
|
||||
fileIds += rowItem[this._parmaryKey] + ",";
|
||||
}
|
||||
|
||||
// 调用附件下载(lstest.exe包含了下载权限验证)
|
||||
AttachHelper.DownLoadFile(this.Handle, fileIds.Trim(','), this._directoryId + "");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:锁定附件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnLockItemClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
int[] rows = this.gcMain.GridView.GetSelectedRows();
|
||||
if (rows.Length == 0)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.SelectRowIsNull);
|
||||
return;
|
||||
}
|
||||
|
||||
if (MessageUtil.Show(string.Format(ResourceKeys.LockFileTip, rows.Length), MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
{
|
||||
string errorMsg = string.Empty;
|
||||
string fileIds = string.Empty;
|
||||
|
||||
for (int i = 0; i < rows.Length; i++)
|
||||
{
|
||||
DataRow rowItem = this.gcMain.GridView.GetDataRow(rows[i]);
|
||||
|
||||
string fileId = rowItem[this._parmaryKey] + "";
|
||||
string fileName = rowItem[this._fileNameKey] + "";
|
||||
|
||||
// 检查权限
|
||||
string tipMsg = string.Empty;
|
||||
if (AttachImpl.CheckAttachOperation(4, "", Convert.ToInt32(fileId), "", 0, out tipMsg) == 1)
|
||||
{
|
||||
fileIds += fileId + ",";
|
||||
}
|
||||
else
|
||||
{
|
||||
errorMsg += "[" + fileName + "]\r\n";
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(errorMsg))
|
||||
{
|
||||
MessageUtil.Show(string.Format(ResourceKeys.NotLockFilesTip, errorMsg));
|
||||
return;
|
||||
}
|
||||
// 附件锁定
|
||||
if (!string.IsNullOrWhiteSpace(fileIds))
|
||||
{
|
||||
int result = AttachImpl.LockFiles(fileIds);
|
||||
|
||||
this.SearchObj.SearchLastGrid();
|
||||
MessageUtil.Show(result > 0 ? ResourceKeys.OperSuccess : ResourceKeys.OperFault);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:解锁附件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnUnlockItemClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
int[] rows = this.gcMain.GridView.GetSelectedRows();
|
||||
if (rows.Length == 0)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.SelectRowIsNull);
|
||||
return;
|
||||
}
|
||||
|
||||
if (MessageUtil.Show(string.Format(ResourceKeys.UnLockFileTip, rows.Length), MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
{
|
||||
string errorMsg = string.Empty;
|
||||
string fileIds = string.Empty;
|
||||
|
||||
for (int i = 0; i < rows.Length; i++)
|
||||
{
|
||||
DataRow rowItem = this.gcMain.GridView.GetDataRow(rows[i]);
|
||||
|
||||
string fileId = rowItem[this._parmaryKey] + "";
|
||||
string fileName = rowItem[this._fileNameKey] + "";
|
||||
|
||||
// 检查权限
|
||||
string tipMsg = string.Empty;
|
||||
if (AttachImpl.CheckAttachOperation(5, "", Convert.ToInt32(fileId), "", 0, out tipMsg) == 1)
|
||||
{
|
||||
fileIds += fileId + ",";
|
||||
}
|
||||
else
|
||||
{
|
||||
errorMsg += "[" + fileName + "]\r\n";
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(errorMsg))
|
||||
{
|
||||
MessageUtil.Show(string.Format(ResourceKeys.NotUnLockFilesTip, errorMsg));
|
||||
return;
|
||||
}
|
||||
// 附件解锁
|
||||
if (!string.IsNullOrWhiteSpace(fileIds))
|
||||
{
|
||||
int result = AttachImpl.UnLockFiles(fileIds);
|
||||
|
||||
this.SearchObj.SearchLastGrid();
|
||||
MessageUtil.Show(result > 0 ? ResourceKeys.OperSuccess : ResourceKeys.OperFault);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:删除附件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnDeleteItemClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
int[] rows = this.gcMain.GridView.GetSelectedRows();
|
||||
if (rows.Length == 0)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.SelectRowIsNull);
|
||||
return;
|
||||
}
|
||||
if (this.gcMain.GridView.Columns.ColumnByName(this._parmaryKey) == null)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.AttachParmaryKeyIsNull);
|
||||
return;
|
||||
}
|
||||
|
||||
if (MessageUtil.Show(ResourceKeys.DeleteFileTip, MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
{
|
||||
try
|
||||
{
|
||||
string errorMsg = string.Empty;
|
||||
string fileIds = string.Empty;
|
||||
|
||||
for (int i = 0; i < rows.Length; i++)
|
||||
{
|
||||
DataRow rowItem = this.gcMain.GridView.GetDataRow(rows[i]);
|
||||
string fileId = rowItem[this._parmaryKey] + "";
|
||||
string fileName = rowItem[this._fileNameKey] + "";
|
||||
// 检查权限
|
||||
string tipMsg = string.Empty;
|
||||
if (AttachImpl.CheckAttachOperation(3, "", Convert.ToInt32(fileId), "", 0, out tipMsg) == 1)
|
||||
{
|
||||
fileIds += fileId + ",";
|
||||
}
|
||||
else
|
||||
{
|
||||
errorMsg += "[" + fileName + "]\r\n";
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(errorMsg))
|
||||
{
|
||||
MessageUtil.Show(string.Format(ResourceKeys.NotDeleteFilesTip, errorMsg));
|
||||
return;
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(fileIds))
|
||||
{
|
||||
// 调用附件删除
|
||||
AttachHelper.DeleteFile(this.Handle, fileIds.Trim(','));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageUtil.Show(ex);
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
LogUtil.WriteError("PhotoView删除附件出错!", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:关联附件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnUnionItemClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
int[] rows = this.gcMain.GridView.GetSelectedRows();
|
||||
if (rows.Length == 0)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.SelectRowIsNull);
|
||||
return;
|
||||
}
|
||||
DataRow rowItem = this.gcMain.GridView.GetDataRow(rows[0]);
|
||||
string fileName = rowItem[this._fileNameKey] + "";
|
||||
string fieldId = rowItem[this._parmaryKey] + "";
|
||||
|
||||
if (!string.IsNullOrEmpty(fieldId))
|
||||
{
|
||||
if (_imageExt.Contains(Path.GetExtension(fileName)))
|
||||
{
|
||||
int result = AttachImpl.UpdateUnionAttach(this.ModuleModelObj.TableName, this.Model.UnionColName, fieldId, this.ModuleModelObj.ParmaryKey, this.Model.ParmaryValue);
|
||||
MessageUtil.Show(result > 0 ? ResourceKeys.OperSuccess : ResourceKeys.OperFault);
|
||||
this.SearchObj.SearchLastGrid();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.UnionFileExt);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:附件上传成功</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-03-22 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnAttachUploadSuccess(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (this.IsHandleCreated && AttachHelper.IsDefWndProc(this.Handle, (System.Windows.Forms.Message)sender))
|
||||
{
|
||||
this.SearchObj.SearchLastGrid();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-03-22 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
/// <exception cref="System.NotImplementedException"></exception>
|
||||
protected void OnAttachDownLoadSuccess(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
if (this.IsHandleCreated && AttachHelper.IsDefWndProc(this.Handle, (System.Windows.Forms.Message)sender))
|
||||
{
|
||||
// 加载本地图片
|
||||
string filePath = PubUtil.FileDownLoadTempPath + _curFileName;
|
||||
if (!string.IsNullOrEmpty(_curFileName) && _curFileName.Contains(".pdf"))
|
||||
{
|
||||
//下载附件进行合成
|
||||
this.txtEdit.Tag = filePath;
|
||||
this.txtEdit.Image = Resources.unknow_60;
|
||||
PdfViewerHelper.CreateNewPdf(0, _curFileName, filePath);
|
||||
return;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(_curFileName) && this._imageExt.Contains(Path.GetExtension(_curFileName)) && File.Exists(filePath))
|
||||
{
|
||||
//FileInfo info = new FileInfo(filePath);
|
||||
this.txtEdit.Tag = filePath;
|
||||
//this.txtEdit.Image = Image.FromFile(filePath);
|
||||
this.txtEdit.Image = ImageHelper.ReadImage(filePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtEdit.Tag = filePath;
|
||||
this.txtEdit.Image = Resources.unknow_60;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//MessageUtil.Show(ex);
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:删除成功</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-03-22 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
/// <exception cref="System.NotImplementedException"></exception>
|
||||
protected void OnAttachDeleteSuccess(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (this.IsHandleCreated && AttachHelper.IsDefWndProc(this.Handle, (System.Windows.Forms.Message)sender))
|
||||
{
|
||||
this.SearchObj.SearchLastGrid();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:文件预览</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-04-19 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnPhotoEditClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string filePath = txtEdit.Tag + "";
|
||||
if (!string.IsNullOrWhiteSpace(filePath))
|
||||
{
|
||||
if (File.Exists(filePath))
|
||||
{
|
||||
Process.Start(filePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.FileNotFound);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//MessageUtil.Show(ex);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:消息处理</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-03-22 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="m">要处理的 Windows<see cref="T:System.Windows.Forms.Message" />。</param>
|
||||
protected override void DefWndProc(ref Message m)
|
||||
{
|
||||
try
|
||||
{
|
||||
base.DefWndProc(ref m);
|
||||
|
||||
if (this.Handle == m.HWnd)
|
||||
AttachHelper.DefWndProc(m);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void simpleButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
WebBrowserUtil.StartWebBrowser(this.Model.ModuleCode, this.AttachModelObj.MenuText);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,127 @@
|
||||
<?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)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{B016B156-3015-40C2-AF5A-A785A3A95447}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Lskj.PhotoView</RootNamespace>
|
||||
<AssemblyName>Lskj.PhotoView</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<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.PhotoView.XML</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\..\Release\Lib\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="DevExpress.Data.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.Printing.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<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="DevExpress.XtraGrid.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraLayout.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraPrinting.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Net" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="DllBaseClass.cs" />
|
||||
<Compile Include="FrmMain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.Designer.cs">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="FrmMain.resx">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\licenses.licx" />
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
</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>
|
||||
<None Include="app.config" />
|
||||
<None Include="Resources\unknow_60.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent>
|
||||
</PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<!-- 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,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的常规信息通过以下
|
||||
// 特性集控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("Lskj.PhotoView")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Microsoft")]
|
||||
[assembly: AssemblyProduct("Lskj.PhotoView")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 使此程序集中的类型
|
||||
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
|
||||
// 则将该类型上的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("d1eb8922-ebbc-480b-862e-b040e5796ac7")]
|
||||
|
||||
// 程序集的版本信息由下面四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 内部版本号
|
||||
// 修订号
|
||||
//
|
||||
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Lskj.PhotoView.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.PhotoView.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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap unknow_60 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("unknow_60", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
<?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>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="unknow_60" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\unknow_60.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<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