private void bbi_Delete_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Delete, (int)DocumentType.Satis, AppMain.CompanyRecId)) { return; } SaleOwnerDTO oRow = (SaleOwnerDTO)gridView1.GetFocusedRow(); if (oRow != null) { if (mspTool.get_Question("Kayıt Silinecektir. Onaylıyor musunuz?")) { var result = _repository.Run <SaleService, ActionResponse <SaleOwnerDTO> >(x => x.Delete_Sale(oRow)); if (result.ResponseType != ResponseType.Ok) { XtraMessageBox.Show(result.Message); } else { do_refresh(dt_Date.DateTime); } } } }
private void do_edit() { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Update, (int)DocumentType.InvoiceList, AppMain.CompanyRecId)) { return; } InvoiceOwnerDTO oRow = (InvoiceOwnerDTO)gcv_Invoice.GetFocusedRow(); if (oRow != null) { InvoiceEdit frm = new InvoiceEdit(); frm.MdiParent = this.MdiParent; frm.invoice = invoice; frm._FormOpenType = FormOpenType.Edit; frm.RecId = oRow.RecId; frm.Show(); } }
private void btnAddNewCustomer_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Insert, (int)DocumentType.MusteriList, AppMain.CompanyRecId)) return; frmCustomerEdit frm = new frmCustomerEdit(); frm._FormOpenType = Msp.Infrastructure.FormOpenType.New; frm.Show(0); }
private void btnBankEntryAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Insert, (int)DocumentType.BankEntry, AppMain.CompanyRecId)) { return; } frmBankEntryEdit frm = new frmBankEntryEdit(); frm._FormOpenType = Msp.Infrastructure.FormOpenType.New; frm.Show(0); }
private void bbi_New_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Insert, (int)DocumentType.Company, AppMain.CompanyRecId)) { return; } FrmCompanyEdit _Form = new FrmCompanyEdit(); _Form._FormOpenType = Infrastructure.FormOpenType.New; _Form.Show(0); }
private void bbi_save_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Insert, (int)DocumentType.CurrentGroupDefinitions, AppMain.CompanyRecId)) { return; } if (oTool.get_Question("Kaydedilecektir Onaylıyor musunuz ?")) { gridView1.CloseEditor(); do_save(); } }
private void do_edit() { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Update, (int)DocumentType.Order, AppMain.CompanyRecId)) { return; } OrderOwnerDTO oRow = (OrderOwnerDTO)gcv_OrderList.GetFocusedRow(); if (oRow.IrsaliyeId > 0) { XtraMessageBox.Show("Kayıt İrsaliyeleştirilmiştir. İşlem Yapılamaz. Ön İzleme ile açılabilir...", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (oRow != null) { OrderEdit frm = new OrderEdit(); frm.MdiParent = this.MdiParent; frm._FormOpenType = FormOpenType.Edit; frm.RecId = oRow.RecId; frm.OrderType = orderType; frm.Show(); } }
private void btnRemCustomer_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Delete, (int)DocumentType.MusteriList, AppMain.CompanyRecId)) return; CustomersDTO oRow = (CustomersDTO)gcvCustomers.GetFocusedRow(); if (oRow != null) { if (get_Question("Kayıt Silinecektir. Onaylıyor musunuz?")) { var result = _repository.Run<CustomerService, ActionResponse<CustomersDTO>>(x => x.DeleteCostumers(oRow.id)); do_refresh(); } } }
public void do_edit() { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Update, (int)DocumentType.KasaHareketi, AppMain.CompanyRecId)) { return; } var oRow = (CaseMovementDTO)gridView1.GetFocusedRow(); if (oRow != null) { frmKasaHareketi frm = new frmKasaHareketi(); frm._FormOpenType = FormOpenType.Edit; frm.Show(oRow.RecId); } }
public void do_Edit() { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Update, (int)DocumentType.CariList, AppMain.CompanyRecId)) { return; } CTransactionsDTO Orow = (CTransactionsDTO)gcv_CurTrans.GetFocusedRow(); if (Orow != null) { frmCariEdit frm = new frmCariEdit(); frm._FormOpenType = Msp.Infrastructure.FormOpenType.Edit; frm.Show(Orow.CurID); } }
public void do_Edit() { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Update, (int)DocumentType.BankEntry, AppMain.CompanyRecId)) { return; } BankEntryDTO Orow = (BankEntryDTO)gcv_BankEntry.GetFocusedRow(); if (Orow != null) { frmBankEntryEdit frm = new frmBankEntryEdit(); frm._FormOpenType = Infrastructure.FormOpenType.Edit; frm.Show(Orow.bid); } }
public void do_Edit() { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Update, (int)DocumentType.Depot, AppMain.CompanyRecId)) { return; } DepotDTO Orow = (DepotDTO)gcv_Depot.GetFocusedRow(); if (Orow != null) { frmDepoEdit frm = new frmDepoEdit(); frm._FormOpenType = Infrastructure.FormOpenType.Edit; frm.Show(Orow.DID); } }
public void do_Edit() { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Update, (int)DocumentType.MusteriList, AppMain.CompanyRecId)) return; CustomersDTO Orow = (CustomersDTO)gcvCustomers.GetFocusedRow(); if (Orow != null) { frmCustomerEdit frm = new frmCustomerEdit(); frm._FormOpenType = Infrastructure.FormOpenType.Edit; frm.Show(Orow.id); } }
private void do_edit() { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Update, (int)DocumentType.Company, AppMain.CompanyRecId)) { return; } CompanyDTO oRow = (CompanyDTO)gcv_company.GetFocusedRow(); if (oRow != null) { FrmCompanyEdit _Form = new FrmCompanyEdit(); _Form._FormOpenType = Infrastructure.FormOpenType.Edit; _Form.Show(oRow.RecId); } }
private void btnRemoveDepot_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Delete, (int)DocumentType.Depot, AppMain.CompanyRecId)) { return; } DepotDTO oRow = (DepotDTO)gcv_Depot.GetFocusedRow(); if (oRow != null) { if (get_Question("Kayıt Silinecektir. Onaylıyor musunuz?")) { var result = _repository.Run <DepotService, ActionResponse <DepotDTO> >(x => x.DeleteDepot(oRow.DID)); do_refresh(); } } }
private void bbi_Delete_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { PaymentTypeDTO oRow = (PaymentTypeDTO)gridView1.GetFocusedRow(); if (oRow != null) { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Delete, (int)DocumentType.CurrentGroupDefinitions, AppMain.CompanyRecId)) { return; } if (oTool.get_Question("Kayıt Silinecektir. Onaylıyor musunuz?")) { var result = _repository.Run <DepotStockService, ActionResponse <CurrentGroupDefinitionsDTO> >(x => x.Delete__CurrentGroupDefinitions(oRow.RecId)); do_refresh(); } } }
private void btnRemCustomer_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Delete, (int)DocumentType.KasaHareketi, AppMain.CompanyRecId)) { XtraMessageBox.Show("Silme Yetkiniz Yoktur.", "", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } var oRow = (CaseMovementDTO)gridView1.GetFocusedRow(); if (oRow != null) { if (mspTool.get_Question("Kayıt Silinecektir. Onaylıyor musunuz?")) { var result = _repository.Run <CaseService, ActionResponse <CaseMovementDTO> >(x => x.Delete_Case(oRow)); do_refresh(); } } } catch (Exception ex) { } }
private void btnRemProduct_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Delete, (int)DocumentType.StockList, AppMain.CompanyRecId)) { return; } ProductDTO oRow = (ProductDTO)gcvProducts.GetFocusedRow(); if (oRow != null) { if (get_Question("Kayıt Silinecektir. Onaylıyor musunuz?")) { var result = _repository.Run <DepotStockService, ActionResponse <ProductDTO> >(x => x.DeleteProduct(oRow.PID)); if (result.ResponseType != ResponseType.Error) { if (AppMain.Products.Any(x => x.PID == oRow.PID)) { AppMain.Products.Remove(oRow); } } do_refresh(); } } }
private void bbi_Delete_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { PaymentTypeDTO oRow = (PaymentTypeDTO)gridView1.GetFocusedRow(); if (oRow != null) { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Delete, (int)DocumentType.PaymentType, AppMain.CompanyRecId)) { return; } if (oRow.Remark.Trim() == "Nakit" || oRow.Remark.Trim() == "Pos" || oRow.Remark.Trim() == "Pos & Nakit") { XtraMessageBox.Show("Silinemiycek Kayıtdır.", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } if (oTool.get_Question("Kayıt Silinecektir. Onaylıyor musunuz?")) { var result = _repository.Run <DepotStockService, ActionResponse <PaymentTypeDTO> >(x => x.DeletePayment(oRow.RecId)); do_refresh(); } } }