You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.3 KiB
56 lines
1.3 KiB
using Stone.Common;
|
|
using Stone.WinBiz.BasicData;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Stone.WinModule.BasicData
|
|
{
|
|
public partial class frmTTZ_Data : Stone.WinModule.BasicData.frmBaseMain
|
|
{
|
|
public frmTTZ_Data()
|
|
{
|
|
InitializeComponent();
|
|
|
|
this.ReadOnly();
|
|
|
|
this.tlbInput.Visible = true;
|
|
this.tlbInput.Enabled = true;
|
|
}
|
|
|
|
private void frmTTZ_Data_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
public override void Search(string code)
|
|
{
|
|
strWhere = "1=1";
|
|
if (code != "")
|
|
{
|
|
strWhere = $"[ProductionNo] = '{code}'";
|
|
strWhere += $" or [Purpose] = '{code}'";
|
|
strWhere += $" or [UserName] = '{code}'";
|
|
strWhere += $" or [CarType] = '{code}'";
|
|
}
|
|
|
|
}
|
|
|
|
public override void Input()
|
|
{
|
|
if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
|
|
{
|
|
((F_TTZ_Data)m_Base).InputDataNew(this.openFileDialog1.FileName, this.lblState);
|
|
|
|
UpdateGridView();
|
|
|
|
MyMessageBox.ShowInfoMessage("数据导入成功!");
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|