Esempio n. 1
0
        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;
            }
        }