public override void OnAddNew() { base.OnAddNew(); MAS120_SalesUnitPriceMaster form = new MAS120_SalesUnitPriceMaster(); if (form.ShowDialog(this) == DialogResult.OK) { LoadData(false); } }
private void OpenSalesUnitPriceMaster() { if (!ActivePermission.Edit) { return; } if (shtView.RowCount <= 0) { return; } string strMasterNo = shtView.GetValue(shtView.ActiveRowIndex, (int)eColView.MASTER_NO).ToString(); DateTime dtmStartEffDate = Convert.ToDateTime(shtView.GetValue(shtView.ActiveRowIndex, (int)eColView.START_EFFECTIVE_DATE)); string strCurrency = shtView.GetValue(shtView.ActiveRowIndex, (int)eColView.CURRENCY).ToString(); MAS120_SalesUnitPriceMaster form = new MAS120_SalesUnitPriceMaster(strMasterNo, dtmStartEffDate, strCurrency); if (form.ShowDialog(null) == DialogResult.OK) { LoadData(false); } }