Example #1
0
BOOL CDialog_Material::OnInitDialog()
{
	CDialog::OnInitDialog();

	if(!m_date.GetId().empty())
	{
		if(m_date.m_unit.IsEmpty())
		{
			CControl_material tmp;
			m_date = tmp.Search_byId(m_date.GetId());
		}
		m_name_ctrl.SetWindowText(m_date.m_name);
		m_modal_ctrl.SetWindowText(m_date.m_modal);
		m_manufacturer_ctrl.SetWindowText(m_date.m_manufacturer);
		m_unit_ctrl.SetWindowText(m_date.m_unit);
		m_price_ctrl.SetWindowText(m_date.m_price);
		m_detail_ctrl.SetWindowText(m_date.m_detail);
	}
	return FALSE;
}