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

            return(rCount);
        }