|
@@ -1519,7 +1519,7 @@ void CSettingPageUI::HandleClickMsg(TNotifyUI& msg)
|
|
|
else if (name == _T("setting_chufang_printer_item_update_btn"))
|
|
else if (name == _T("setting_chufang_printer_item_update_btn"))
|
|
|
{
|
|
{
|
|
|
CListUI* pPrinterList = static_cast<CListUI*>(this->FindSubControl(_T("setting_chufang_printer_list")));
|
|
CListUI* pPrinterList = static_cast<CListUI*>(this->FindSubControl(_T("setting_chufang_printer_list")));
|
|
|
- CListContainerElementUI* pEle = static_cast<CListContainerElementUI*>(msg.pSender->GetParent()->GetParent()->GetParent());
|
|
|
|
|
|
|
+ CListContainerElementUI* pEle = static_cast<CListContainerElementUI*>(msg.pSender->GetParent()->GetParent());
|
|
|
std::wstring date = pEle->GetCustomAttribute(L"date");
|
|
std::wstring date = pEle->GetCustomAttribute(L"date");
|
|
|
CChufangSettingWnd* pChufangFrame = new CChufangSettingWnd(2);
|
|
CChufangSettingWnd* pChufangFrame = new CChufangSettingWnd(2);
|
|
|
pChufangFrame->SetPrinterDate(CLewaimaiString::UnicodeToUTF8(date));
|
|
pChufangFrame->SetPrinterDate(CLewaimaiString::UnicodeToUTF8(date));
|
|
@@ -1604,7 +1604,7 @@ void CSettingPageUI::HandleClickMsg(TNotifyUI& msg)
|
|
|
else if (name == _T("setting_chufang_printer_item_delete_btn"))
|
|
else if (name == _T("setting_chufang_printer_item_delete_btn"))
|
|
|
{
|
|
{
|
|
|
CListUI* pPrinterList = static_cast<CListUI*>(this->FindSubControl(_T("setting_chufang_printer_list")));
|
|
CListUI* pPrinterList = static_cast<CListUI*>(this->FindSubControl(_T("setting_chufang_printer_list")));
|
|
|
- CListContainerElementUI* pEle = static_cast<CListContainerElementUI*>(msg.pSender->GetParent()->GetParent()->GetParent());
|
|
|
|
|
|
|
+ CListContainerElementUI* pEle = static_cast<CListContainerElementUI*>(msg.pSender->GetParent()->GetParent());
|
|
|
std::wstring date = pEle->GetCustomAttribute(L"date");
|
|
std::wstring date = pEle->GetCustomAttribute(L"date");
|
|
|
//获得了ID,这个时候从内存和数据库中分别删除对应的记录
|
|
//获得了ID,这个时候从内存和数据库中分别删除对应的记录
|
|
|
CSetting::GetInstance()->DelChufangPrinter(CLewaimaiString::UnicodeToUTF8(date));
|
|
CSetting::GetInstance()->DelChufangPrinter(CLewaimaiString::UnicodeToUTF8(date));
|