Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void WakeUpFormulaForm(DataRow row)
- {
- string expression = LibSysUtils.ToString(row["Remark"]);
- IErpClientService erpClientService = LibServiceProvider.TryGetService<IErpClientService>();
- if (erpClientService == null)
- {
- return;
- }
- IDataSourceModel dataSource = ModelManager.DataSourceManager.GetDataSource(base.ProgId);
- LibDataTable[] dataTablesStruct = ModelManager.DataSourceManager.GetDataTablesStruct(dataSource);
- SmartFormulaEventArgs smartFormulaArgs = SmartFormulaEventArgs.GetSmartFormulaArgs(base.ProgId, "SetFormula", expression, SyntaxViewState.Browse);//SetFormula DoFormProcedure 識別用tag
- smartFormulaArgs.Parser = new CommonDataTableComputer(base.FOrgId, dataSource, dataTablesStruct, 0, LibUcoSystem.Instance);
- smartFormulaArgs.SyntaxType = SyntaxType.Advance;
- smartFormulaArgs.ViewState = (this.IsBrowsing ? SyntaxViewState.Browse : SyntaxViewState.Edit);
- smartFormulaArgs.Option.SqlMode = false;
- smartFormulaArgs.ValidTableIndex = dataSource.DefineDataTables.Count - 1;
- erpClientService.SetSmartFormula(base.FormInstance, smartFormulaArgs);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement