当前位置: 首页>>代码示例>>C++>>正文


C++ MessageBox::createInfoBox方法代码示例

本文整理汇总了C++中MessageBox::createInfoBox方法的典型用法代码示例。如果您正苦于以下问题:C++ MessageBox::createInfoBox方法的具体用法?C++ MessageBox::createInfoBox怎么用?C++ MessageBox::createInfoBox使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MessageBox的用法示例。


在下文中一共展示了MessageBox::createInfoBox方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: printDocument

void MainTabSaleItemController::printDocument()
{
    PrintSaleDocumentController *pc = new PrintSaleDocumentController(view->getTableView()->getSymbol());
    if(view->getTableView()->getSymbol() == "")
    {
        MessageBox *messageBox = new MessageBox();
        messageBox->createInfoBox("Zaznacz dokument do druku");
        delete messageBox;
    }
    else if(view->getTableView()->getSymbol().contains("FK"))
    {
        DocumentFK doc = fkService->getDocumentFK(view->getTableView()->getSymbol());
        pc->print(&doc);
    }
    else
    {
         DocumentZAL docZal;
         docZal= zalService->getDocumentZAL(view->getTableView()->getSymbol());
         if(docZal.getDocumentType().contains("RZL")||docZal.getDocumentType().contains("ZAL"))
         {
             pc->print(&docZal);
         }
         else
         {
             Invoice doc = invoiceService->getInvoice(view->getTableView()->getSymbol());
             pc->print(&doc);

         }
    }
    delete pc;
}
开发者ID:milczarekIT,项目名称:agila,代码行数:31,代码来源:MainTabSaleItemController.cpp

示例2: dialogDocumentEdit

void MainTabSaleItemController::dialogDocumentEdit()
{
    if(view->getTableView()->getSymbol() == "")
    {
        MessageBox *messageBox = new MessageBox();
        messageBox->createInfoBox("Zaznacz dokument do edycji");
        delete messageBox;
    }
    else if (view->getTableView()->getSymbol().contains("PA"))
    {
        DocumentPAController dialog(this,1);
        dialog.exec(view->getTableView()->getSymbol());
        documentTVModel->getDocuments();
    }
    else if (view->getTableView()->getSymbol().contains("FK"))
    {
        DocumentFKController dialog(this,1);
        dialog.exec(view->getTableView()->getSymbol());
        documentTVModel->getDocuments();
    }
    else if (view->getTableView()->getSymbol().section("/",0,0)=="FM")
    {
        DocumentFMController dialog(this,"FM",1);
        dialog.exec(view->getTableView()->getSymbol());
        documentTVModel->getDocuments();
    }

    else if (view->getTableView()->getSymbol().contains("FV")||view->getTableView()->getSymbol().contains("FMP")
             ||view->getTableView()->getSymbol().contains("PRO")||view->getTableView()->getSymbol().contains("PI"))
    {
        DocumentZAL doc;
        doc= zalService->getDocumentZAL(view->getTableView()->getSymbol());
         if(doc.getDocumentType().contains("RZL")||doc.getDocumentType().contains("ZAL"))
        {   DocumentZALController*dialog;

            if(doc.getDocumentType().contains("RZL"))
            dialog = new DocumentZALController(this,"RZL",1);
            else
            dialog = new DocumentZALController(this,"ZAL",1);

            dialog->exec(view->getTableView()->getSymbol());
            documentTVModel->getDocuments();
            delete dialog;
        }
        else
         {
        InvoiceController dialog(this,view->getTableView()->getSymbol().section("/",0,0),1);
        dialog.exec(view->getTableView()->getSymbol());
        documentTVModel->getDocuments();
         }
    }
}
开发者ID:milczarekIT,项目名称:agila,代码行数:52,代码来源:MainTabSaleItemController.cpp

示例3: dialogDocumentEdit

void MainTabOrderItemController::dialogDocumentEdit()
{
    if(view->getTableView()->getSymbol() == "")
    {
         MessageBox *messageBox = new MessageBox();
         messageBox->createInfoBox("Zaznacz dokument do edycji");
         delete messageBox;
    }
    else if(view->getTableView()->getSymbol().contains("ZD")||view->getTableView()->getSymbol().contains("ZK"))
    {
         OrderController dialog(this,view->getTableView()->getSymbol().section("/",0,0),1);
         dialog.exec(view->getTableView()->getSymbol());
         documentTVModel->getDocuments();
    }
}
开发者ID:milczarekIT,项目名称:agila,代码行数:15,代码来源:MainTabOrderItemController.cpp

示例4: printDocument

void MainTabOrderItemController::printDocument()
{
    PrintOrderDocumentController *pc = new PrintOrderDocumentController(view->getTableView()->getSymbol());
    if(view->getTableView()->getSymbol() == "")
    {
        MessageBox *messageBox = new MessageBox();
        messageBox->createInfoBox("Zaznacz dokument do druku");
        delete messageBox;
    }
    else
    {
        Order doc = orderService->getOrder(view->getTableView()->getSymbol());
        pc->print(&doc);
    }
    delete pc;
}
开发者ID:milczarekIT,项目名称:agila,代码行数:16,代码来源:MainTabOrderItemController.cpp

示例5: removeDocument

void MainTabSaleItemController::removeDocument()
{
    MessageBox *msgBox = new MessageBox();

    bool storeUpdate = false;

    if(view->getTableView()->getId()==-1)
    {
        msgBox->createInfoBox("Zaznacz dokument do usunięcia");
    }

    if(view->getTableView()->getSymbol().contains("FV")||view->getTableView()->getSymbol().contains("FMP")||view->getTableView()->getSymbol().contains("PRO")
        ||view->getTableView()->getSymbol().contains("PI")||view->getTableView()->getSymbol().contains("PA")||view->getTableView()->getSymbol().section("/",0,0)=="FM")
    {
        if(msgBox->createQuestionBox("Usuwanie dokumentu " +view->getTableView()->getSymbol())== MessageBox::YES)
        {

            if(invoiceService->getInvoice(view->getTableView()->getSymbol()).getStoreResult())
              {
                   if(msgBox->createQuestionBox("Usunięto dokument "+view->getTableView()->getSymbol(),"Cofnąć skutek magazynowy?")==MessageBox::YES)
                    storeUpdate=true;
              }
        invoiceService->removeInvoice(view->getTableView()->getSymbol(),storeUpdate);
        }
    }

    if(view->getTableView()->getSymbol().contains("FK"))
    {
        if( msgBox->createQuestionBox("Usuwanie dokumentu " +view->getTableView()->getSymbol())== MessageBox::YES)
        {

            if(fkService->getDocumentFK(view->getTableView()->getSymbol()).getStoreResult())
            {
                if(msgBox->createQuestionBox("Usunięto dokument "+view->getTableView()->getSymbol(),"Cofnąć skutek magazynowy?")==MessageBox::YES)
                  storeUpdate=true;
            }
        fkService->removeDocumentFK(view->getTableView()->getSymbol(),storeUpdate);
        }
    }

    delete msgBox;
    documentTVModel->getDocuments();
}
开发者ID:milczarekIT,项目名称:agila,代码行数:43,代码来源:MainTabSaleItemController.cpp


注:本文中的MessageBox::createInfoBox方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。