Exemplo n.º 1
0
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight("SASS_PROJECT_DELETE"))
            {
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteAPI, rc.ToString(), "DeleteProject");

            return(rCount);
        }
Exemplo n.º 2
0
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight("SALE_QUOTATION_DELETE"))
            {
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteAuxilaryDoc, rc.ToString());

            return(rCount);
        }
Exemplo n.º 3
0
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight(getPermissionKey("D", docType)))
            {
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteAPI, rc.ToString(), "DeleteCashDoc");

            return(rCount);
        }
Exemplo n.º 4
0
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight("BRANCH_CONFIG_DELETE"))
            {
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteBranchConfig, rc.ToString());

            return(rCount);
        }
Exemplo n.º 5
0
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight("GENERAL_MASTER_DELETE"))
            {
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteMasterRef, rc.ToString());

            return(rCount);
        }
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight(getAccessRightDelete()))
            {
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteAPI, rc.ToString(), "DeleteTaxDoc");

            return(rCount);
        }
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight("BILL_CORRECTION_DELETE"))
            {
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteLogImportIssue, rc.ToString());

            return(rCount);
        }
Exemplo n.º 8
0
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight("SASS_IMAGE_DELETE"))
            {
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteAPI, rc.ToString(), "SassDeleteDiskImage");

            return(rCount);
        }
Exemplo n.º 9
0
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight("PROMOTION_BILLSIM_DELETE"))
            {
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteBillSimulate, rc.ToString());

            return(rCount);
        }
Exemplo n.º 10
0
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight("CASH_XFER_DELETE"))
            {
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteAPI, rc.ToString(), "DeleteCashDoc");

            return(rCount);
        }
Exemplo n.º 11
0
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight("HR_EMPLOYEE_DELETE"))
            {
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteEmployee, rc.ToString());

            return(rCount);
        }
Exemplo n.º 12
0
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight("PURCHASE_PO_DELETE"))
            {
                //Need to check for access right per document type
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteAuxilaryDoc, rc.ToString());

            return(rCount);
        }
Exemplo n.º 13
0
        private void cmdDelete_Click(object sender, RoutedEventArgs e)
        {
            if (!CHelper.VerifyAccessRight("INVENTORY_ITEM_DELETE"))
            {
                return;
            }

            int rCount = CHelper.DeleteSelectedItems(itemsSourceGrid, OnixWebServiceAPI.DeleteInventoryItem, rowCount.ToString());

            if (rCount > 0)
            {
                rowCount = rCount;
                CMasterReference.Instance.LoadItemCategoriesTree();
            }
            lblTotal.Content = CUtil.FormatInt((rowCount).ToString());
        }
Exemplo n.º 14
0
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight("CASH_ACCOUNT_DELETE"))
            {
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteAPI, rc.ToString(), "DeleteCashAccount");

            if (rCount > 0)
            {
                refreshCashAccount();
            }

            return(rCount);
        }
Exemplo n.º 15
0
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight("SASS_SERVICE_DELETE"))
            {
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteAPI, rc.ToString(), "SassDeleteMicroService");

            if (rCount > 0)
            {
                refreshLocation();
            }

            return(rCount);
        }
Exemplo n.º 16
0
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight("INVENTORY_ITEM_DELETE"))
            {
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteAPI, rc.ToString(), "DeleteInventoryItem");

            if (rCount > 0)
            {
                CMasterReference.Instance.LoadItemCategoriesTree();
            }

            return(rCount);
        }
Exemplo n.º 17
0
        public override int DeleteData(int rc)
        {
            if (!CHelper.VerifyAccessRight("INVENTORY_LOCATION_DELETE"))
            {
                return(rc);
            }

            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteLocation, rc.ToString());

            if (rCount > 0)
            {
                refreshLocation();
            }

            return(rCount);
        }
Exemplo n.º 18
0
        private void cmdDelete_Click(object sender, RoutedEventArgs e)
        {
            if (!CHelper.VerifyAccessRight("GENERAL_MASTER_DELETE"))
            {
                return;
            }

            int rCount = CHelper.DeleteSelectedItems((ObservableCollection <MBaseModel>)lsvMain.ItemsSource, OnixWebServiceAPI.DeleteMasterRef, rowCount.ToString());

            if (!rCount.Equals(0))
            {
                rowCount = rCount;
            }
            rowCount = rCount;
            refreshMasterRef();
        }
Exemplo n.º 19
0
        private void CmdDelete_Click(object sender, RoutedEventArgs e)
        {
            if (!CHelper.VerifyAccessRight("HR_ORGCHART_DELETE"))
            {
                return;
            }

            int rowCount = vw.CurrentItemSource.Count;

            CHelper.DeleteSelectedItems((ObservableCollection <MBaseModel>)lsvMain.ItemsSource, OnixWebServiceAPI.DeleteAPI, rowCount.ToString(), "DeleteVirtualDirectory");

            CmdSearch_Click(sender, e);

            CMasterReference.LoadEmployeeDepartments();
            CMasterReference.LoadEmployeePositions();
        }
Exemplo n.º 20
0
        public override int DeleteData(int rc)
        {
            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteUser, rc.ToString());

            return(rCount);
        }