Exemplo n.º 1
0
 private void btnAddProtuctClick(object sender, RoutedEventArgs e)
 {
     if (!CheckBeforeAddDoc())
     {
         return;
     }
     ViewDataContext.AddDoc(GetManipulationConfig(false), () => new tblDocumentCommon[] { new tblDocumentProduct(), new tblDocumentSalesReceipt() });
 }
Exemplo n.º 2
0
        //private void AddService(tblManipulation manipulation)
        //{
        //    tblDocumentService xDoc = new tblDocumentService();
        //    ViewDataContext.PrepareDoc(xDoc, manipulation);
        //    FViewDataContext.Documents.Add(xDoc);
        //}

        //private void AddProuctDoc(tblManipulation manipulation)
        //{
        //    tblDocumentProduct xDoc = new tblDocumentProduct();
        //    ViewDataContext.PrepareDoc(xDoc, manipulation);
        //    FViewDataContext.Documents.Add(xDoc);
        //}

        //private void AddProuctSalesReceipt(tblManipulation manipulation)
        //{
        //    tblDocumentSalesReceipt xDoc = new tblDocumentSalesReceipt();
        //    ViewDataContext.PrepareDoc(xDoc, manipulation);
        //    FViewDataContext.Documents.Add(xDoc);
        //}


        private void btnAddServiceClick(object sender, RoutedEventArgs e)
        {
            if (!CheckBeforeAddDoc())
            {
                return;
            }
            ViewDataContext.AddDoc(GetManipulationConfig(true), () => new tblDocumentCommon[] { new tblDocumentService() });
        }