56 lines
1.6 KiB
C#
56 lines
1.6 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.Data;
|
|||
|
using System.Drawing;
|
|||
|
using System.Text;
|
|||
|
using System.Linq;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using System.Windows.Forms;
|
|||
|
using DevExpress.XtraEditors;
|
|||
|
using DevExpress.XtraGrid.Localization;
|
|||
|
|
|||
|
namespace Intend
|
|||
|
{
|
|||
|
public partial class XtraLogForm : XtraForm
|
|||
|
{
|
|||
|
private Dictionary<string, string> dicTable = new Dictionary<string, string>
|
|||
|
{
|
|||
|
{ "设备点检表变更日志","DeviceLog"},
|
|||
|
{ "设备保养操作日志","DeviceMaintenanceLog"},
|
|||
|
{ "设备信息操作日志","DriveInformationLogs" },
|
|||
|
{ "点检表","FormLog" }
|
|||
|
|
|||
|
};
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 函数
|
|||
|
/// </summary>
|
|||
|
public XtraLogForm()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
|
|||
|
this.DoubleBuffered = true;
|
|||
|
Load += XtraLogForm_Load;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 加载完成事件
|
|||
|
/// </summary>
|
|||
|
/// <param name="sender"></param>
|
|||
|
/// <param name="e"></param>
|
|||
|
private void XtraLogForm_Load(object sender, EventArgs e)
|
|||
|
{
|
|||
|
// 时间控件赋值默认值
|
|||
|
inStartDate.EditValue = DateTime.Today.AddMonths(-1);
|
|||
|
inEndDate.EditValue = DateTime.Today;
|
|||
|
|
|||
|
// 不显示表格窗体分组容器
|
|||
|
gridView1.OptionsView.ShowGroupPanel = false;
|
|||
|
|
|||
|
//关闭容器控件右键菜单
|
|||
|
layoutControlGroup1.ViewInfo.OwnerILayoutControl.AllowCustomizationMenu = false;
|
|||
|
GridLocalizer.Active = new CustomGridLocalizer();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|