コード例 #1
0
        private void FrmWashing_Load(object sender, EventArgs e)
        {
            //dataView1.ColumnHeadersDefaultCellStyle.Font = new System.Drawing.Font("宋体",15);
            LoadDevicePot();
            DS_DSMaterialDAL DSMaterialDAL = new DS_DSMaterialDAL();

            MaterialList = DSMaterialDAL.GetMaterialListAll();

            washingcabinetWaterDS = new WashingCabinetWaterDS();
            washingmaterialDS     = new WashingMaterialDS();


            washingcabinetWaterDS.Competed_Event += Competed_Event;
            washingmaterialDS.Competed_Event     += Competed_Event;

            washingcabinetWaterDS.PercentFinishEvent += PercentFinishEvent;

            Golbal.washingformulaStatus.Start_Event += Start_Event;
            Golbal.washingformulaStatus.End_Event   += End_Event;

            tMain          = new System.Timers.Timer(2000);
            tMain.Elapsed += tMain_Elapsed;
            tMain.Enabled  = true;
            System.Timers.Timer tTimer = new System.Timers.Timer(500);
            tTimer.Elapsed += tTimer_Elapsed;
            tTimer.Start();
        }
コード例 #2
0
ファイル: FrmSingleTest.cs プロジェクト: 0000duck/DSW_JM
        private void BindData()
        {
            DS_PotDAL potDAL = new DS_PotDAL();

            combPot.DataSource    = potDAL.GetPotListByType(2);
            combPot.ValueMember   = "PotCode";
            combPot.DisplayMember = "PotName";
            combPot.SelectedIndex = 0;
            DS_DSMaterialDAL dsMaterialDAL = new DS_DSMaterialDAL();

            combMaterial.DataSource    = dsMaterialDAL.GetMaterialByDistributionType(2);
            combMaterial.ValueMember   = "Code";
            combMaterial.DisplayMember = "Name";
            combMaterial.SelectedIndex = 0;
        }
コード例 #3
0
        public Golbal()
        {
            _intervalwater       = Convert.ToDecimal(System.Configuration.ConfigurationManager.AppSettings["IntervalWater"].ToString()); //间隔水量
            _cleanwater          = decimal.Parse(System.Configuration.ConfigurationManager.AppSettings["CleanWater"].ToString());        //清洗水量
            _endwater            = decimal.Parse(System.Configuration.ConfigurationManager.AppSettings["EndWater"].ToString());          //末端水量
            _serverIP            = System.Configuration.ConfigurationManager.AppSettings["ServerIP"].ToString();                         //服务器IP
            _localIP             = System.Configuration.ConfigurationManager.AppSettings["LocalIP"].ToString();                          //本地IP
            _perSum              = decimal.Parse(System.Configuration.ConfigurationManager.AppSettings["PerSum"].ToString());            //末端水量
            ParamClass           = ParamClass.Instance;
            CurrentAction        = "等待机台请求";
            WashingCurrentAction = "等待机台请求";
            DS_PotDAL potDAL = new DS_PotDAL();

            potList = potDAL.GetPotList();//获取所有缸信息
            DS_DSMaterialDAL DAL = new DS_DSMaterialDAL();

            WaterModel = DAL.GetMaterialByCode("99");
        }