Esempio n. 1
0
 public Stopworking(string woid_data, string lotid, Startworking startworking)
 {
     InitializeComponent();
     this.woid         = woid_data;
     this.lotID        = lotid;
     this.startworking = startworking;
 }
Esempio n. 2
0
        private void WostBtn_Click(object sender, EventArgs e)
        {
            //작업시작 버튼
            //작업시작시 작업상태를 진행중(S), 작업시작일을 SYSDATE로 변경
            string update_wostat = $"UPDATE WORKORDER SET WOSTAT ='S', WOSTDTTM = TO_CHAR(SYSDATE, 'YY/MM/DD HH24:MI:SS') WHERE WOID = '{woid}'";

            Common.DB_Connection(update_wostat);
            for (int i = 0; i < WoGrid.Rows.Count - 1; i++)
            {
                if (WoGrid.Rows[i].Selected == true)
                {
                    woid = WoGrid.Rows[i].Cells[0].Value.ToString();
                }
            }
            Startworking startworkingForm = new Startworking();

            if (woid != "")
            {
                startworkingForm.Selected_woid = woid;
                Common.Create_Tab("startworking", "작업시작", startworkingForm, maintab);
            }
            startworkingForm.FormClosed += Form_closing;

/*
 *                      if(ProcCombo.SelectedIndex ==0)
 *                      {
 *                          Equipment.Mainform_PROC_COMBOBOX = "MX";
 *                      }
 *                      else
 *                      {
 *                          Equipment.Mainform_PROC_COMBOBOX = "IM";
 *                      }
 *
 *      private void StartForm_Create()
 *      {
 *          //StartForm 생성
 *          for (int i = 0; i < WoGrid.Rows.Count - 1; i++)
 *          {
 *
 *              if (WoGrid.Rows[i].Selected == true)
 *              {
 *                  woid = WoGrid.Rows[i].Cells[0].Value.ToString();
 *                  Equipment.woid = woid;
 *              }
 *          }
 *          Equipment_check();*/
        }
Esempio n. 3
0
 public Lot(Startworking startworkingForm)
 {
     InitializeComponent();
     this.startworkingForm = startworkingForm;
     this.FormClosing     += Lot_FormClosing;
 }