Beispiel #1
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            frmPowerAndLineList frmPL = new frmPowerAndLineList("05", ProjectID);
            if (frmPL.ShowDialog() == DialogResult.OK) {
                DataTable dataTable = frmPL.DT;
                for (int i = 0; i < dataTable.Rows.Count; i++) {
                    DataRow dr = dataTable.Rows[i];
                    string con = " where suid = '" + dr.ItemArray[0].ToString() + "'";
                    IList list = Services.BaseService.GetList("SelectPSPDEVByCondition", con);
                    if (dr.ItemArray[2].ToString() == "True" && list.Count > 0) {
                        listbranch.Add((PSPDEV)list[0]);
                    }

                }
            } else {
                return;
            }
        }
Beispiel #2
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            frmPowerAndLineList frmPL = new frmPowerAndLineList("05", ProjectID);

            if (frmPL.ShowDialog() == DialogResult.OK)
            {
                DataTable dataTable = frmPL.DT;
                for (int i = 0; i < dataTable.Rows.Count; i++)
                {
                    DataRow dr   = dataTable.Rows[i];
                    string  con  = " where suid = '" + dr.ItemArray[0].ToString() + "'";
                    IList   list = Services.BaseService.GetList("SelectPSPDEVByCondition", con);
                    if (dr.ItemArray[2].ToString() == "True" && list.Count > 0)
                    {
                        listbranch.Add((PSPDEV)list[0]);
                    }
                }
            }
            else
            {
                return;
            }
        }