public CtlNodeBaseModel() { productBindBll = new OnlineProductsBll(); mesInfoBllLocal = new LOCAL_MES_STEP_INFOBll(); mesDetailBllLocal = new LOCAL_MES_STEP_INFO_DETAILBll(); produceRecordBll = new ProduceRecordBll(); mesDA = new MesDA(); mesDA.SimMode = SysCfgModel.SimMode; if (SysCfgModel.MesTestMode) { // mesDA.MesWS.Url = @"http://192.168.214.180:8333/soap/EventService?wsdl"; mesDA.MesdbConnstr = @"Data Source=(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.214.180)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = PRQMESDB) ) );User Id=prqminda1;Password=prqminda1;Connection Timeout=5;"; } else { // mesDA.MesWS.Url = @"http://192.168.100.92:8123/soap/EventService?wsdl"; mesDA.MesdbConnstr = @"Data Source=(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.94)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = PRQMESDB) ) );User Id=prqminda1;Password=prqminda1;Connection Timeout=5;"; } localMesBasebll = new LOCAL_MES_STEP_INFOBll(); localMesDetailbll = new LOCAL_MES_STEP_INFO_DETAILBll(); onlineProductBll = new OnlineProductsBll(); }
public LineMonitorPresenter(ILineMonitorView view) { this.view = view; mesDA = new MesDA(); logBll = new SysLogBll(); produceRecordBll = new ProduceRecordBll(); }
public MesDatarecordView(string captionText) : base(captionText) { InitializeComponent(); this.Text = captionText; queryFilter = new MesQueryFilter(); localMesStepBll = new LOCAL_MES_STEP_INFOBll(); localMesDetail = new LOCAL_MES_STEP_INFO_DETAILBll(); mesDA = new MesDA(); }
private void SysDefineView_Load(object sender, EventArgs e) { this.toolStripComboBox1.Items.AddRange(new string[] { "线体控制数据库", "MES数据库" }); this.toolStripComboBox1.SelectedIndex = 0; mesDA = new MesDA(); string reStr = ""; if (!mesDA.ConnDB(ref reStr)) { MessageBox.Show(reStr, "MES数据库连接失败"); } }
private bool rfidTimeCounterBegin = false; //RFID超时计时开始 // private OnlineProductsBll onlineProductBll = null; // private ControlTaskModel currentTask = null; // private ControlTaskBll ctlTaskBll = new ControlTaskBll(); public NodeProductInput() { //this.currentStat.ProductBarcode="BARCODE1234567"; // this.mesNodeID = "MES投产位"; mesDA = new MesDA(); //if(SysCfgModel.SimMode) //{ // mesDA = new MesDASim(); //} //else //{ // mesDA = new MesDA(); //} }