You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using Mesnac.Compressor.Data;
|
|
|
|
|
using Mesnac.Compressor.Station;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace BusinessTest
|
|
|
|
|
{
|
|
|
|
|
public partial class Form1 : Form
|
|
|
|
|
{
|
|
|
|
|
public Form1()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
DbHandler db = new DbHandler();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string dateCode = DateTime.Now.ToString("yyMMdd");
|
|
|
|
|
string year = dateCode.Substring(0, 2);
|
|
|
|
|
string mouth = dateCode.Substring(2, 2);
|
|
|
|
|
string day = dateCode.Substring(4, 2);
|
|
|
|
|
string test = day + mouth + year;
|
|
|
|
|
bool isNG = db.GetStationNGBySemiBarCode("A2303220080");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|