Beispiel #1
0
 public void OnEQPIDSelectedEvent(object sender, ParentChildRelateEventArgs <string> e)
 {
     if (this.EQPIDSelectedEvent != null)
     {
         EQPIDSelectedEvent(sender, e);
     }
 }
Beispiel #2
0
        private void ucButtonOK_Click(object sender, EventArgs e)
        {
            if (this.dataGridViewEQPID.Rows.Count == 0)
            {
                return;
            }

            string eqpidList = string.Empty;

            for (int i = 0; i < dataGridViewEQPID.Rows.Count; i++)
            {
                if (dataGridViewEQPID.Rows[i].Cells[0].Value.ToString().ToLower() == "true")
                {
                    eqpidList += "," + dataGridViewEQPID.Rows[i].Cells["EQPID"].Value.ToString().Trim().ToUpper();
                }
            }

            if (eqpidList.Length > 0)
            {
                eqpidList = eqpidList.Substring(1);
            }

            ParentChildRelateEventArgs <string> args = new ParentChildRelateEventArgs <string>(eqpidList);

            this.OnEQPIDSelectedEvent(sender, args);
            this.Close();
        }
Beispiel #3
0
 public void OnBigLineSelectedEvent(object sender, ParentChildRelateEventArgs <string> e)
 {
     if (this.BiglineSelectedEvent != null)
     {
         BiglineSelectedEvent(sender, e);
     }
 }
Beispiel #4
0
 private void ssCodeSelectorForFactory_SSCodeSelectedEvent(object sender, ParentChildRelateEventArgs <string> e)
 {
     this.txtSSCodeListForFactory.Text = e.CustomObject;
 }
Beispiel #5
0
 private void eqpIDSelector_EqpIDSelectedEvent(object sender, ParentChildRelateEventArgs <string> e)
 {
     this.txtEQPID.Text = e.CustomObject;
 }