Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public OnlineProductView(string captionText)
     : base(captionText)
 {
     InitializeComponent();
     queryFilter = new ProductRecordQueryFilter();
     this.Text   = captionText;
     //  this.captionText = captionText;
     recordBll = new OnlineProductsBll();
 }