示例#1
0
 public IOMaping(MyInterface mControl, PinMapStruct PinMap)
 {
     InitializeComponent();
     this.mControl = mControl;
     this.PinMap   = PinMap;
     DisplayPinMap(PinMap);
 }
示例#2
0
        private void imageButton5_Click(object sender, EventArgs e)
        {
            if (IOMapForm == null)
            {
                IOMapForm = new IOMaping(PinMap: PinMap, mControl: mControl)
                {
                    Text            = "핀 맵 설정",
                    FormBorderStyle = FormBorderStyle.FixedSingle,
                    ShowIcon        = true,
                    MinimizeBox     = false,
                    MaximizeBox     = false,
                    ControlBox      = false,
                    TopMost         = true,
                    TopLevel        = true,
                    Owner           = this,
                };

                IOMapForm.FormClosing += delegate(object sender1, FormClosingEventArgs e1)
                {
                    PinMap    = IOMapForm.GetPinMap;
                    e1.Cancel = false;
                    IOMapForm.Dispose();
                    IOMapForm = null;
                };

                IOMapForm.Show();
            }

            return;
        }
示例#3
0
        private void imageButton4_Click(object sender, EventArgs e)
        {
            //붙여넣기
            PinMapStruct pMap = mControl.GetPinMap;

            DisplayPinMap(pMap);
            return;
        }
示例#4
0
        private void imageButton3_Click(object sender, EventArgs e)
        {
            //복사
            PinMapStruct pMap = mControl.GetPinMap;

            MovePinMap(ref pMap);
            mControl.GetPinMap = pMap;
            return;
        }
示例#5
0
        private void MovePinMap(ref PinMapStruct PMap)
        {
            //PMap.IMSSet.PinNo = (int)fpSpread1.Sheets[0].Cells[2, 3].Value;
            //PMap.IMSSet.Mode = (int)fpSpread1.Sheets[0].Cells[3, 3].Value;

            //PMap.IMSM1.PinNo = (int)fpSpread1.Sheets[0].Cells[4, 3].Value;
            //PMap.IMSM1.Mode = (int)fpSpread1.Sheets[0].Cells[5, 3].Value;

            //PMap.IMSM2.PinNo = (int)fpSpread1.Sheets[0].Cells[6, 3].Value;
            //PMap.IMSM2.Mode = (int)fpSpread1.Sheets[0].Cells[7, 3].Value;
            PMap.PSeat_직구동 = checkBox1.Checked;
            PMap.WalkIn    = checkBox2.Checked;

            PMap.SlideFWD.PinNo = (int)fpSpread1.Sheets[0].Cells[8, 3].Value;
            PMap.SlideFWD.Mode  = (int)fpSpread1.Sheets[0].Cells[9, 3].Value;

            PMap.SlideBWD.PinNo = (int)fpSpread1.Sheets[0].Cells[10, 3].Value;
            PMap.SlideBWD.Mode  = (int)fpSpread1.Sheets[0].Cells[11, 3].Value;

            PMap.ReclineFWD.PinNo = (int)fpSpread1.Sheets[0].Cells[12, 3].Value;
            PMap.ReclineFWD.Mode  = (int)fpSpread1.Sheets[0].Cells[13, 3].Value;

            PMap.ReclineBWD.PinNo = (int)fpSpread1.Sheets[0].Cells[14, 3].Value;
            PMap.ReclineBWD.Mode  = (int)fpSpread1.Sheets[0].Cells[15, 3].Value;


            PMap.TiltUp.PinNo = (int)fpSpread1.Sheets[0].Cells[16, 3].Value;
            PMap.TiltUp.Mode  = (int)fpSpread1.Sheets[0].Cells[17, 3].Value;

            PMap.TiltDn.PinNo = (int)fpSpread1.Sheets[0].Cells[18, 3].Value;
            PMap.TiltDn.Mode  = (int)fpSpread1.Sheets[0].Cells[19, 3].Value;

            PMap.HeightUp.PinNo = (int)fpSpread1.Sheets[0].Cells[20, 3].Value;
            PMap.HeightUp.Mode  = (int)fpSpread1.Sheets[0].Cells[21, 3].Value;

            PMap.HeightDn.PinNo = (int)fpSpread1.Sheets[0].Cells[22, 3].Value;
            PMap.HeightDn.Mode  = (int)fpSpread1.Sheets[0].Cells[23, 3].Value;

            PMap.LumberFwdBwd.Batt = (int)fpSpread1.Sheets[0].Cells[24, 3].Value;
            PMap.LumberFwdBwd.Gnd  = (int)fpSpread1.Sheets[0].Cells[25, 3].Value;

            PMap.LumberUpDn.Batt = (int)fpSpread1.Sheets[0].Cells[26, 3].Value;
            PMap.LumberUpDn.Gnd  = (int)fpSpread1.Sheets[0].Cells[27, 3].Value;

            PMap.Power.Batt1.Batt = (int)fpSpread1.Sheets[0].Cells[28, 3].Value;
            PMap.Power.Batt1.Gnd  = (int)fpSpread1.Sheets[0].Cells[29, 3].Value;

            PMap.Power.Batt2.Batt = (int)fpSpread1.Sheets[0].Cells[30, 3].Value;
            PMap.Power.Batt2.Gnd  = (int)fpSpread1.Sheets[0].Cells[31, 3].Value;
            return;
        }
