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