基线 SVN r240

SVN-Revision: r240
This commit is contained in:
cyf
2025-02-06 06:46:06 +00:00
commit ab56a9bcf7
5317 changed files with 902274 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lskj.Util;
using System.Windows.Forms;
using Lskj.Model;
namespace Lskj.Gantt
{
public class DllBaseClass : IForm
{
public DllBaseClass()
{
}
/// <summary>
/// 附件入口构造函数
/// </summary>
/// <param name="args">The arguments.</param>
public DllBaseClass(string[] args)
{
FrmMain frmMain = new FrmMain();
this.SubForm = frmMain;
frmMain.SysModel = new DynamicGanttModel(args);
}
/// <summary>
/// 窗口
/// </summary>
public Form SubForm { get; set; }
}
}
+295
View File
@@ -0,0 +1,295 @@
namespace Lskj.Gantt
{
partial class FrmMain
{
/// <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()
{
DevExpress.XtraScheduler.TimeRuler timeRuler1 = new DevExpress.XtraScheduler.TimeRuler();
DevExpress.XtraScheduler.TimeScaleYear timeScaleYear1 = new DevExpress.XtraScheduler.TimeScaleYear();
DevExpress.XtraScheduler.TimeScaleQuarter timeScaleQuarter1 = new DevExpress.XtraScheduler.TimeScaleQuarter();
DevExpress.XtraScheduler.TimeScaleMonth timeScaleMonth1 = new DevExpress.XtraScheduler.TimeScaleMonth();
DevExpress.XtraScheduler.TimeScaleWeek timeScaleWeek1 = new DevExpress.XtraScheduler.TimeScaleWeek();
DevExpress.XtraScheduler.TimeScaleDay timeScaleDay1 = new DevExpress.XtraScheduler.TimeScaleDay();
DevExpress.XtraScheduler.TimeScaleHour timeScaleHour1 = new DevExpress.XtraScheduler.TimeScaleHour();
DevExpress.XtraScheduler.TimeScale15Minutes timeScale15Minutes1 = new DevExpress.XtraScheduler.TimeScale15Minutes();
DevExpress.XtraScheduler.TimeRuler timeRuler2 = new DevExpress.XtraScheduler.TimeRuler();
DevExpress.XtraScheduler.TimeRuler timeRuler3 = new DevExpress.XtraScheduler.TimeRuler();
DevExpress.XtraScheduler.TimeRuler timeRuler4 = new DevExpress.XtraScheduler.TimeRuler();
this.schedulerStorage1 = new DevExpress.XtraScheduler.SchedulerStorage();
this.projectTree = new DevExpress.XtraScheduler.UI.ResourcesTree();
this.resourceTreeColumn = new DevExpress.XtraScheduler.Native.ResourceTreeColumn();
this.schedulerControl = new DevExpress.XtraScheduler.SchedulerControl();
this.splitContainerControl = new DevExpress.XtraEditors.SplitContainerControl();
this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl();
this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage();
this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage();
this.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl();
this.rangeControl1 = new DevExpress.XtraEditors.RangeControl();
this.schedulerControl1 = new DevExpress.XtraScheduler.SchedulerControl();
this.pl_top = new DevExpress.XtraEditors.PanelControl();
((System.ComponentModel.ISupportInitialize)(this.schedulerStorage1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.projectTree)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.schedulerControl)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.splitContainerControl)).BeginInit();
this.splitContainerControl.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
this.xtraTabControl1.SuspendLayout();
this.xtraTabPage1.SuspendLayout();
this.xtraTabPage2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit();
this.splitContainerControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.rangeControl1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.schedulerControl1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pl_top)).BeginInit();
this.SuspendLayout();
//
// schedulerStorage1
//
this.schedulerStorage1.Resources.Mappings.Caption = "SpeciesName";
this.schedulerStorage1.Resources.Mappings.Id = "SpeciesNo";
this.schedulerStorage1.Resources.Mappings.ParentId = "pid";
this.schedulerStorage1.AppointmentsInserted += new DevExpress.XtraScheduler.PersistentObjectsEventHandler(this.schedulerStorage1_AppointmentsInserted);
this.schedulerStorage1.AppointmentsChanged += new DevExpress.XtraScheduler.PersistentObjectsEventHandler(this.schedulerStorage1_AppointmentsChanged);
this.schedulerStorage1.AppointmentsDeleted += new DevExpress.XtraScheduler.PersistentObjectsEventHandler(this.schedulerStorage1_AppointmentsDeleted);
//
// projectTree
//
this.projectTree.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] {
this.resourceTreeColumn});
this.projectTree.Dock = System.Windows.Forms.DockStyle.Fill;
this.projectTree.Location = new System.Drawing.Point(0, 0);
this.projectTree.Name = "projectTree";
this.projectTree.OptionsBehavior.Editable = false;
this.projectTree.SchedulerControl = this.schedulerControl;
this.projectTree.ShowButtonMode = DevExpress.XtraTreeList.ShowButtonModeEnum.Default;
this.projectTree.Size = new System.Drawing.Size(218, 539);
this.projectTree.TabIndex = 0;
//
// resourceTreeColumn
//
this.resourceTreeColumn.Caption = "描述";
this.resourceTreeColumn.FieldName = "SpeciesName";
this.resourceTreeColumn.Name = "resourceTreeColumn";
this.resourceTreeColumn.Visible = true;
this.resourceTreeColumn.VisibleIndex = 0;
//
// schedulerControl
//
this.schedulerControl.ActiveViewType = DevExpress.XtraScheduler.SchedulerViewType.Gantt;
this.schedulerControl.Appearance.AlternateHeaderCaption.Font = new System.Drawing.Font("宋体", 9F);
this.schedulerControl.Appearance.AlternateHeaderCaption.Options.UseFont = true;
this.schedulerControl.Appearance.HeaderCaption.Font = new System.Drawing.Font("宋体", 9F);
this.schedulerControl.Appearance.HeaderCaption.Options.UseFont = true;
this.schedulerControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.schedulerControl.GroupType = DevExpress.XtraScheduler.SchedulerGroupType.Resource;
this.schedulerControl.Location = new System.Drawing.Point(0, 0);
this.schedulerControl.Name = "schedulerControl";
this.schedulerControl.OptionsRangeControl.RangeMaximum = new System.DateTime(2018, 4, 1, 0, 0, 0, 0);
this.schedulerControl.OptionsRangeControl.RangeMinimum = new System.DateTime(2018, 3, 1, 0, 0, 0, 0);
this.schedulerControl.OptionsView.ResourceHeaders.Height = 50;
this.schedulerControl.OptionsView.ResourceHeaders.RotateCaption = false;
this.schedulerControl.OptionsView.ShowOnlyResourceAppointments = true;
this.schedulerControl.Size = new System.Drawing.Size(654, 539);
this.schedulerControl.Start = new System.DateTime(2018, 3, 18, 0, 0, 0, 0);
this.schedulerControl.Storage = this.schedulerStorage1;
this.schedulerControl.TabIndex = 0;
this.schedulerControl.Text = "schedulerControl1";
this.schedulerControl.Views.DayView.AllDayAreaScrollBarVisible = false;
this.schedulerControl.Views.DayView.Enabled = false;
this.schedulerControl.Views.DayView.TimeRulers.Add(timeRuler1);
this.schedulerControl.Views.FullWeekView.AllDayAreaScrollBarVisible = false;
this.schedulerControl.Views.GanttView.Appearance.HeaderCaption.Font = new System.Drawing.Font("宋体", 9F);
this.schedulerControl.Views.GanttView.Appearance.HeaderCaption.Options.UseFont = true;
this.schedulerControl.Views.GanttView.Appearance.HeaderCaptionLine.Font = new System.Drawing.Font("宋体", 9F);
this.schedulerControl.Views.GanttView.Appearance.HeaderCaptionLine.Options.UseFont = true;
this.schedulerControl.Views.GanttView.CellsAutoHeightOptions.Enabled = true;
this.schedulerControl.Views.GanttView.NavigationButtonVisibility = DevExpress.XtraScheduler.NavigationButtonVisibility.Always;
timeScaleYear1.Enabled = false;
timeScaleQuarter1.Enabled = false;
timeScaleMonth1.Enabled = false;
timeScaleWeek1.Width = 300;
timeScaleDay1.Enabled = false;
timeScaleHour1.Enabled = false;
timeScale15Minutes1.Enabled = false;
this.schedulerControl.Views.GanttView.Scales.Add(timeScaleYear1);
this.schedulerControl.Views.GanttView.Scales.Add(timeScaleQuarter1);
this.schedulerControl.Views.GanttView.Scales.Add(timeScaleMonth1);
this.schedulerControl.Views.GanttView.Scales.Add(timeScaleWeek1);
this.schedulerControl.Views.GanttView.Scales.Add(timeScaleDay1);
this.schedulerControl.Views.GanttView.Scales.Add(timeScaleHour1);
this.schedulerControl.Views.GanttView.Scales.Add(timeScale15Minutes1);
this.schedulerControl.Views.GanttView.ShowResourceHeaders = false;
this.schedulerControl.Views.MonthView.Enabled = false;
this.schedulerControl.Views.MonthView.WeekCount = 3;
this.schedulerControl.Views.TimelineView.Enabled = false;
this.schedulerControl.Views.TimelineView.TimelineScrollBarVisible = false;
this.schedulerControl.Views.WeekView.Enabled = false;
this.schedulerControl.Views.WorkWeekView.AllDayAreaScrollBarVisible = false;
this.schedulerControl.Views.WorkWeekView.Enabled = false;
this.schedulerControl.Views.WorkWeekView.ShowFullWeek = true;
this.schedulerControl.Views.WorkWeekView.TimeRulers.Add(timeRuler2);
this.schedulerControl.PopupMenuShowing += new DevExpress.XtraScheduler.PopupMenuShowingEventHandler(this.schedulerControl_PopupMenuShowing);
//
// splitContainerControl
//
this.splitContainerControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainerControl.Location = new System.Drawing.Point(0, 0);
this.splitContainerControl.Name = "splitContainerControl";
this.splitContainerControl.Panel1.Controls.Add(this.projectTree);
this.splitContainerControl.Panel1.Text = "Panel1";
this.splitContainerControl.Panel2.Controls.Add(this.schedulerControl);
this.splitContainerControl.Panel2.Text = "Panel2";
this.splitContainerControl.Size = new System.Drawing.Size(877, 539);
this.splitContainerControl.SplitterPosition = 218;
this.splitContainerControl.TabIndex = 1;
this.splitContainerControl.Text = "splitContainerControl1";
//
// xtraTabControl1
//
this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.xtraTabControl1.Location = new System.Drawing.Point(0, 0);
this.xtraTabControl1.Name = "xtraTabControl1";
this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1;
this.xtraTabControl1.Size = new System.Drawing.Size(883, 568);
this.xtraTabControl1.TabIndex = 2;
this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
this.xtraTabPage1,
this.xtraTabPage2});
//
// xtraTabPage1
//
this.xtraTabPage1.Controls.Add(this.splitContainerControl);
this.xtraTabPage1.Name = "xtraTabPage1";
this.xtraTabPage1.Size = new System.Drawing.Size(877, 539);
this.xtraTabPage1.Text = "甘特图";
//
// xtraTabPage2
//
this.xtraTabPage2.Controls.Add(this.splitContainerControl1);
this.xtraTabPage2.Name = "xtraTabPage2";
this.xtraTabPage2.Size = new System.Drawing.Size(877, 539);
this.xtraTabPage2.Text = "日程管理";
//
// splitContainerControl1
//
this.splitContainerControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainerControl1.Horizontal = false;
this.splitContainerControl1.Location = new System.Drawing.Point(0, 0);
this.splitContainerControl1.Name = "splitContainerControl1";
this.splitContainerControl1.Panel1.Controls.Add(this.rangeControl1);
this.splitContainerControl1.Panel1.Controls.Add(this.pl_top);
this.splitContainerControl1.Panel1.Text = "Panel1";
this.splitContainerControl1.Panel2.Controls.Add(this.schedulerControl1);
this.splitContainerControl1.Panel2.Text = "Panel2";
this.splitContainerControl1.Size = new System.Drawing.Size(877, 539);
this.splitContainerControl1.SplitterPosition = 261;
this.splitContainerControl1.TabIndex = 0;
this.splitContainerControl1.Text = "splitContainerControl1";
//
// rangeControl1
//
this.rangeControl1.Client = this.schedulerControl1;
this.rangeControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.rangeControl1.Location = new System.Drawing.Point(0, 30);
this.rangeControl1.Name = "rangeControl1";
this.rangeControl1.Size = new System.Drawing.Size(877, 231);
this.rangeControl1.TabIndex = 0;
this.rangeControl1.Text = "rangeControl1";
this.rangeControl1.VisibleRangeMaximumScaleFactor = double.PositiveInfinity;
this.rangeControl1.VisibleRangeScaleFactor = 5.0741163055872294D;
//
// schedulerControl1
//
this.schedulerControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.schedulerControl1.Location = new System.Drawing.Point(0, 0);
this.schedulerControl1.Name = "schedulerControl1";
this.schedulerControl1.Size = new System.Drawing.Size(877, 273);
this.schedulerControl1.Start = new System.DateTime(2018, 3, 27, 0, 0, 0, 0);
this.schedulerControl1.Storage = this.schedulerStorage1;
this.schedulerControl1.TabIndex = 0;
this.schedulerControl1.Text = "schedulerControl1";
this.schedulerControl1.Views.DayView.AllDayAreaScrollBarVisible = false;
this.schedulerControl1.Views.DayView.TimeRulers.Add(timeRuler3);
this.schedulerControl1.Views.FullWeekView.AllDayAreaScrollBarVisible = false;
this.schedulerControl1.Views.TimelineView.TimelineScrollBarVisible = false;
this.schedulerControl1.Views.WorkWeekView.AllDayAreaScrollBarVisible = false;
this.schedulerControl1.Views.WorkWeekView.TimeRulers.Add(timeRuler4);
//
// pl_top
//
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(877, 30);
this.pl_top.TabIndex = 1;
//
// 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(883, 568);
this.Controls.Add(this.xtraTabControl1);
this.Name = "FrmMain";
this.Text = "日程管理";
((System.ComponentModel.ISupportInitialize)(this.schedulerStorage1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.projectTree)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.schedulerControl)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.splitContainerControl)).EndInit();
this.splitContainerControl.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit();
this.xtraTabControl1.ResumeLayout(false);
this.xtraTabPage1.ResumeLayout(false);
this.xtraTabPage2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit();
this.splitContainerControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.rangeControl1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.schedulerControl1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pl_top)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraScheduler.SchedulerStorage schedulerStorage1;
private DevExpress.XtraScheduler.UI.ResourcesTree projectTree;
private DevExpress.XtraEditors.SplitContainerControl splitContainerControl;
private DevExpress.XtraScheduler.SchedulerControl schedulerControl;
private DevExpress.XtraScheduler.Native.ResourceTreeColumn resourceTreeColumn;
private DevExpress.XtraTab.XtraTabControl xtraTabControl1;
private DevExpress.XtraTab.XtraTabPage xtraTabPage1;
private DevExpress.XtraTab.XtraTabPage xtraTabPage2;
private DevExpress.XtraEditors.SplitContainerControl splitContainerControl1;
private DevExpress.XtraEditors.RangeControl rangeControl1;
private DevExpress.XtraScheduler.SchedulerControl schedulerControl1;
private DevExpress.XtraEditors.PanelControl pl_top;
}
}
+411
View File
@@ -0,0 +1,411 @@
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 Lskj.Control.Model;
using Lskj.Util;
using Lskj.Data;
using Lskj.Model;
using DevExpress.XtraScheduler;
using Lskj.Business.Impl;
using DevExpress.Utils.Menu;
using Lskj.Control.Model.MenuStrip;
namespace Lskj.Gantt
{
public partial class FrmMain : BaseForm
{
#region
/// <summary>
/// 系统模块模型
/// </summary>
public DynamicGanttModel SysModel;
/// <summary>
/// 基础模型
/// </summary>
public ModuleModel ModuleObj;
/// <summary>
/// 搜索框
/// </summary>
public MyControl SearchObj;
#endregion
#region
/// <summary>
/// 映射字段
/// </summary>
private DataColumnCollection _dtMapping;
/// <summary>
/// 当前任务Id
/// </summary>
private string _currentId;
/// <summary>
/// 映射字段串
/// </summary>
private string _mappingStr;
/// <summary>
/// 菜单数据
/// </summary>
private DataTable dtMenuList;
#endregion
public FrmMain()
{
InitializeComponent();
}
/// <summary>
/// <para>说明:窗体加载时</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-23 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
protected override void OnLoad(EventArgs e)
{
WaitForm.ShowForm();
try
{
this.SysModel.Privilege = SysModel.ModuleId > 0 ? BaseImpl.GetUserPurviewsByMenuId(SysModel.ModuleId + "") + "" : BaseImpl.GetUserPurviewsByMenuCode(SysModel.ModuleCode) + "";
if (!this.SysModel.HasPrivilege())
{
MessageUtil.Show(ResourceKeys.UnPurview);
this.Close();
}
else
{
this.splitContainerControl.Visible = false;
this.ModuleObj = new ModuleModel(MainImpl.GetSystemdllTab(this.SysModel.ModuleCode));
this.InitializeSetting();
this.InitializeView();
}
}
catch (Exception ex)
{
LogHelper.Instance.WriteError(ex, ResourceKeys.BaseModuleAudit);
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
finally
{
Lskj.Control.Model.AutoSizeChange.ControllInitializeSize(this);
WaitForm.HideForm();
this.splitContainerControl.Visible = true;
}
}
#region
/// <summary>
/// <para>说明:初始化设置</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-23 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeSetting()
{
//开始日程
this.schedulerControl.Start = DateTime.Now;
this.SetMappings(this.schedulerControl);
this.SetLabelColor(this.schedulerStorage1);
////设置资源
schedulerControl.GroupType = SchedulerGroupType.Resource;
this.dtMenuList = BaseModuleImpl.GetBaseGridRightMenus(this.SysModel.ModuleCode);
GetMappingStr();
}
#endregion
#region
/// <summary>
/// <para>说明:拼接映射字段串</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-23 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void GetMappingStr()
{
for (int i = 1; i < _dtMapping.Count; i++)
{
_mappingStr += _dtMapping[i].ColumnName + ",";
}
}
#endregion
#region
/// <summary>
/// <para>说明:设置资源树的映射关系</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-23 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void SetMappings(SchedulerControl schedulerControl)
{
//获取映射关系字段
_dtMapping = BaseImpl.GetTableColumns(this.ModuleObj.MenuTable).Columns;
if (_dtMapping.Count < 0)
{
MessageUtil.Show(ResourceKeys.ModuleConfigError);
return;
}
AppointmentMappingInfo appoint = schedulerControl.Storage.Appointments.Mappings;
appoint.AppointmentId = _dtMapping[0].ColumnName;
appoint.ResourceId = _dtMapping[1].ColumnName;
appoint.Subject = _dtMapping[2].ColumnName;
appoint.Description = _dtMapping[3].ColumnName;
appoint.Start = _dtMapping[4].ColumnName;
appoint.End = _dtMapping[5].ColumnName;
appoint.AllDay = _dtMapping[6].ColumnName;
appoint.Label = _dtMapping[7].ColumnName;
appoint.Location = _dtMapping[8].ColumnName;
appoint.PercentComplete = _dtMapping[9].ColumnName;
appoint.RecurrenceInfo = _dtMapping[10].ColumnName;
appoint.ReminderInfo = _dtMapping[11].ColumnName;
appoint.Type = _dtMapping[12].ColumnName;
}
#endregion
#region
/// <summary>
/// <para>说明:初始化控件</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-23 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeView()
{
try
{
this.SearchObj = new MyControl(this.ModuleObj.MenuSql, null);
this.SearchObj.InitSearchControl(BaseModuleImpl.GetCustomQueryFields(this.ModuleObj.CondKey), this.pl_top, null);
this.SearchObj.OnSearchBeforeCallBack += new SearchEventHandler(SearchObj_OnSearchBefore);
//绑定任务条和资源树数据
this.schedulerStorage1.Appointments.DataSource = BaseImpl.GetDataTableResult(this.ModuleObj.MenuSql);
this.schedulerStorage1.Resources.DataSource = BaseImpl.GetDataTableResult(BaseModuleImpl.GetBaseLeftTreeField(this.SysModel.ModuleCode)["fieldsql"] + "");
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
#endregion
#region
/// <summary>
/// <para>说明:初始化自定义搜索</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-02-27</para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void SearchObj_OnSearchBefore(object sender, SearchArgs e)
{
try
{
DataTable dt = this.schedulerStorage1.Appointments.DataSource as DataTable;
DataRow[] dr = dt.Select("1=1" + this.SearchObj.SetSearchSqlValue(""));
if (dr != null) this.schedulerControl1.Start = Convert.ToDateTime(dr[0][_dtMapping[4].ColumnName]);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
#endregion
#region
/// <summary>
/// <para>说明:刷新任务数据源</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-26 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void RefreshAppointments()
{
this.schedulerStorage1.Appointments.DataSource = ScheduderImpl.GetAppointments(this.ModuleObj.MenuTable);
this.schedulerControl.RefreshData();
}
#endregion
#region
/// <summary>
/// <para>说明:设置任务时间阶段</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-26 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void SetLabelColor(SchedulerStorage storage)
{
storage.Appointments.Labels.Clear();
storage.Appointments.Labels.Add(new AppointmentLabel(Color.Yellow, "生产中"));
storage.Appointments.Labels.Add(new AppointmentLabel(Color.LightBlue, "生产完成"));
storage.Appointments.Labels.Add(new AppointmentLabel(Color.Pink, "回炉"));
storage.Appointments.Labels.Add(new AppointmentLabel(Color.DarkSeaGreen, "其它"));
}
#endregion
#region
/// <summary>
/// <para>说明:设置任务菜单</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-26 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void schedulerControl_PopupMenuShowing(object sender, PopupMenuShowingEventArgs e)
{
try
{
SchedulerControl control = this.schedulerControl;
Appointment appointment = control.SelectedAppointments.Cast<Appointment>().FirstOrDefault();
AppointmentMenuStrip appoint = new AppointmentMenuStrip();
if (e.Menu.Id == SchedulerMenuItemId.AppointmentMenu)
{
appoint.SetRightMenus(this.schedulerStorage1, appointment, dtMenuList, this.SysModel, null, null, e);
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
#endregion
#region
/// <summary>
/// <para>说明:任务更改</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-26 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void schedulerStorage1_AppointmentsChanged(object sender, PersistentObjectsEventArgs e)
{
try
{
Appointment appointment = (Appointment)e.Objects[0];
DataRowView rowView = appointment.GetRow(this.schedulerStorage1) as DataRowView;
if (appointment.Id != null)
{
string updateField = string.Empty;
foreach (DataColumn col in _dtMapping)
{
if (col.ColumnName == _dtMapping[0].ColumnName) continue;
updateField += string.Format("{0}='{1}',", col.ColumnName, rowView.Row[col.ColumnName]);
}
int result = ScheduderImpl.UpdateAppointment(this.ModuleObj.MenuTable, updateField, _dtMapping[0].ColumnName, appointment.Id + "");
MessageUtil.Show(result > 0 ? ResourceKeys.UpdateAppointmentSuccess : ResourceKeys.UpdateAppointmentFail);
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
#endregion
#region
/// <summary>
/// <para>说明:任务删除</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-26 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void schedulerStorage1_AppointmentsDeleted(object sender, PersistentObjectsEventArgs e)
{
try
{
Appointment appointment = (Appointment)e.Objects[0];
DataRowView rowView = appointment.GetRow(this.schedulerStorage1) as DataRowView;
if (appointment.Id != null)
{
int result = ScheduderImpl.DeleteAppointment(this.ModuleObj.MenuTable, appointment.Id + "", _dtMapping[0].ColumnName);
MessageUtil.Show(result > 0 ? ResourceKeys.DeleteSuccess : ResourceKeys.DeleteFault);
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
#endregion
#region
/// <summary>
/// <para>说明:任务添加</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-26 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void schedulerStorage1_AppointmentsInserted(object sender, PersistentObjectsEventArgs e)
{
try
{
//添加
Appointment appoint = (Appointment)e.Objects[0];
DataRowView rowView = appoint.GetRow(this.schedulerStorage1) as DataRowView;
object id = ScheduderImpl.InsertAppointment(this.ModuleObj.MenuTable, _mappingStr, rowView.Row);
this.schedulerStorage1.SetAppointmentId(appoint, id);
MessageUtil.Show(id != null ? ResourceKeys.InsertAppointmentSuccess : ResourceKeys.InsertAppointmentFail);
RefreshAppointments();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
#endregion
}
}
+123
View File
@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="schedulerStorage1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
+130
View File
@@ -0,0 +1,130 @@
<?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>{351C8536-AC8F-4CB4-B7A8-5B6625F937D2}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Lskj.Gantt</RootNamespace>
<AssemblyName>Lskj.Gantt</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
<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.Gantt.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\Release\Lib\</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.SpellChecker.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" />
<Reference Include="DevExpress.XtraBars.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraGrid.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="DevExpress.XtraLayout.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraPrinting.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraScheduler.v15.2.Reporting.Extensions, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraScheduler.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraScheduler.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraScheduler.v15.2.Extensions, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraSpellChecker.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraTreeList.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Net" />
<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" />
</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" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\licenses.licx" />
</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" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<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.Gantt")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Lskj.Gantt")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 使此程序集中的类型
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
// 则将该类型上的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("17cec41f-ab42-4301-b27d-98cc62def9a6")]
// 程序集的版本信息由下面四个值组成:
//
// 主版本
// 次版本
// 内部版本号
// 修订号
//
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
+63
View File
@@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.Gantt.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.Gantt.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
View File
@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.Gantt.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>
+35
View File
@@ -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>