Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }
        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);
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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());
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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();
        }
Esempio 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();
        }
Esempio n. 20
0
        public override int DeleteData(int rc)
        {
            int rCount = CHelper.DeleteSelectedItems(itemSources, OnixWebServiceAPI.DeleteUser, rc.ToString());

            return(rCount);
        }