Exemplo n.º 1
0
        private void button4_Click(object sender, EventArgs e)
        {
            WorkOrderService service = new WorkOrderService();

            reqCenterList = service.GetAllWorkReqCenter(cbWorkCenter.SelectedValue.ToString());
            WorkCenterSchedule frm = new WorkCenterSchedule(cbWorkCenter.SelectedValue.ToString(), this);

            frm.ShowDialog();
        }
Exemplo n.º 2
0
        private void WorkCenterSchedule_Load(object sender, EventArgs e)
        {
            WorkOrderService service = new WorkOrderService();

            DateTime[] planDate = null;
            reqCenterList = service.GetAllWorkReqCenter(workCenter);
            if (reqCenterList != null)
            {
                planDate = (from item in reqCenterList
                            select item.Plan_Date).ToArray();
            }
            workCalendar = new UserCalendar(planDate, workCenter);
            workCalendar.Search_Click += btnSearch;
            workCalendar.Location      = new Point(6, 41);
            this.Controls.Add(workCalendar);
            CommonClass.AddNewColumnToDataGridView(dgvCenter, "생산의뢰번호", "Workorderno", true, 110);
            CommonClass.AddNewColumnToDataGridView(dgvCenter, "계획날짜", "Plan_Date", true, 110);
            CommonClass.AddNewColumnToDataGridView(dgvCenter, "계획 시작시간", "Plan_Starttime", true, 110);
            CommonClass.AddNewColumnToDataGridView(dgvCenter, "계획 마감시간", "Plan_Endtime", true, 110);
            CommonClass.AddNewColumnToDataGridView(dgvCenter, "작업 상태", "Wo_Status", true, 110);
        }