/// <summary> /// 获取系统所需公共信息 /// </summary> public static void GetCommonInfos() { bllCompanyInfo bll = new bllCompanyInfo(); bll.GetSummaryData(false); //获取公司资料 DataTable dt = bll.SummaryTable; if (dt.Rows.Count > 0) _CompanyInfo = (tb_sys_CompanyInfo)DataConverter.DataRowToObject(dt.Rows[0], typeof(tb_sys_CompanyInfo)); else _CompanyInfo = new tb_sys_CompanyInfo(); }
/// <summary> /// 获取系统所需公共信息 /// </summary> public static void GetCommonInfos() { bllCompanyInfo bll = new bllCompanyInfo(); bll.GetSummaryData(false); //获取公司资料 DataTable dt = bll.SummaryTable; if (dt.Rows.Count > 0) { _CompanyInfo = (tb_sys_CompanyInfo)DataConverter.DataRowToObject(dt.Rows[0], typeof(tb_sys_CompanyInfo)); } else { _CompanyInfo = new tb_sys_CompanyInfo(); } }
private void frmCompanyInfo_Load(object sender, EventArgs e) { _BLL = new bllCompanyInfo(); //业务逻辑层 _BLL.GetSummaryData(true);//获取数据 _DetailGroupControl = gcDetailEditor; this.InitializeForm(); if (_FormMenuName != string.Empty) this._FunctionID = bllComDataBaseTool.GetFunctionID(this._FormMenuName); this.Tag = this._FunctionID; BindingSummaryEditor(_BLL.SummaryTable); //绑定输入控件 ButtonStateChanged(UpdateType.None); this.ShowDetailPage(true); tpSummary.Hide(); }