예제 #1
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            _item.DividingPlanItemID = Convert.ToInt16(gridView2.GetFocusedRowCellValue("DividingPlanItemID").ToString());
            _item.OprationNo = gridView2.GetFocusedRowCellValue("OprationNo").ToString();
            _item.OprationName = gridView2.GetFocusedRowCellValue("OprationName").ToString();
            _item.SMVType = gridView2.GetFocusedRowCellValue("SMVType").ToString();
            try {
                _item.MachineType = gridView2.GetFocusedRowCellValue("MachineType").ToString();
            }
            catch(Exception ex){
            }
            
            _item.SMV = Convert.ToDouble(gridView2.GetFocusedRowCellValue("SMV").ToString());
            _item.PartName = gridView2.GetFocusedRowCellValue("PartName").ToString();
            _item.WorkstationNo = Convert.ToInt16(gridView2.GetFocusedRowCellValue("WorkstationNo").ToString());
            _item.OpNo =Convert.ToInt16( gridView2.GetFocusedRowCellValue("OpNo").ToString());

            frmDividingPlanItem dItem = new frmDividingPlanItem(_item.DividingPlanItemID, _item.OprationNo, _item.OprationName, _item.SMVType, _item.MachineType, _item.SMV, Convert.ToString(_header.DividingPlanheaderID), _item.PartName,_item.OpNo,_item.WorkstationNo);
            dItem.ShowDialog();
        }
예제 #2
0
 private void simpleButton4_Click(object sender, EventArgs e)
 {
     
     frmDividingPlanItem item = new frmDividingPlanItem(Convert.ToInt16(txtDividingPlanNo.Text));
     item.ShowDialog();
 }