示例#6
0
        private void DisplayPinMap(PinMapStruct pMap)
        {
            //fpSpread1.Sheets[0].Cells[2, 3].Value = pMap.IMSSet.PinNo;
            //fpSpread1.Sheets[0].Cells[3, 3].Value = pMap.IMSSet.Mode;

            //fpSpread1.Sheets[0].Cells[4, 3].Value = pMap.IMSM1.PinNo;
            //fpSpread1.Sheets[0].Cells[5, 3].Value = pMap.IMSM1.Mode;

            //fpSpread1.Sheets[0].Cells[6, 3].Value = pMap.IMSM2.PinNo;
            //fpSpread1.Sheets[0].Cells[7, 3].Value = pMap.IMSM2.Mode;

            checkBox1.Checked = pMap.PSeat_직구동;
            checkBox2.Checked = pMap.WalkIn;

            fpSpread1.Sheets[0].Cells[8, 3].Value = pMap.SlideFWD.PinNo;
            fpSpread1.Sheets[0].Cells[9, 3].Value = pMap.SlideFWD.Mode;

            fpSpread1.Sheets[0].Cells[10, 3].Value = pMap.SlideBWD.PinNo;
            fpSpread1.Sheets[0].Cells[11, 3].Value = pMap.SlideBWD.Mode;

            fpSpread1.Sheets[0].Cells[12, 3].Value = pMap.ReclineFWD.PinNo;
            fpSpread1.Sheets[0].Cells[13, 3].Value = pMap.ReclineFWD.Mode;

            fpSpread1.Sheets[0].Cells[14, 3].Value = pMap.ReclineBWD.PinNo;
            fpSpread1.Sheets[0].Cells[15, 3].Value = pMap.ReclineBWD.Mode;

            fpSpread1.Sheets[0].Cells[16, 3].Value = pMap.TiltUp.PinNo;
            fpSpread1.Sheets[0].Cells[17, 3].Value = pMap.TiltUp.Mode;

            fpSpread1.Sheets[0].Cells[18, 3].Value = pMap.TiltDn.PinNo;
            fpSpread1.Sheets[0].Cells[19, 3].Value = pMap.TiltDn.Mode;

            fpSpread1.Sheets[0].Cells[20, 3].Value = pMap.HeightUp.PinNo;
            fpSpread1.Sheets[0].Cells[21, 3].Value = pMap.HeightUp.Mode;

            fpSpread1.Sheets[0].Cells[22, 3].Value = pMap.HeightDn.PinNo;
            fpSpread1.Sheets[0].Cells[23, 3].Value = pMap.HeightDn.Mode;

            fpSpread1.Sheets[0].Cells[24, 3].Value = pMap.LumberFwdBwd.Batt;
            fpSpread1.Sheets[0].Cells[25, 3].Value = pMap.LumberFwdBwd.Gnd;

            fpSpread1.Sheets[0].Cells[26, 3].Value = pMap.LumberUpDn.Batt;
            fpSpread1.Sheets[0].Cells[27, 3].Value = pMap.LumberUpDn.Gnd;

            fpSpread1.Sheets[0].Cells[28, 3].Value = pMap.Power.Batt1.Batt;
            fpSpread1.Sheets[0].Cells[29, 3].Value = pMap.Power.Batt1.Gnd;

            fpSpread1.Sheets[0].Cells[30, 3].Value = pMap.Power.Batt2.Batt;
            fpSpread1.Sheets[0].Cells[31, 3].Value = pMap.Power.Batt2.Gnd;
            return;
        }
