private void tsAddNew_Click(object sender, EventArgs e) { if (lookUpFicheType.EditValue == null) { return; } Manp_FichesNew manp = new Manp_FichesNew(); manp.DocumentType = currentDocumentMaster; manp.IsEditMode = true; manp.ShowDialog(); RefreshData(); }
void openForViewOnly() { object objCurrentId = gvData.GetFocusedRowCellValue("Id"); if (objCurrentId == null) { return; } int CurrentId = Convert.ToInt32(objCurrentId); Manp_FichesNew manp = new Manp_FichesNew(); manp.Id = CurrentId; manp.ShowDialog(); RefreshData(); }
private void tsModify_Click(object sender, EventArgs e) { object objCurrentId = gvData.GetFocusedRowCellValue("Id"); if (objCurrentId == null) { return; } int CurrentId = Convert.ToInt32(objCurrentId); Manp_FichesNew manp = new Manp_FichesNew(); manp.Id = CurrentId; manp.IsEditMode = true; manp.ShowDialog(); RefreshData(); }
//btnCreateInvoice void openForInvoicing() { object objCurrentId = gvFichesOfProc.GetFocusedRowCellValue("Id"); if (objCurrentId == null) { return; } int CurrentId = Convert.ToInt32(objCurrentId); //FicheMasterView fmv = (FicheMasterView)gvData.GetFocusedRow(); //if (fmv.DocTypeId != 1) return; Manp_FichesNew manp = new Manp_FichesNew(); manp.Id = CurrentId; manp.IsEditMode = true; manp.CreateInvoiceFromOrderFiche = true; manp.ShowDialog(); //RefreshData(); }