protected virtual void FmB_Load(object sender, System.EventArgs e) { #region 加载窗体 this.tabPage1.Text = this.lblModuleTitle.Text = this.Text; BusinessInfoDAL busiDAL = new BusinessInfoDAL(); BusinessInfo busiInfo = busiDAL.GetModel(ModuleName); this.m_strPKM = busiInfo.MPK; this.m_strPKD = busiInfo.DPK; this.m_strFKD = busiInfo.DFK; this.m_strdvMTableName = busiInfo.MView; this.m_strdvDTableName = busiInfo.DView; if (string.IsNullOrEmpty(MainID)) { this.MainID = GetMainID(MainIDType.Last); } this.InitDGDTabStyle(); //this.GetMDBusiData(); while (!this.IsHandleCreated) { ; } Thread t = new Thread(DoGetData); t.IsBackground = true; t.Start(); #endregion }
/// <summary> /// 构造函数 /// </summary> /// <param name="moduleName">模块名称</param> /// <param name="isSelectD">是否选择子表记录</param> /// <param name="isMutiSelectD">子表记录是否多选</param> public FmRMDList(string moduleName, bool isSelectD, bool isMutiSelectD) : this() { this.InitGridM(dgMain); BusinessInfoDAL busiDAL = new BusinessInfoDAL(); BusinessInfo busiInfo = busiDAL.GetModel(moduleName); this.mpk = busiInfo.MPK; this.dpk = busiInfo.DPK; this.fk = busiInfo.DFK; this.mViewName = busiInfo.MView; this.dViewName = busiInfo.DView; this._isSelectD = isSelectD; this._isMutiSelectD = isMutiSelectD; }
protected bool footerVisible = true; //合计行是否可见 #endregion protected void Fm_Load(object sender, EventArgs e) { this.dBegin = DateTime.Today.AddMonths(-12).ToString(); this.dEnd = DateTime.Today.ToString(); //滚动时重新绘制合计字段 if (footerVisible == true) { pnlFooter.Visible = true; DGX.Scroll += new ScrollEventHandler(scroll_Changed); } else { pnlFooter.Visible = false; } if (!string.IsNullOrEmpty(moduleName)) { BusinessInfoDAL dal = new BusinessInfoDAL(); BusinessInfo busiInfo = dal.GetModel(moduleName); } InitDGX(); }