Ejemplo n.º 1
0
 public void ShowMesBean(BJZS_Config bean)
 {
     this.rbConnectAlarm.Checked        = bean.ConnectAlarm;
     this.rbCodeFailAlarm.Checked       = bean.DataAlarm;
     this.tbFeeder1No.Text              = bean.FeederNo[0];
     this.tbFeeder2No.Text              = bean.FeederNo[1];
     this.tbFeeder1Order.Text           = bean.FeederOrder[0];
     this.tbFeeder2Order.Text           = bean.FeederOrder[1];
     this.tbLeftFeeder.Text             = bean.FeederID[0];
     this.tbRightFeeder.Text            = bean.FeederID[1];
     this.ndTimeOut.Value               = ZDTHelper.Instance.TimeOut;
     this.tBJZSAddress.Text             = ZDTHelper.Instance.WebServiceAddress;
     this.tLineNo.Text                  = ZDTHelper.Instance.LineID;
     this.tMachineNO.Text               = ZDTHelper.Instance.MachineID;
     this.combLocation.Text             = ZDTHelper.Instance.Area;
     this.tFactoryArea.Text             = ZDTHelper.Instance.FactoryID;
     this.tEmployeID.Text               = ZDTHelper.Instance.EmployeeID;
     this.tEmployerNo.Text              = ZDTHelper.Instance.EmployeeName;
     this.tFpcNo.Text                   = ZDTHelper.Instance.FpcNo;
     this.tReadCodeName.Text            = bean.ReadCodeBean;
     this.nuRemainCount.Value           = bean.AlarmCount;
     this.nuRemainTime.Value            = bean.AlarmHour;
     this.chbEnableLimit.Checked        = bean.EnableAlarmCount;
     this.chbEnableMaterialTime.Checked = bean.EnableAlarmHour;
     this.bEnableJY.Checked             = ZDTHelper.Instance.EnableJY;
     this.bEnableBJZS.Checked           = ZDTHelper.Instance.EnableBJZS;
     this.bEnableAlarmUpload.Checked    = ZDTHelper.Instance.EnableAlarmUpload;
     this.tUser.Text = ZDTHelper.Instance.User;
     this.tPass.Text = ZDTHelper.Instance.PassWd;
     this.tReadCodeName.Items.AddRange(ReadCodeBean.GetList().ToArray());
 }
Ejemplo n.º 2
0
        private void fmZDT_Tool_Load(object sender, EventArgs e)
        {
            var config = ZDTHelper.Instance.JY_Config;

            this.cb_ReadCodeName.Text = config.ReadCodeBean;
            this.cbSide.SelectedIndex = (int)config.MES_Side;
            this.tIP_Local.Text       = config.LocalIp;
            this.tPort_Local.Text     = config.LocalPort.ToString();
            this.tIP_Remote.Text      = config.RemoteIp;
            this.tPort_Remote.Text    = config.RemotePort.ToString();
            this.rB_SPI.Checked       = !config.bUseRemote;
            this.rB_XPanel.Checked    = config.bUseRemote;
            this.rB_Alarm.Checked     = config.bAlarm;
            this.rB_DisAlarm.Checked  = !config.bAlarm;
            this.rB_PasteNone.Checked = !config.bPaste;
            this.rB_PasteAll.Checked  = config.bPaste;
            this.tBadMarkNO.Text      = config.BadmarkLen.ToString();
            this.cb_ReadCodeName.Items.AddRange(ReadCodeBean.GetList().ToArray());
        }