private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { string key = this.workpointtypes[this.comboBox2.SelectedIndex].Key; VehIC_WF.CommonService.CommonService service = new VehIC_WF.CommonService.CommonService(); if (!FrmMain.Debug) { service.Url = "http://" + FrmMain.localinfo.ServerUrl + "/VehIC_WS/CommonService.asmx"; } string[] distinctAvailableWorkPoint = service.GetDistinctAvailableWorkPoint(key); if (distinctAvailableWorkPoint != null) { int num; this.workpoints.Clear(); this.comboBox4.Items.Clear(); for (num = 0; num < distinctAvailableWorkPoint.Length; num++) { this.workpoints.Add(new KeyValueItem(distinctAvailableWorkPoint[num])); } for (num = 0; num < distinctAvailableWorkPoint.Length; num++) { this.comboBox4.Items.Add(this.workpoints[num].Value); } this.textBox3.Text = string.Empty; this.wpcode = string.Empty; } }
private void FC_RFBarcode_Load(object sender, EventArgs e) { try { this.cs = new VehIC_WF.CommonService.CommonService(); this.IC = new VehIC_WF.ICCardManageService.ICCardManageService(); if (!FrmMain.Debug) { this.cs.Url = "http://" + FrmMain.localinfo.ServerUrl + "/VehIC_WS/CommonService.asmx"; this.IC.Url = "http://" + FrmMain.localinfo.ServerUrl + "/VehIC_WS/ICCardManageService.asmx"; } string[] vehTypeList = this.IC.GetVehTypeList(); for (int i = 0; i < vehTypeList.Length; i++) { if (!(vehTypeList[i].Trim() == "")) { this.cb_vehtype.Items.Add(vehTypeList[i]); } } this.cb_vehtype.SelectedIndex = -1; this.serverurl = this.cs.GetThridUrl() + "login.aspx?un=0"; this.axWebBrowser1.Navigate(this.serverurl); } catch (Exception exception) { MessageBox.Show("初始化数据时出错!\r\n" + exception.ToString()); } }
private void FC_MatVehCardEx_Load(object sender, EventArgs e) { this.CS = new VehIC_WF.CommonService.CommonService(); this.IC = new VehIC_WF.ICCardManageService.ICCardManageService(); if (!FrmMain.Debug) { this.CS.Url = "http://" + FrmMain.localinfo.ServerUrl + "/VehIC_WS/CommonService.asmx"; this.IC.Url = "http://" + FrmMain.localinfo.ServerUrl + "/VehIC_WS/ICCardManageService.asmx"; } }
public static string Test(string serveraddr) { try { VehIC_WF.CommonService.CommonService service = new VehIC_WF.CommonService.CommonService(); service.Url = "http://" + serveraddr + "/VehIC_WS/CommonService.asmx"; return("服务器时间" + service.Test()); } catch (Exception) { return(string.Empty); } }
public FrmDoorInvAdjust(NoticeItems ntitems, AvailableBillInfo info) { this.InitializeComponent(); base.DialogResult = DialogResult.Cancel; this.m_ntitems = ntitems; this.billinfo = info; this.commonservice = new VehIC_WF.CommonService.CommonService(); if (!FrmMain.Debug) { this.commonservice.Url = "http://" + FrmMain.localinfo.ServerUrl + "/VehIC_WS/CommonService.asmx"; } this.InitListTree(); }
private void FC_RFBarcodeEx_Load(object sender, EventArgs e) { try { this.cs = new VehIC_WF.CommonService.CommonService(); this.IC = new VehIC_WF.ICCardManageService.ICCardManageService(); if (!FrmMain.Debug) { this.cs.Url = "http://" + FrmMain.localinfo.ServerUrl + "/VehIC_WS/CommonService.asmx"; this.IC.Url = "http://" + FrmMain.localinfo.ServerUrl + "/VehIC_WS/ICCardManageService.asmx"; } } catch (Exception exception) { MessageBox.Show("初始化数据时出错!\r\n" + exception.ToString()); } }
private void btnOK_Click(object sender, EventArgs e) { if (this.textBox3.Text != "") { string text = this.textBox4.Text; string regcode = this.textBox5.Text; if (text == "") { MessageBox.Show("IP地址无效!"); } else { if (regcode == "") { MessageBox.Show("注册码无效!"); } if (this.wpcode == "") { MessageBox.Show("选择的作业点无效!"); } VehIC_WF.CommonService.CommonService service = new VehIC_WF.CommonService.CommonService(); if (!FrmMain.Debug) { service.Url = "http://" + FrmMain.localinfo.ServerUrl + "/VehIC_WS/CommonService.asmx"; } if (!service.WorkPointRegistry(this.wpcode, regcode, text)) { MessageBox.Show("注册失败!请重试!"); } else { MessageBox.Show("注册完毕!等待审核!"); if (!this.sdwefdef) { base.DialogResult = DialogResult.OK; base.Close(); } } } } }
private void FrmLogin_Load(object sender, EventArgs e) { this.cs = new VehIC_WF.CommonService.CommonService(); this.ic = new VehIC_WF.ICCardManageService.ICCardManageService(); this.cs.Url = "http://" + FrmMain.localinfo.ServerUrl + "/VehIC_WS/CommonService.asmx"; this.ic.Url = "http://" + FrmMain.localinfo.ServerUrl + "/VehIC_WS/ICCardManageService.asmx"; //this.sklogin = this.cs.GetSystemPara("LoginByIc") == "1"; // this.OnMsg = new InvokeDelegate(this.HandleMessage); //if (this.sklogin && this.LoadDevice()) // if (this.sklogin && FrmMain.localinfo.device_reader_status) //if (this.sklogin && DeviceManager.Instance.HaveAvailableCardReader()) //{ // this.textBox1.ReadOnly = true; // this.OnMsg = new InvokeDelegate(this.HandleMessage); // this.timer1.Start(); //} //else //{ this.textBox1.Focus(); //} }
private void FrmWorkPointRegistry_Load(object sender, EventArgs e) { VehIC_WF.Device.HardwareInfo info = new VehIC_WF.Device.HardwareInfo(); this.textBox4.Text = info.GetHostIPAddress(); this.textBox5.Text = info.GetMacAddress(); VehIC_WF.CommonService.CommonService service = new VehIC_WF.CommonService.CommonService(); if (!FrmMain.Debug) { service.Url = "http://" + FrmMain.localinfo.ServerUrl + "/VehIC_WS/CommonService.asmx"; } string[] distinctAvailableWorkPointType = service.GetDistinctAvailableWorkPointType(); if (distinctAvailableWorkPointType != null) { int num; for (num = 0; num < distinctAvailableWorkPointType.Length; num++) { this.workpointtypes.Add(new KeyValueItem(distinctAvailableWorkPointType[num])); } for (num = 0; num < distinctAvailableWorkPointType.Length; num++) { this.comboBox2.Items.Add(this.workpointtypes[num].Value); } } }