public ViewAllSales(MainForm main) { this.main = main; this.MdiParent = main; detail = new List <ViewSalesPVCList>(); searchCust = new Master.Customer.SearchCustomerPVC(main); super = new DialogBox.SupervisorForm(main); InitializeComponent(); }
private void button4_Click(object sender, EventArgs e) { if (main.GetLevel() < 4 || main.globalEmployeeRole == 3) { //CUMA BOLEH ADMIN + ADANG setStamp(); RefreshClosingStamp(); } else { DialogBox.SupervisorForm superLogin = new DialogBox.SupervisorForm(main); superLogin.ShowDialog(); if (superLogin.DialogResult == System.Windows.Forms.DialogResult.OK) { setStamp(); RefreshClosingStamp(); } } }
private void button4_Click(object sender, EventArgs e) { if (main.GetLevel() < 4 || main.globalEmployeeID == 4) { //CUMA BOLEH ADMIN + ADANG ExecuteQuery("INSERT INTO PVCTimeStamp (stampTime) VALUES (now())"); RefreshClosingStamp(); } else { DialogBox.SupervisorForm superLogin = new DialogBox.SupervisorForm(main); superLogin.ShowDialog(); if (superLogin.DialogResult == System.Windows.Forms.DialogResult.OK) { ExecuteQuery("INSERT INTO PVCTimeStamp (stampTime) VALUES (now())"); RefreshClosingStamp(); } } }