using CCWin; 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; namespace UAS_KanBan { public partial class Process : CCSkinMain { AutoSizeFormClass asc = new AutoSizeFormClass(); DataHelper dh = new DataHelper(); string Linecode; string Wccode; public Process(string LineCode,string WcCode) { InitializeComponent(); Linecode = LineCode; Wccode = WcCode; } private void Process_Load(object sender, EventArgs e) { asc.controllInitializeSize(this); Refresh.Tick += Refresh_Tick; Refresh.Interval = Setting.RefreshRate * 1000; Refresh.Start(); } private void Refresh_Tick(object sender, EventArgs e) { dh.ExecuteSql("select KBI_LINE_ZTL('"+Linecode+"','"+Wccode+"') from dual", "select"); } private void Process_SizeChanged(object sender, EventArgs e) { asc.controlAutoSize(this); Line1.Size = new Size(2, BottomLine.Location.Y - TopLine.Location.Y); Line2.Size = new Size(2, BottomLine.Location.Y - TopLine.Location.Y); Line3.Size = new Size(2, BottomLine.Location.Y - TopLine.Location.Y); } private void Process_FormClosing(object sender, FormClosingEventArgs e) { Refresh.Stop(); } } }