public AddJob(Socket client, DateTime dateTime) { _userBO = new User_BO(); _planItemBO = new PlanItem_BO(); _client = client; _dateTime = dateTime; InitializeComponent(); Load_User(); cb_status.DataSource = PlanItem.ListStatus; cb_status.SelectedIndex = 0; _plan_Item = null; }
public AddJob(Socket client, DateTime dateTime, PlanItem planItem) { _userBO = new User_BO(); _planItemBO = new PlanItem_BO(); _client = client; _dateTime = dateTime; _plan_Item = planItem; InitializeComponent(); cb_status.DataSource = PlanItem.ListStatus; Load_User(); Show(); cb_status.DataSource = PlanItem.ListStatus; }
public AJob(PlanItem job, int userId, Socket client) { InitializeComponent(); Client = client; UserId = userId; cbStatus.DataSource = PlanItem.ListStatus; this.Job = job; ShowInfo(); context2 = new User_BO(); context = new PlanItem_BO(); }
public DailyPlan(DateTime date, PlanData job, int userId, Socket client) { context = new PlanItem_BO(); InitializeComponent(); UserId = userId; Date = date; Job = job; Client = client; fPanel.Width = pnlJob.Width; fPanel.Height = pnlJob.Height; pnlJob.Controls.Add(fPanel); dtpkDate.Value = Date; }
public DailyPlan(DateTime date, PlanData job) { context = new PlanItem_BO(); InitializeComponent(); Date = date; Job = job; fPanel.Width = pnlJob.Width; fPanel.Height = pnlJob.Height; pnlJob.Controls.Add(fPanel); dtpkDate.Value = Date; }
public AJobAdmin(PlanItem job, Socket client) { _user_BO = new User_BO(); _planItemBo = new PlanItem_BO(); InitializeComponent(); Client = client; cbStatus.DataSource = PlanItem.ListStatus; Load_User(); this.Job = job; ShowInfo(); context = new PlanItem_BO(); }
public QuanLyLichNhanVien(int userId) { InitializeComponent(); Connect(); context = new PlanItem_BO(); UserId = userId; RegistryKey regkey = Registry.CurrentUser.CreateSubKey("Software\\LapLich"); //mo registry khoi dong cung win RegistryKey regstart = Registry.CurrentUser.CreateSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"); string keyvalue = "1"; //string subkey = "Software\\ManhQuyen"; try { //chen gia tri key regkey.SetValue("Index", keyvalue); //regstart.SetValue("taoregistrytronghethong", "E:\\Studing\\Bai Tap\\CSharp\\Channel 4\\bai temp\\tao registry trong he thong\\tao registry trong he thong\\bin\\Debug\\tao registry trong he thong.exe"); regstart.SetValue("LapLich", Application.StartupPath + "\\Lập lịch.exe"); ////dong tien trinh ghi key //regkey.Close(); } catch (System.Exception ex) { } tmNotify.Start(); AppTime = 0; LoadMatrix(); try { //Job = DeserializeFromXML(filePath) as PlanData; Job = new PlanData() { Job = context.GetAllPlanItems() }; } catch { SetDefaultJob(); } }
public Form1(int userId) { context = new PlanItem_BO(); context2 = new User_BO(); InitializeComponent(); Connect(); UserId = userId; //RegistryKey regkey = Registry.CurrentUser.CreateSubKey("Software\\LapLich"); //mo registry khoi dong cung win //RegistryKey regstart = Registry.CurrentUser.CreateSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"); string keyvalue = "1"; //try //{ //chen gia tri key //regkey.SetValue("Index", keyvalue); //regstart.SetValue("LapLich", Application.StartupPath + "\\Lập lịch.exe"); //} //catch (System.Exception ex) //{ //} tmNotify.Start(); appTime = 0; LoadMatrix(); try { Job = new PlanData() { Job = context.GetAllPlanItems() }; } catch { } }