示例#7
0
        private void DisplaySpec()
        {
            PinMap = Spec.PinMap;
            fpSpread1.Sheets[0].Cells[3, 3].Text = Spec.Current.IMS.Min.ToString("0.00");
            fpSpread1.Sheets[0].Cells[3, 4].Text = Spec.Current.IMS.Max.ToString("0.00");
            fpSpread1.Sheets[0].Cells[4, 3].Text = Spec.Current.Slide.Min.ToString("0.00");
            fpSpread1.Sheets[0].Cells[4, 4].Text = Spec.Current.Slide.Max.ToString("0.00");
            fpSpread1.Sheets[0].Cells[5, 3].Text = Spec.Current.Tilt.Min.ToString("0.00");
            fpSpread1.Sheets[0].Cells[5, 4].Text = Spec.Current.Tilt.Max.ToString("0.00");
            fpSpread1.Sheets[0].Cells[6, 3].Text = Spec.Current.Height.Min.ToString("0.00");
            fpSpread1.Sheets[0].Cells[6, 4].Text = Spec.Current.Height.Max.ToString("0.00");
            fpSpread1.Sheets[0].Cells[7, 3].Text = Spec.Current.Recliner.Min.ToString("0.00");
            fpSpread1.Sheets[0].Cells[7, 4].Text = Spec.Current.Recliner.Max.ToString("0.00");
            fpSpread1.Sheets[0].Cells[8, 3].Text = Spec.Current.LumberFwdBwd.Min.ToString("0.00");
            fpSpread1.Sheets[0].Cells[8, 4].Text = Spec.Current.LumberFwdBwd.Max.ToString("0.00");
            fpSpread1.Sheets[0].Cells[9, 3].Text = Spec.Current.LumberUpDn.Min.ToString("0.00");
            fpSpread1.Sheets[0].Cells[9, 4].Text = Spec.Current.LumberUpDn.Max.ToString("0.00");

            fpSpread1.Sheets[0].Cells[10, 3].Text = Spec.MovingSpeed.SlideFwd.Min.ToString("0.00");
            fpSpread1.Sheets[0].Cells[10, 4].Text = Spec.MovingSpeed.SlideFwd.Max.ToString("0.00");
            fpSpread1.Sheets[0].Cells[11, 3].Text = Spec.MovingSpeed.SlideBwd.Min.ToString("0.00");
            fpSpread1.Sheets[0].Cells[11, 4].Text = Spec.MovingSpeed.SlideBwd.Max.ToString("0.00");

            fpSpread1.Sheets[0].Cells[12, 3].Text = Spec.MovingSpeed.ReclinerFwd.Min.ToString("0.00");
            fpSpread1.Sheets[0].Cells[12, 4].Text = Spec.MovingSpeed.ReclinerFwd.Max.ToString("0.00");
            fpSpread1.Sheets[0].Cells[13, 3].Text = Spec.MovingSpeed.ReclinerBwd.Min.ToString("0.00");
            fpSpread1.Sheets[0].Cells[13, 4].Text = Spec.MovingSpeed.ReclinerBwd.Max.ToString("0.00");

            fpSpread1.Sheets[0].Cells[14, 3].Text = Spec.MovingSpeed.TiltUp.Min.ToString("0.00");
            fpSpread1.Sheets[0].Cells[14, 4].Text = Spec.MovingSpeed.TiltUp.Max.ToString("0.00");
            fpSpread1.Sheets[0].Cells[15, 3].Text = Spec.MovingSpeed.TiltDn.Min.ToString("0.00");
            fpSpread1.Sheets[0].Cells[15, 4].Text = Spec.MovingSpeed.TiltDn.Max.ToString("0.00");

            fpSpread1.Sheets[0].Cells[16, 3].Text = Spec.MovingSpeed.HeightUp.Min.ToString("0.00");
            fpSpread1.Sheets[0].Cells[16, 4].Text = Spec.MovingSpeed.HeightUp.Max.ToString("0.00");
            fpSpread1.Sheets[0].Cells[17, 3].Text = Spec.MovingSpeed.HeightDn.Min.ToString("0.00");
            fpSpread1.Sheets[0].Cells[17, 4].Text = Spec.MovingSpeed.HeightDn.Max.ToString("0.00");

            fpSpread1.Sheets[0].Cells[18, 3].Text  = Spec.Sound.StartMax.ToString("0.0");
            fpSpread1.Sheets[0].Cells[18, 4].Text  = Spec.Sound.RunMax.ToString("0.00");
            fpSpread1.Sheets[0].Cells[19, 4].Value = Spec.Sound.RMSMode == true ? "True" : "False";

            fpSpread1.Sheets[0].Cells[20, 4].Text = Spec.Sound.기동음구동음구분사이시간.ToString("0.0");
            fpSpread1.Sheets[0].Cells[21, 4].Text = Spec.Sound.Offset.ToString("0.0");

            fpSpread1.Sheets[0].Cells[23, 4].Text = Spec.SlideLimitTime.ToString("0.0");
            fpSpread1.Sheets[0].Cells[24, 4].Text = Spec.TiltLimitTime.ToString("0.0");
            fpSpread1.Sheets[0].Cells[25, 4].Text = Spec.HeightLimitTime.ToString("0.0");
            fpSpread1.Sheets[0].Cells[26, 4].Text = Spec.ReclinerLimitTime.ToString("0.0");
            fpSpread1.Sheets[0].Cells[27, 4].Text = Spec.LumberLimitTime.ToString("0.0");
            //fpSpread1.Sheets[0].Cells[8, 8].Value = Spec.Can == true ? "True" : "False";

            fpSpread1.Sheets[0].Cells[11, 8].Text = Spec.MovingStroke.Slide.ToString("0.0");
            fpSpread1.Sheets[0].Cells[12, 8].Text = Spec.MovingStroke.Tilt.ToString("0.0");
            fpSpread1.Sheets[0].Cells[13, 8].Text = Spec.MovingStroke.Height.ToString("0.0");
            fpSpread1.Sheets[0].Cells[14, 8].Text = Spec.MovingStroke.Recliner.ToString("0.0");

            fpSpread1.Sheets[0].Cells[23, 2].Value = Spec.DeliveryPos.Slide;
            fpSpread1.Sheets[0].Cells[24, 2].Value = Spec.DeliveryPos.Tilt;
            fpSpread1.Sheets[0].Cells[25, 2].Value = Spec.DeliveryPos.Height;
            fpSpread1.Sheets[0].Cells[26, 2].Value = Spec.DeliveryPos.Recliner;

            fpSpread1.Sheets[0].Cells[2, 8].Text = Spec.SlideTestTime.ToString("0.0");
            fpSpread1.Sheets[0].Cells[3, 8].Text = Spec.HeightTestTime.ToString("0.0");
            fpSpread1.Sheets[0].Cells[4, 8].Text = Spec.TiltTestTime.ToString("0.0");
            fpSpread1.Sheets[0].Cells[5, 8].Text = Spec.ReclinerTestTime.ToString("0.0");
            fpSpread1.Sheets[0].Cells[6, 8].Text = Spec.LumberFwdBwdTestTime.ToString("0.0");
            fpSpread1.Sheets[0].Cells[7, 8].Text = Spec.LumberUpDnTestTime.ToString("0.0");

            fpSpread1.Sheets[0].Cells[16, 8].Text  = Spec.Sound.StartTime.ToString("0.0");
            fpSpread1.Sheets[0].Cells[17, 8].Value = Spec.SlideSoundCheckTime.ToString("0.0");
            fpSpread1.Sheets[0].Cells[18, 8].Value = Spec.TiltSoundCheckTime.ToString("0.0");
            fpSpread1.Sheets[0].Cells[19, 8].Value = Spec.HeightSoundCheckTime.ToString("0.0");
            fpSpread1.Sheets[0].Cells[20, 8].Value = Spec.ReclinerSoundCheckTime.ToString("0.0");
            fpSpread1.Sheets[0].Cells[21, 8].Value = Spec.LumberSoundCheckTime.ToString("0.0");
            //fpSpread1.Sheets[0].Cells[22, 8].Value = Spec.Sound.SoundCheckRange.ToString("0.0");

            fpSpread1.Sheets[0].Cells[25, 8].Value = Spec.TestVolt.ToString("0.0");
            fpSpread1.Sheets[0].Cells[27, 8].Value = Spec.SlideLimitCurr.ToString("0.0");
            fpSpread1.Sheets[0].Cells[28, 8].Value = Spec.TiltLimitCurr.ToString("0.0");
            fpSpread1.Sheets[0].Cells[29, 8].Value = Spec.HeightLimitCurr.ToString("0.0");
            fpSpread1.Sheets[0].Cells[30, 8].Value = Spec.ReclinerLimitCurr.ToString("0.0");

            return;
        }