def __init__(self, parent):
        EditTelegramDialogBase.__init__(self, parent)
        self.ListDepartmentSendTo = []
        self.ListDepartmentCopyTo = []
        self.ListDepartmentCopyReport = []

        #自动生成电报编号
        stringMaxTelegramId = Utility.GetMaxTelegramId()
        self.textCtrl_Telegram_Id.Clear()
        self.textCtrl_Telegram_Id.AppendText(stringMaxTelegramId)
        self.textCtrl_Telegram_Id.SetEditable(False)

        #自动生成电报文号
        stringMaxDocumentId = Utility.GetMaxDocumentId()
        self.textCtrl_Document_Id.Clear()
        self.textCtrl_Document_Id.AppendText(stringMaxDocumentId)
        self.textCtrl_Document_Id.SetEditable(False)

        #填充发电部门
        stringMyDepartmentName = Utility.GetMyDepartmentName()
        self.comboBox_DepartmentName.SetValue(stringMyDepartmentName)
    def OnButtonResetClick(self, event):
        # 清空发电编号
        self.textCtrl_Telegram_Id.Clear()
        stringMaxTelegramId = Utility.GetMaxTelegramId()
        self.textCtrl_Telegram_Id.AppendText(stringMaxTelegramId)

        #清空发电文号   !!!要重新载入自动生成的编号
        self.textCtrl_Document_Id.Clear()
        stringMaxDocumentId = Utility.GetMaxDocumentId()
        self.textCtrl_Document_Id.AppendText(stringMaxDocumentId)

        #清空发电时间
        self.textCtrl_DateTime.Clear()

        #清空列表
        self.ListDepartmentSendTo = []
        self.ListDepartmentCopyTo = []
        self.ListDepartmentCopyReport = []

        self.FillSendToListBoxFromListDepartmentSendTo()
        self.FillCopyToListBoxFromListDepartmentCopyTo()
        self.FillCopyReportListBoxFromListDepartmentCopyReport()