|
@@ -4,43 +4,46 @@
|
|
|
#include"ant.h"
|
|
|
|
|
|
|
|
|
-void module_meta_date_changed::deal_call_edit_vehicle(int id, EDIT_TYPE_ID edit_type_id)
|
|
|
+void module_meta_date_changed::deal_call_edit_vehicle(int64_t id64, EDIT_TYPE_ID edit_type_id)
|
|
|
{
|
|
|
if(ET_INSERT == edit_type_id || ET_UPDATE == edit_type_id)
|
|
|
{
|
|
|
- card_list::instance()->init_vehicle(id);
|
|
|
+ card_list::instance()->init_vehicle(id64);
|
|
|
}
|
|
|
else if(ET_DELETE == edit_type_id)
|
|
|
{
|
|
|
- remove_card(static_cast<uint32_t>(id), CT_VEHICLE);
|
|
|
+ auto str = tool_other::to13str(id64);
|
|
|
+
|
|
|
+ remove_card(tool_other::id64_to_id(str), tool_other::id64_to_type(str));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-void module_meta_date_changed::deal_call_edit_staff(int id, EDIT_TYPE_ID edit_type_id)
|
|
|
+void module_meta_date_changed::deal_call_edit_staff(int64_t id64, EDIT_TYPE_ID edit_type_id)
|
|
|
{
|
|
|
if(ET_INSERT == edit_type_id || ET_UPDATE == edit_type_id)
|
|
|
{
|
|
|
- card_list::instance()->init_staffer(id);
|
|
|
+ card_list::instance()->init_staffer(id64);
|
|
|
}
|
|
|
else if(ET_DELETE == edit_type_id)
|
|
|
{
|
|
|
- remove_card(static_cast<uint32_t>(id), CT_PERSON);
|
|
|
+ auto str = tool_other::to13str(id64);
|
|
|
+
|
|
|
+ remove_card(tool_other::id64_to_id(str), tool_other::id64_to_type(str));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-void module_meta_date_changed::deal_call_edit_card(int id64, EDIT_TYPE_ID edit_type_id)
|
|
|
+void module_meta_date_changed::deal_call_edit_card(int64_t id64, EDIT_TYPE_ID edit_type_id)
|
|
|
{
|
|
|
std::string card_id64_str = tool_other::to13str(static_cast<uint64_t>(id64));
|
|
|
int type = tool_other::id64_to_type(card_id64_str);
|
|
|
- int id = static_cast<int32_t>(tool_other::id64_to_id(card_id64_str));
|
|
|
|
|
|
- if(CT_PERSON==type)
|
|
|
+ if(tool_other::is_person(type))
|
|
|
{
|
|
|
- deal_call_edit_staff(id, edit_type_id);
|
|
|
+ deal_call_edit_staff(id64, edit_type_id);
|
|
|
}
|
|
|
- else if(CT_VEHICLE==type)
|
|
|
+ else if(tool_other::is_vehicle(type))
|
|
|
{
|
|
|
- deal_call_edit_vehicle(id, edit_type_id);
|
|
|
+ deal_call_edit_vehicle(id64, edit_type_id);
|
|
|
}
|
|
|
else
|
|
|
{
|