代码:
/**
* Created with IntelliJ IDEA.
* User: Administrator
* Date: 14-3-5
* Time: 上午10:23
* To change this template use File | Settings | File Templates.
*/
function capturePhotoWin(vid,lpn){
var designer = new capturePhotoWin_Designer(vid,lpn);
designer.Show();
}
function capturePhotoWin_Designer(vid,lpn) {
this.vid = vid;
this.lpn=lpn;
//控件宽度
this.leftControlWidth = 150;
this.vlpnFlag=0;//0表示为 选中的是车辆
this.CurrentVehicleId=-1; //车辆ID
this.CurrentVehicleName=""; //车牌号
this.form;
this.window;
this.InitComponent();
}
capturePhotoWin_Designer.prototype = {
/**
* 发送
*/
sendHandler: function () {
//**第一 值
if(this.cbOne.checked==false && this.cbTwo.checked==false && this.cbThree.checked==false && this.cbFour.checked==false
&& this.cbFive.checked==false&& this.cbSix.checked==false&& this.cbSeven.checked==false&& this.cbEight.checked==false){
Ext.Msg.alert("提示","至少选择一个摄像头");
return;
}
var cameraCount=0;//总数
var temp1 = 0;
var temp2 = 0;
var temp3 = 0;
var temp4 = 0;
var temp5 = 0;
var temp6 = 0;
var temp7 = 0;
var temp8 = 0;
if(this.cbOne.checked==true){
temp1=1;
}
if(this.cbTwo.checked==true){
temp2=2;
}
if(this.cbThree.checked==true){
temp3=4;
}
if(this.cbFour.checked==true){
temp4=8;
}
if(this.cbFive.checked==true){
temp5=16;
}
if(this.cbSix.checked==true){
temp6=32;
}
if(this.cbSeven.checked==true){
temp7=64;
}
if(this.cbEight.checked==true){
temp8=128;
}
cameraCount=temp1+temp2+temp3+temp4+temp5+temp6+temp7+temp8;
//**第二 值
//拍摄张数
var shootCount = this.combo_countPhoto.getValue();
//拍摄间隔
var interval = this.combo_shootInterval.getRawValue();
//分辨率
var resolution =this.combo_resolution.getValue();
//保存标志
var saveFlag= this.rb_save.getValue().inputValue;
//**第三 值
//质量
var quality = this.sl_quality.getValue();
//亮度
var bright = this.sl_bright.getValue();
//色度
var chroma = this.sl_chroma.getValue();
//对比度
var contrast = this.sl_contrast.getValue();
//饱和度
var saturation = this.sl_saturation.getValue();
//弹出效果
Ext.MessageBox.show({
msg: '正在发送,请稍等...',
progressText: 'Saving...',
width:300,
wait:true,
waitConfig