|
|
|
@ -134,6 +134,7 @@ class ModuleAllOrders(orders.ModuleOrders):
|
|
|
|
|
return n + ":" + str(a_Item[parent_field_id]), k, a |
|
|
|
|
|
|
|
|
|
async def OnChangeField(self, a_Field, a_ItemID, a_ItemData, a_EditUserID): |
|
|
|
|
super().OnChangeField(a_Field, a_ItemID, a_ItemData, a_EditUserID) |
|
|
|
|
if a_Field.m_Destiny == bd_table.TableFieldDestiny.STATUS: |
|
|
|
|
key_field = self.m_Table.GetFieldNameByDestiny(bd_table.TableFieldDestiny.KEY) |
|
|
|
|
item = bd_item.GetBDItemsTemplate(self.m_Bot, self.m_Table.GetName(), key_field)(a_ItemID) |
|
|
|
@ -142,10 +143,10 @@ class ModuleAllOrders(orders.ModuleOrders):
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
item = item[0] |
|
|
|
|
parent_field_id = self.m_Table.GetFieldIDByDestiny(bd_table.TableFieldDestiny.PARENT_ID) |
|
|
|
|
user_field_id = self.m_Table.GetFieldIDByDestiny(bd_table.TableFieldDestiny.USER_ID) |
|
|
|
|
status_field_id = self.m_Table.GetFieldIDByDestiny(bd_table.TableFieldDestiny.STATUS) |
|
|
|
|
print('OnChangeField', item, parent_field_id, status_field_id) |
|
|
|
|
owner_id = item[parent_field_id] |
|
|
|
|
print('OnChangeField', item, user_field_id, status_field_id) |
|
|
|
|
owner_id = item[user_field_id] |
|
|
|
|
new_status = item[status_field_id] |
|
|
|
|
msg = self.GetMessage(mod_table_operate.NotificationMessage(new_status)) |
|
|
|
|
if not msg: |
|
|
|
|