void CInvWasteWin::OnButton1(int iEvent, unsigned char * pEventData, int iDataLen) { UINT8 ret=SUCCESS; //检查是否满足空白条件 // ret=INVM_CheckWaste(); // DBG_PRINT(("ret= %u",ret)); // if (ret !=SUCCESS) // { // INVM_ErrMsgBox(ret); // return ; // } //空白作废 ret =INVM_InvWasteProc(); DBG_PRINT(("ret= %u",ret )); if (ret != SUCCESS) { INVM_ErrMsgBox(ret); DBG_PRINT(("发票作废失败")); return; } CaMsgBox::ShowMsg("发票作废成功"); DBG_PRINT(("发票作废成功")); DoActive(); //ChangeWin(INV_WASTE_MENU); //返回发票作废界面 return; }
//-------------------------------------------------------------------------------------------------------------------- //空白发票作废对应的Button1函数 //-------------------------------------------------------------------------------------------------------------------- void CGInvLabelWin::InvBlankWasteBtn1() { UINT8 ret=SUCCESS; //空白作废 ret =INVM_InvWasteProc(); DBG_PRINT(("ret= %u",ret )); if (ret != SUCCESS) { INVM_ErrMsgBox(ret); DBG_PRINT(("发票作废失败")); return; } CaMsgBox::ShowMsg("发票作废成功"); DBG_PRINT(("发票作废成功")); DoActive();//刷新屏幕显示信息 return; }