예제 #1
0
        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();
        }
예제 #2
0
        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();
        }
예제 #3
0
        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();
        }
예제 #4
0
        //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();
        }