📄 ordersreportview.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using Orphean.WinFormHelper.Framework.PlugIn;
namespace WindowsApplication2
{
public partial class OrdersReportView : Form
{
public OrdersReportView()
{
InitializeComponent();
}
private void OrdersReportView_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
DateTime startDate, endDate;
if (!DateTime.TryParse(maskedTextBox1.Text, out startDate))
MessageBox.Show(Resources.Messages.SDateFormatError);
if(!DateTime.TryParse(maskedTextBox2.Text,out endDate))
MessageBox.Show(Resources.Messages.SDateFormatError);
DataModal.HidaKitDataSet ds = MainDataModule.Instance.GetOrderByDate(
startDate,
endDate);
orpBindingSource1.DataSource = ds;
orpBindingSource1.DataMember = "ORDERSReport";
if(Thread.CurrentThread.CurrentCulture.Name.Equals("zh-CN"))
this.reportViewer1.LocalReport.ReportEmbeddedResource = "WindowsApplication2.OrdersReport-CN.rdlc";
reportViewer1.RefreshReport();
}
}
public sealed class OrdersReportViewHandler : MDIFormHandler
{
protected override Type GetFormType()
{
return typeof(OrdersReportView);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -