Пример #1
0
        private void SetWorker()
        {
            WorkAllocation_Service service = new WorkAllocation_Service();

            MList = service.GetWorker(cb_Wc_Name.Text);
            dataGridView1.DataSource = MList;
        }
Пример #2
0
        private void btn_WorkerFullOff_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("전체 해제 하시겠습니까?", "알림", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                WorkAllocation_Service service = new WorkAllocation_Service();
                service.deleteAllWorker(cb_Wc_Name.Text);
                service.deleteAllWorkerHistory(cb_Wc_Name.Text);
            }

            SetWorkerList();
            SetWorker();
        }
Пример #3
0
        private void btn_WorkerOff_Click(object sender, EventArgs e)
        {
            try
            {
                WorkAllocation_Service service = new WorkAllocation_Service();

                service.deleteWorker(b);
                service.deleteWorkerHistory(b);

                SetWorkerList();
                SetWorker();
                b = "";
            }
            catch { }
        }
Пример #4
0
        private void btn_WorkerOn_Click(object sender, EventArgs e)
        {
            try
            {
                WorkAssignment_Vo wa = new WorkAssignment_Vo();
                wa.User_Name = a;
                wa.Wc_Name   = cb_Wc_Name.Text;
                WorkAllocation_Service service = new WorkAllocation_Service();
                service.WorkAssignment(wa);
                SetWorkerList();
                SetWorker();
                a = "";

                service.InsertWorkerHistory(wa);
            }
            catch { }
        }