protected override void GridSelected(object Data) { BaseWinFramework.SingleEntityForm.ShowView( BaseWinFramework.GetModuleName(typeof(DocJurnal)), "NoJurnal=@0", new FieldParam("0", (string) ((DataRow)Data)["NoJurnal"])); }
public EntityForm(Type FormType) { _Dp = BaseFramework.GetDefaultDp(FormType.Assembly); this.FormType = FormType; DoBrowseData = ShowTabular; this.ModuleName = BaseWinFramework.GetModuleName(FormType); this._DataFilter = string.Empty; }
public EntityForm(Type FormType, Type FilterFormType, string DataFilter) { Type tp = FormType ?? FilterFormType; _Dp = BaseFramework.GetDefaultDp(tp.Assembly); this.FormType = FormType; DoBrowseData = ShowTabular; this.ModuleName = BaseWinFramework.GetModuleName( FormType ?? FilterFormType); this._DataFilter = DataFilter; this.FilterFormType = FilterFormType; }
private void noDokSumberButtonEdit_ButtonClick(object sender, ButtonPressedEventArgs e) { Jurnal Jr = (Jurnal)jurnalBindingSource.DataSource; if (!Jr.Internal) { return; } if (Jr.JenisDokSumber == "Jurnal Pembalik") { BaseWinFramework.SingleEntityForm.ShowView( BaseWinFramework.GetModuleName(GetType()), "NoJurnal=" + Jr.FormatSqlValue( Jr.NoDokSumber, DataType.VarChar)); } else { BaseWinFramework.SingleEntityForm.ShowViewWithKey( Jr.JenisDokSumber, Jr.NoDokSumber); } }
public frmDocument(Type EntityControlType) { InitializeComponent(); EntityCtrl = (Control)BaseFactory .CreateInstance(EntityControlType); XtraForm Frm = EntityCtrl as XtraForm; if (Frm != null) { Frm.Dock = DockStyle.Fill; Frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; Frm.TopLevel = false; Frm.Parent = panelControl1; if (Frm.WindowState == FormWindowState.Maximized) { Frm.WindowState = FormWindowState.Normal; WindowState = FormWindowState.Maximized; } Frm.Show(); } else { panelControl1.Controls.Add(EntityCtrl); } EntityCtrl.Dock = DockStyle.Fill; EntityCtrl.TabIndex = 0; ((IEntityControl)EntityCtrl).InitNavigator(uiNavigator1); Type EntityType = uiNavigator1.BindingSource.DataSource.GetType(); if (!EntityType.IsSubclassOf(typeof(ParentEntity))) { EntityType = ((Type)uiNavigator1.BindingSource.DataSource) .UnderlyingSystemType; object DataSource = BaseFactory.CreateInstance(EntityType); uiNavigator1.BindingSource.DataSource = DataSource; } if (Frm != null && Frm.Text.Length > 0) { Text = Frm.Text; } else { Text = BaseWinFramework.GetModuleName(EntityControlType); } if (Text.Length == 0 && EntityType != null) { Text = BaseUtility.SplitName(EntityType.Name); } if (BaseWinFramework.MdiParent == null && ActiveForm != null && !ActiveForm.Modal) { PrevForm = ActiveForm; PrevForm.Hide(); } }