/// <summary> /// LOAD 事件-材料、LINE等 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SsdpInput_Load(object sender, EventArgs e) { PaCSGlobal.InitComPort("SecuLabel", "SsdpInput", ports); if (ports[0].IsOpen) { ports[0].DataReceived += new SerialDataReceivedEventHandler(serialPortSecuSsdpInput_DataReceived);//重新绑定 } if (PaCSGlobal.LoginUserInfo.Fct_code.Equals("C660A")) { cbPlant.Text = "SSDP"; } else { cbPlant.Text = "SESC"; } string bufVend = SecuGlobal.getPopVendorInfo(PaCSGlobal.LoginUserInfo.Venderid, PaCSGlobal.LoginUserInfo.Fct_code); if (!bufVend.Equals("")) { cbVendor.Text = bufVend; } else { cbVendor.Text = PaCSGlobal.LoginUserInfo.Venderid + ":" + PaCSGlobal.LoginUserInfo.Vendername; //苏州法人 } rdInput.SelectedIndex = 1; //默认是按卷投入 getVendorCode4(); SecuGlobal.getMeterialCode(cbMaterialCode); // 获取材料编号信息tb_security_master SecuGlobal.getLineInfo(cbLine, vendorCode); rdType_SelectedIndexChanged(sender, e); rdInput_SelectedIndexChanged(sender, e); SecuGlobal.showOK(panelStatus, lblStatus, "Ready ! 当前类型:" + secuType + "投入类型:" + inputType); }