private void btnShowDirectCost_Click(object sender, EventArgs e)
        {
            _rownIndex = grvData.FocusedRowHandle;
            int parentID = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colParentID));

            if (parentID == 0)
            {
                return;
            }

            int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colDetailID));

            if (id == 0)
            {
                return;
            }

            frmDirectCost frm = new frmDirectCost();

            //frm.C_QuotationDetailID = id;
            frm.C_QuotationID = Quotation.ID;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                if (frm.IsSaved)
                {
                    btnSave_Click(null, null);
                }
            }
        }
        private void btnShowDirectCost_Click(object sender, EventArgs e)
        {
            int id = TextUtils.ToInt(treeData.FocusedNode.GetValue(colDetailID));

            if (id == 0)
            {
                return;
            }
            C_QuotationDetailModel item = (C_QuotationDetailModel)C_QuotationDetailBO.Instance.FindByPK(id);

            frmDirectCost frm = new frmDirectCost();

            frm.QuotationDetail = item;
            frm.C_QuotationID   = Quotation.ID;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                if (frm.IsSaved)
                {
                    btnSave_Click(null, null);
                }
            }
        }