private bool pr__read(wcl_db_adapter.cDBRow c_row) { bool b_rc = true; try { this.m_i_panel_id = Int32.Parse(c_row.p_h_fields[cConstants.m_s_field__panel_id].ToString()); this.m_s_panel_name = c_row.p_h_fields[cConstants.m_s_field__panel_name].ToString(); this.m_i_panel_company_id = Int32.Parse(c_row.p_h_fields[cConstants.m_s_field__panel_company_id].ToString()); this.m_s_panel_company_desc = c_row.p_h_fields[cConstants.m_s_field__panel_company_desc].ToString(); this.m_dl_panel_latitude = Double.Parse(c_row.p_h_fields[cConstants.m_s_field__panel_latitude].ToString()); this.m_dl_panel_longitude = Double.Parse(c_row.p_h_fields[cConstants.m_s_field__panel_longitude].ToString()); this.m_s_panel_location = c_row.p_h_fields[cConstants.m_s_field__panel_location].ToString(); this.m_s_panel_address = c_row.p_h_fields[cConstants.m_s_field__panel_address].ToString(); this.m_s_panel_street = c_row.p_h_fields[cConstants.m_s_field__panel_street].ToString(); this.m_s_panel_sub_place = c_row.p_h_fields[cConstants.m_s_field__panel_sub_place].ToString(); this.m_s_panel_main_place = c_row.p_h_fields[cConstants.m_s_field__panel_main_place].ToString(); this.m_s_panel_province = c_row.p_h_fields[cConstants.m_s_field__panel_province].ToString(); this.m_s_panel_country = c_row.p_h_fields[cConstants.m_s_field__panel_country].ToString(); this.m_s_panel_country_code = c_row.p_h_fields[cConstants.m_s_field__panel_country_code].ToString(); this.m_dt_timestamp = (DateTime)c_row.p_h_fields[cConstants.m_s_field__timestamp]; } catch (Exception) { b_rc = false; System.Diagnostics.Debugger.Break(); } finally { } return(b_rc); }
private bool pr__read_user(List <wcl_db_adapter.cDBRow> lst_rows) { bool b_rc = true; wcl_db_adapter.cDBRow c_row = null; try { c_row = new cDBRow(); c_row = lst_rows[0]; this.m_i_user_id = Int32.Parse(c_row.p_h_fields[cUser.s_sta_user_id].ToString()); this.m_s_user_alias = c_row.p_h_fields[cUser.s_sta_user_alias].ToString(); this.m_s_user_name = c_row.p_h_fields[cUser.s_sta_user_name].ToString(); this.m_s_user_surname = c_row.p_h_fields[cUser.s_sta_user_surname].ToString(); this.m_s_user_company = c_row.p_h_fields[cUser.s_sta_user_company].ToString(); this.m_s_user_email = c_row.p_h_fields[cUser.s_sta_user_email].ToString(); this.m_s_user_password = c_row.p_h_fields[cUser.s_sta_user_password].ToString(); } catch (Exception ex) { b_rc = false; System.Diagnostics.Debugger.Break(); } finally { } return(b_rc); }
public bool pb__set_user(wcl_db_adapter.cDBRow c_row) { bool b_rc = true; try { this.m_i_user_id = Int32.Parse(c_row.p_h_fields[cConstants.m_s_field__user_alias].ToString()); this.m_s_user_alias = c_row.p_h_fields[cConstants.m_s_field__user_alias].ToString(); this.m_s_user_name = c_row.p_h_fields[cConstants.m_s_field__user_name].ToString(); this.m_s_user_surname = c_row.p_h_fields[cConstants.m_s_field__user_surname].ToString(); this.m_s_user_company = c_row.p_h_fields[cConstants.m_s_field__user_company].ToString(); this.m_s_user_email = c_row.p_h_fields[cConstants.m_s_field__user_email].ToString(); this.m_s_user_password = c_row.p_h_fields[cConstants.m_s_field__user_password].ToString(); this.m_b_user_registered = true; } catch (Exception) { b_rc = false; System.Diagnostics.Debugger.Break(); } finally { } return(b_rc); }
public bool pb__read(wcl_db_adapter.cDBRow c_row) { bool b_rc = true; try { System.Diagnostics.Debugger.Break(); b_rc = b_rc && this.pr__read(c_row); } catch (Exception) { b_rc = false; System.Diagnostics.Debugger.Break(); } finally { } return(b_rc); }
public cPanel(wcl_db_adapter.cDBMySQLAdapter db_adapter, wcl_db_adapter.cDBRow c_row) { bool b_rc = true; try { //System.Diagnostics.Debugger.Break(); b_rc = b_rc && this.pr__init_db_adapter(db_adapter); b_rc = b_rc && this.pr__read(c_row); } catch (Exception) { b_rc = false; System.Diagnostics.Debugger.Break(); } finally { } }