Beispiel #1
0
 public FormScheme(DataRow row, ADODB db)
 {
     tf_schemeId     = row.IsNull("tf_schemeId") ? "" : (string)row["tf_schemeId"];
     tf_windowWidth  = row.IsNull("tf_windowWidth") ? -1 : (int)row["tf_windowWidth"];
     tf_windowHeight = row.IsNull("tf_windowHeight") ? -1 : (int)row["tf_windowHeight"];
     tf_schemeLayout = row.IsNull("tf_schemeLayout") ? "" : (string)row["tf_schemeLayout"];
     tf_schemeGroups = FormGroups.getlstdata(tf_schemeId, db);
 }
Beispiel #2
0
    static public List <FormGroups> getlstdata(string id, ADODB db)
    {
        List <FormGroups> lst = null;
        DataTable         dt  = db.exec_dataset(FormGroups.getquerysql(id));

        if (dt != null)
        {
            lst = new List <FormGroups>();

            foreach (DataRow row in dt.Rows)
            {
                FormGroups obj = new FormGroups(row, db);
                lst.Add(obj);
            }
        }
        return(lst);
    }