Ejemplo n.º 1
0
 private void deployConfirm_click(object sender, EventArgs e)
 {
     curStatus = tempStatus;
     setPaltesByMsgAll(curStatus);
     refreshQuYePan();
     refreshMuBiaoPan();
     alcDevice.LHS_PlateStatus = curStatus;
     if (IsSocket)
     {
         String msg = ALCDeviceMessageCreator.createDeployStatus(alcDevice.LHS_PlateStatus);
         alcDevice.SendMsg(msg);
         //Database mydb = new Database();
         //mydb.insertlpssetting(1, alcDevice.msgStatus);
     }
 }
Ejemplo n.º 2
0
 private void confirm_Click(object sender, EventArgs e)
 {
     alcDevice.LHS_SuctionPlate      = this.comboBox2.Text;
     alcDevice.LHS_TargetPlate       = this.comboBox3.Text;
     alcDevice.LHS_Imbitition        = Int32.Parse(this.textBox4.Text);
     alcDevice.LHS_LiquidRate        = Decimal.ToInt32(this.numericUpDown1.Value);
     alcDevice.LHS_DischargeRate     = Decimal.ToInt32(this.numericUpDown2.Value);
     alcDevice.LHS_LiquidPosition    = Int32.Parse(this.textBox5.Text);
     alcDevice.LHS_DischargePosition = Int32.Parse(this.textBox6.Text);
     if (IsSocket)
     {
         String msg1 = ALCDeviceMessageCreator.createMuBiaoConfirmMsg(alcDevice.LHS_SuctionPlate, alcDevice.LHS_TargetPlate, alcDevice.LHS_Imbitition.ToString());
         alcDevice.SendMsg(msg1);
         String msg2 = ALCDeviceMessageCreator.createSuDuConfirmMsg(alcDevice.LHS_LiquidRate.ToString(), alcDevice.LHS_DischargeRate.ToString());
         alcDevice.SendMsg(msg2);
         String msg3 = ALCDeviceMessageCreator.createWeiZhiConfirmMsg(alcDevice.LHS_LiquidPosition.ToString(), alcDevice.LHS_DischargePosition.ToString());
         alcDevice.SendMsg(msg3);
         //Database mydb = new Database();
         //mydb.insertlpsplace(1, alcDevice.quYePan, alcDevice.muBiaoPan, alcDevice.xiYeLiang, alcDevice.xiYeSuDu, alcDevice.paiYeSuDu, alcDevice.xiYeWeiZhi, alcDevice.paiYeWeiZhi);
     }
 }