private void _BuilderControl_Toolbar1(IUFContainer container) { IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container, "Toolbar1", true, true, "1", 992, 28, 0, 0, 1, 1, "100"); this.Toolbar1 = _Toolbar; ///foreach Toolbar下的所有控件,增加到此容器 this.BtnNew = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnNew", "True", "True", 35, 28, "1", "N", true, false, "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "5962bf17-4ea0-49b0-823c-03c83fabe345"); UIControlBuilder.SetButtonAccessKey(this.BtnNew); this.BtnNew.UIModel = this.Model.ElementID; this.BtnNew.Action = "OnNew"; this.BtnDelete = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 28, "2", "R", true, false, "0467218f-229b-4954-b2d4-3c5976467f76", "0467218f-229b-4954-b2d4-3c5976467f76", "2a6084cb-d0f5-487f-ba43-f07f2ac930ec"); UIControlBuilder.SetButtonAccessKey(this.BtnDelete); this.BtnDelete.UIModel = this.Model.ElementID; this.BtnDelete.Action = "OnDelete"; _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter()); this.BtnOutPut = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutPut", "True", "True", 35, 28, "4", "O", true, false, "688fd549-5a92-49cc-8072-6d5377f6409a", "688fd549-5a92-49cc-8072-6d5377f6409a", "e7f264e4-dd61-4360-ba0c-91d4ab1abb2c"); UIControlBuilder.SetButtonAccessKey(this.BtnOutPut); this.BtnOutPut.UIModel = this.Model.ElementID; this.BtnOutPut.Action = "OnOutPut"; this.BtnPrint = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "True", "True", 35, 28, "5", "P", true, false, "27b5c615-cde5-458c-be74-833317249568", "27b5c615-cde5-458c-be74-833317249568", "4dc7e8fe-33eb-4c0c-b49b-4d9783021559"); UIControlBuilder.SetButtonAccessKey(this.BtnPrint); this.BtnPrint.UIModel = this.Model.ElementID; this.BtnPrint.Action = "OnPrint"; ((UFWebToolbarAdapter)_Toolbar).RemoveControls(); }
private void _BuilderControl_Toolbar1(IUFContainer container) { IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container, "Toolbar1", true, true, "1", 992, 28, 0, 0, 1, 1, "100"); this.Toolbar1 = _Toolbar; ///foreach Toolbar下的所有控件,增加到此容器 this.BtnDelete = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 28, "2", "R", true, false, "0467218f-229b-4954-b2d4-3c5976467f76", "0467218f-229b-4954-b2d4-3c5976467f76", "31306c54-d12d-4873-b5b3-2933fbe84e1a"); UIControlBuilder.SetButtonAccessKey(this.BtnDelete); this.BtnDelete.UIModel = this.Model.ElementID; this.BtnDelete.Action = "OnDelete"; _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter()); this.BtnOutPut = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutPut", "True", "True", 35, 28, "4", "O", true, false, "688fd549-5a92-49cc-8072-6d5377f6409a", "688fd549-5a92-49cc-8072-6d5377f6409a", "42589f9d-f68a-40d2-b4bb-bb059cc0bd4b"); UIControlBuilder.SetButtonAccessKey(this.BtnOutPut); this.BtnOutPut.UIModel = this.Model.ElementID; this.BtnOutPut.Action = "OnOutPut"; this.BtnPrint = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "True", "True", 35, 28, "5", "P", true, false, "27b5c615-cde5-458c-be74-833317249568", "27b5c615-cde5-458c-be74-833317249568", "383d4c96-4740-4a43-87b4-b9a212d9b76f"); UIControlBuilder.SetButtonAccessKey(this.BtnPrint); this.BtnPrint.UIModel = this.Model.ElementID; this.BtnPrint.Action = "OnPrint"; this.BtnPrintBarCode = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrintBarCode", "True", "True", 69, 28, "6", "", true, false, "0feb9305-b5bd-4132-a8ee-d507b1293287", "0feb9305-b5bd-4132-a8ee-d507b1293287", "fd578968-447f-45f2-ae24-ef3d87503bfe"); UIControlBuilder.SetButtonAccessKey(this.BtnPrintBarCode); this.BtnPrintBarCode.UIModel = this.Model.ElementID; this.BtnPrintBarCode.Action = "OnPrintBarCode"; ((UFWebToolbarAdapter)_Toolbar).RemoveControls(); }
private void _BuilderControl_Toolbar1(IUFContainer container) { IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container, "Toolbar1", true, true, "1", 992, 28, 0, 0, 1, 1, "100"); this.Toolbar1 = _Toolbar; ///foreach Toolbar下的所有控件,增加到此容器 this.BtnNew = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnNew", "True", "True", 35, 28, "1", "N", true, false, "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "bfa439b8-a9aa-4ba4-861f-960d19ef3d0e"); UIControlBuilder.SetButtonAccessKey(this.BtnNew); this.BtnNew.UIModel = this.Model.ElementID; this.BtnNew.Action = "OnNew"; this.BtnDelete = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 28, "2", "R", true, false, "0467218f-229b-4954-b2d4-3c5976467f76", "0467218f-229b-4954-b2d4-3c5976467f76", "51201568-2ce9-4759-bb00-1767b0ad8b4c"); UIControlBuilder.SetButtonAccessKey(this.BtnDelete); this.BtnDelete.UIModel = this.Model.ElementID; this.BtnDelete.Action = "OnDelete"; _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter()); this.BtnOutPut = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutPut", "True", "True", 35, 28, "4", "O", true, false, "688fd549-5a92-49cc-8072-6d5377f6409a", "688fd549-5a92-49cc-8072-6d5377f6409a", "c6aeeba1-8358-4a34-b5c8-275f17f12187"); UIControlBuilder.SetButtonAccessKey(this.BtnOutPut); this.BtnOutPut.UIModel = this.Model.ElementID; this.BtnOutPut.Action = "OnOutPut"; this.BtnPrint = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "True", "True", 35, 28, "5", "P", true, false, "27b5c615-cde5-458c-be74-833317249568", "27b5c615-cde5-458c-be74-833317249568", "55e4aa2b-8614-4de5-b025-d8aa5a489a30"); UIControlBuilder.SetButtonAccessKey(this.BtnPrint); this.BtnPrint.UIModel = this.Model.ElementID; this.BtnPrint.Action = "OnPrint"; ((UFWebToolbarAdapter)_Toolbar).RemoveControls(); }
private void _BuilderControl_Toolbar1(IUFContainer container) { IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container, "Toolbar1", true, true, "1", 992, 28, 0, 0, 1, 1, "100"); this.Toolbar1 = _Toolbar; ///foreach Toolbar下的所有控件,增加到此容器 this.BtnDelete = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 28, "2", "R", true, false, "0467218f-229b-4954-b2d4-3c5976467f76", "0467218f-229b-4954-b2d4-3c5976467f76", "77c42d55-dac8-4a02-9c8a-5d1ae4f16402"); UIControlBuilder.SetButtonAccessKey(this.BtnDelete); this.BtnDelete.UIModel = this.Model.ElementID; this.BtnDelete.Action = "OnDelete"; _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter()); this.BtnOutPut = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutPut", "True", "True", 35, 28, "4", "O", true, false, "688fd549-5a92-49cc-8072-6d5377f6409a", "688fd549-5a92-49cc-8072-6d5377f6409a", "6934b1b3-dd6b-47a3-8966-a981e99a608e"); UIControlBuilder.SetButtonAccessKey(this.BtnOutPut); this.BtnOutPut.UIModel = this.Model.ElementID; this.BtnOutPut.Action = "OnOutPut"; this.BtnPrint = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "True", "True", 35, 28, "5", "P", true, false, "27b5c615-cde5-458c-be74-833317249568", "27b5c615-cde5-458c-be74-833317249568", "566b8601-450c-42bb-9a61-546afcb9eb81"); UIControlBuilder.SetButtonAccessKey(this.BtnPrint); this.BtnPrint.UIModel = this.Model.ElementID; this.BtnPrint.Action = "OnPrint"; ((UFWebToolbarAdapter)_Toolbar).RemoveControls(); }
/// <summary> /// 重新请求 /// </summary> private void DoRequest() { Model.ClearErrorMessage(); WSLogRecord focusedRecord = Model.WSLog.FocusedRecord; if (focusedRecord == null) { return; } long wsLogID = focusedRecord.ID; DoRequestBPProxy proxy = new DoRequestBPProxy(); proxy.WSLogID = wsLogID; RequestResultDTOData resultData = proxy.Do(); if (Model.ErrorMessage.hasErrorMessage || Model.ErrorMessage.hasChildMessage) { return; } Action.NavigateAction.Refresh(DataGrid1); if (resultData.CallResult != (int)CallResultEnumData.Success) { IUIModel iModel = Model; WSLogRecord record = Model.WSLog.Records.FindByKey(wsLogID) as WSLogRecord; Model.WSLog.FocusedRecord = record; Model.ErrorMessage.SetErrorMessage(ref iModel, Model.WSLog.EntityFullName, "ID", false, wsLogID, resultData.ErrorMessage); } }
private void BtnPrintBarCode_Click_Extend(object sender, EventArgs e) { this.Model.ClearErrorMessage(); try { IList <IUIRecord> selectedRecords = this.Model.ProductBarCode.Cache.GetSelectRecord(); if (selectedRecords == null || selectedRecords.Count == 0) { throw new Exception("没有选择需要打印条码的记录!"); } UIActionEventArgs args = new UIActionEventArgs(); IExportSettings settings = ExportServiceFactory.GetInstance().CreateExportSettingsObject(); settings.PrintTemplateCatalogType = printTemplateCatalogType; settings.UserDataCallBack = DataCallBackHandle; // 打印完成委托 settings.OnFinished = new FinishCallBackHandle(FinishCallBackHandle); args.Tag = settings; CommandFactory.DoCommand("OnPrint", this.Action, sender, args); } catch (Exception ex) { IUIModel model = this.Model; this.Model.ErrorMessage.SetErrorMessage(ref model, ex.Message); } BtnPrintBarCode_Click_DefaultImpl(sender, e); }
private void dispose() { this._isStopped = true; this._isStopping = false; this._model = null; this._modelRunTask.Dispose(); this._modelRunTask = null; this._debugSemaphore.Close(); this._debugSemaphore = null; }
public CheckBarCodeBListUIModelModel() : base("CheckBarCodeBListUIModel") { InitClass(); this.SetResourceInfo("d4fb6df2-126b-48f9-b10d-69494790490b"); try{ AfterInitModel(); }catch (Exception exception) { IUIModel model = this; this.ErrorMessage.SetErrorMessage(ref model, exception); } }
public LogViewerUIModel() : base("LogViewerUI") { InitClass(); this.SetResourceInfo("50fc507b-11b9-49a0-becf-8af5f58d7665"); try{ AfterInitModel(); }catch (Exception exception) { IUIModel model = this; this.ErrorMessage.SetErrorMessage(ref model, exception); } }
public ProductBarCodeBListUIModelModel() : base("ProductBarCodeBListUIModel") { InitClass(); this.SetResourceInfo("fe92083f-7196-4a16-83de-16d3224fdd23"); try{ AfterInitModel(); }catch (Exception exception) { IUIModel model = this; this.ErrorMessage.SetErrorMessage(ref model, exception); } }
public WSLogBListUIModelModel() : base("WSLogBListUIModel") { InitClass(); this.SetResourceInfo("aac07d53-b4ec-4f2f-bb0e-bf91a23d61fd"); try{ AfterInitModel(); }catch (Exception exception) { IUIModel model = this; this.ErrorMessage.SetErrorMessage(ref model, exception); } }
public WhQohQueryUIModelModel() : base("WhQohQueryUIModel") { InitClass(); this.SetResourceInfo("1c0bcb53-4808-4521-9734-c26e99447e9f"); try{ AfterInitModel(); }catch (Exception exception) { IUIModel model = this; this.ErrorMessage.SetErrorMessage(ref model, exception); } }
public WSLogUIModelModel() : base("WSLogUIModel") { InitClass(); this.SetResourceInfo("9f73e563-4e8f-4099-a299-beceb1d99fe5"); try{ AfterInitModel(); }catch (Exception exception) { IUIModel model = this; this.ErrorMessage.SetErrorMessage(ref model, exception); } }
public WSTokenBListUIModelModel() : base("WSTokenBListUIModel") { InitClass(); this.SetResourceInfo("15710914-b49e-4998-a9ba-c06ca46be2eb"); try{ AfterInitModel(); }catch (Exception exception) { IUIModel model = this; this.ErrorMessage.SetErrorMessage(ref model, exception); } }
public ItemRefModel() : base("ItemRef") { InitClass(); this.SetResourceInfo("b2ccf05d-c424-4574-af1c-469aa085f418"); try{ AfterInitModel(); }catch (Exception exception) { IUIModel model = this; this.ErrorMessage.SetErrorMessage(ref model, exception); } }
public CompleteApplyBarCodeBListUIModelModel() : base("CompleteApplyBarCodeBListUIModel") { InitClass(); this.SetResourceInfo("62cadc16-b90a-4b08-b586-b3c70a366565"); try{ AfterInitModel(); }catch (Exception exception) { IUIModel model = this; this.ErrorMessage.SetErrorMessage(ref model, exception); } }
internal static bool SetIsApprovalDoc(IUIModel model) { bool isAF = false; DeductionRegisterUIModelModel curModel = model as DeductionRegisterUIModelModel; if (curModel != null && curModel.DeductionRegister.FocusedRecord != null) { DeductionRegisterRecord rec = curModel.DeductionRegister.FocusedRecord; isAF = rec.DocumentType_ConfirmType == 2; } return(isAF); }
internal static bool SetIsApprovalDoc(IUIModel model) { bool isAF = false; PrePaymentUIModelModel curModel = model as PrePaymentUIModelModel; if (curModel != null && curModel.PrePayment.FocusedRecord != null) { PrePaymentRecord rec = curModel.PrePayment.FocusedRecord; isAF = rec.DocumentType_ConfirmType == 2; } return(isAF); }
internal static bool SetIsApprovalDoc(IUIModel model) { bool isAF = false; SoOrderSaleUIModelModel curModel = model as SoOrderSaleUIModelModel; if (curModel != null && curModel.SoOrderSaleHead.FocusedRecord != null) { SoOrderSaleHeadRecord record = curModel.SoOrderSaleHead.FocusedRecord; isAF = record.DocumentType_ConfirmType == (int)UFIDA.U9.Base.Doc.ConfirmTypeEnumData.ApproveFlow; //(int)UFIDA.U9.Base.Doc.ConfirmTypeEnum.ApproveFlow.Value; } return(isAF); }
public void OnLoadData(object sender) { try { OnLoadData_Extend(sender); } catch (Exception ex) { if (UFSoft.UBF.Exceptions.ExceptionHelper.IsUnknownException(ex, true)) { throw; } IUIModel model = this.Model; this.Model.ErrorMessage.SetErrorMessage(ref model, ex); } }
public void OnLoadData(object sender) { try { UFIDA.U9.UI.Commands.CommandHelper.LoadRefFindScheme(this); OnLoadData_Extend(sender); } catch (Exception ex) { if (UFSoft.UBF.Exceptions.ExceptionHelper.IsUnknownException(ex, true)) { throw; } IUIModel model = this.Model; this.Model.ErrorMessage.SetErrorMessage(ref model, ex); } }
public override void OnDataCollect(object sender) { try { adjust.ProcessAdjustBeforeDataCollect(this); OnDataCollect_Extend(sender); adjust.ProcessAdjustAfterDataCollect(this); } catch (Exception ex) { if (UFSoft.UBF.Exceptions.ExceptionHelper.IsUnknownException(ex, true)) { throw; } IUIModel model = this.Model; this.Model.ErrorMessage.SetErrorMessage(ref model, ex); } }
public void Start(IUIModel model) { lock (synchronizer) { if (!this._isStopped) { return; } this.initialize(); this.initialize(); this._model = model; this.OnStart?.Invoke(this, EventArgs.Empty); Action modelRunAction = () => this._model.Run(this); this._modelRunTask = new CancellationTokenSource();// Task.Run(modelRunAction); Task.Run(modelRunAction, this._modelRunTask.Token); this._isStopped = false; } }
private void BtnPrintBarCode_Click_Extend(object sender, EventArgs e) { this.Model.ClearErrorMessage(); IList <IUIRecord> selectedRecords = this.Model.CompleteApplyBarCode.Cache.GetSelectRecord(); if (selectedRecords == null || selectedRecords.Count == 0) { IUIModel model = this.Model; this.Model.ErrorMessage.SetErrorMessage(ref model, "没有选择需要打印条码的记录!"); return; } bool checkFail = false; foreach (CompleteApplyBarCodeRecord selectedRecord in selectedRecords) { //打印外包装允许可以打印条码2次,否则只能允许打印1次 if (((selectedRecord.IsPrintWrapper ?? false) && selectedRecord.PrintCount >= 2) || (!(selectedRecord.IsPrintWrapper ?? false) && selectedRecord.PrintCount >= 1)) { IUIRecord record = selectedRecord; string errorMessage = string.Format("条码{0}已经超出打印次数,不允许打印", selectedRecord.BarCode); this.Model.ErrorMessage.SetErrorMessage(ref record, "", errorMessage); checkFail = true; } } if (checkFail) { return; } UIActionEventArgs args = new UIActionEventArgs(); IExportSettings settings = ExportServiceFactory.GetInstance().CreateExportSettingsObject(); settings.PrintTemplateCatalogType = printTemplateCatalogType; settings.UserDataCallBack = DataCallBackHandle; // 打印完成委托 settings.OnFinished = new FinishCallBackHandle(FinishCallBackHandle); args.Tag = settings; CommandFactory.DoCommand("OnPrint", this.Action, sender, args); BtnPrintBarCode_Click_DefaultImpl(sender, e); }
//MethodName:DataGrid_GridRowDbClicked ActionName: /// <summary> /// Help Info : {varEvent.Help} /// </summary> public void DataGrid_GridRowDbClicked(object sender, GridDBClickEventArgs e) { OnDataCollect(this); //当前事件先执行数据收集 this.IsDataBinding = true; //当前事件执行后会进行数据绑定 this.IsConsuming = false; try { DataGrid_GridRowDbClicked_Extend(sender, e); } catch (Exception ex) { if (UFSoft.UBF.Exceptions.ExceptionHelper.IsUnknownException(ex, true)) { throw; } IUIModel model = this.Model; this.Model.ErrorMessage.SetErrorMessage(ref model, ex); } }
private void _BuilderControl_Toolbar1(IUFContainer container) { IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container, "Toolbar1", true, true, "1", 992, 28, 0, 0, 1, 1, "100"); this.Toolbar1 = _Toolbar; ///foreach Toolbar下的所有控件,增加到此容器 this.BtnNew = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnNew", "True", "True", 35, 28, "1", "N", true, false, "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "bbce8ad3-43b8-4ad1-a1a5-fe7d065d4c4e"); UIControlBuilder.SetButtonAccessKey(this.BtnNew); this.BtnNew.UIModel = this.Model.ElementID; this.BtnNew.Action = "OnNew"; this.BtnDelete = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 28, "2", "R", true, false, "0467218f-229b-4954-b2d4-3c5976467f76", "0467218f-229b-4954-b2d4-3c5976467f76", "289163d1-2961-4791-be19-72d865a80ff7"); UIControlBuilder.SetButtonAccessKey(this.BtnDelete); this.BtnDelete.UIModel = this.Model.ElementID; this.BtnDelete.Action = "OnDelete"; _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter()); this.BtnOutPut = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutPut", "True", "True", 35, 28, "4", "O", true, false, "688fd549-5a92-49cc-8072-6d5377f6409a", "688fd549-5a92-49cc-8072-6d5377f6409a", "bea9082e-adc8-479b-85d6-cfdb3b85d2ce"); UIControlBuilder.SetButtonAccessKey(this.BtnOutPut); this.BtnOutPut.UIModel = this.Model.ElementID; this.BtnOutPut.Action = "OnOutPut"; this.BtnPrint = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "True", "True", 35, 28, "5", "P", true, false, "27b5c615-cde5-458c-be74-833317249568", "27b5c615-cde5-458c-be74-833317249568", "8b059c92-9e27-4a28-a11b-b89dd66fa29b"); UIControlBuilder.SetButtonAccessKey(this.BtnPrint); this.BtnPrint.UIModel = this.Model.ElementID; this.BtnPrint.Action = "OnPrint"; this.BtnPrintBarCode = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrintBarCode", "True", "True", 67, 28, "6", "", true, false, "89db7a96-a3be-4063-ad5b-7a5f8f260978", "89db7a96-a3be-4063-ad5b-7a5f8f260978", "27e9b564-e6b5-41db-ac78-5df15d986ccd"); UIControlBuilder.SetButtonAccessKey(this.BtnPrintBarCode); this.BtnPrintBarCode.UIModel = this.Model.ElementID; this.BtnPrintBarCode.Action = "OnPrintBarCode"; ((UFWebToolbarAdapter)_Toolbar).RemoveControls(); }
public QueryResultViewView(IUIModel model) : base(model, "QueryResultView", "", true) { InitClass(); }
private void showErrorMessage(string message) { IUIModel model = _strongPart.Model; model.ErrorMessage.SetErrorMessage(ref model, message); }
private void _BuilderControl_Toolbar2(IUFContainer container) { IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container, "Toolbar2", true, true, "1", 992, 28, 0, 0, 1, 1, "100"); this.Toolbar2 = _Toolbar; ///foreach Toolbar下的所有控件,增加到此容器 this.BtnSave = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnSave", "True", "True", 35, 28, "1", "", true, false, "8288c5a3-3b19-48d3-b139-f7018d2782ee", "8288c5a3-3b19-48d3-b139-f7018d2782ee", "f3eb5df3-cf99-48e4-99b6-42a5014dd772"); UIControlBuilder.SetButtonAccessKey(this.BtnSave); this.BtnSave.UIModel = this.Model.ElementID; this.BtnSave.Action = ""; this.BtnCancel = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnCancel", "True", "True", 35, 28, "2", "", true, false, "f35cb480-9e8f-4689-aaac-3e9fc9a0c65e", "f35cb480-9e8f-4689-aaac-3e9fc9a0c65e", "aa687d7d-d1a0-47ec-98aa-b333b2df5491"); UIControlBuilder.SetButtonAccessKey(this.BtnCancel); this.BtnCancel.UIModel = this.Model.ElementID; this.BtnCancel.Action = ""; this.BtnAdd = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnAdd", "True", "True", 35, 28, "3", "", true, false, "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "2ba8ddf8-775e-4f02-a9ac-3a954139a0c6"); UIControlBuilder.SetButtonAccessKey(this.BtnAdd); this.BtnAdd.UIModel = this.Model.ElementID; this.BtnAdd.Action = ""; this.BtnDelete = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 28, "4", "", true, false, "0467218f-229b-4954-b2d4-3c5976467f76", "0467218f-229b-4954-b2d4-3c5976467f76", "b8397855-4c4d-421e-87bf-2895560cfa0b"); UIControlBuilder.SetButtonAccessKey(this.BtnDelete); this.BtnDelete.UIModel = this.Model.ElementID; this.BtnDelete.Action = ""; _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter()); this.BtnCopy = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnCopy", "True", "True", 35, 28, "6", "", true, false, "be9f8d20-e484-464b-9818-a2c1b599b967", "be9f8d20-e484-464b-9818-a2c1b599b967", "0c608f62-a7a3-485b-a122-0fe1750ad57d"); UIControlBuilder.SetButtonAccessKey(this.BtnCopy); this.BtnCopy.UIModel = this.Model.ElementID; this.BtnCopy.Action = ""; _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter()); this.BtnSubmit = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnSubmit", "True", "True", 35, 28, "8", "", true, false, "c42c0f21-2fd7-49b2-ac54-62f811747b18", "c42c0f21-2fd7-49b2-ac54-62f811747b18", "cd219a51-a1df-42c0-99ed-62bf97427907"); UIControlBuilder.SetButtonAccessKey(this.BtnSubmit); this.BtnSubmit.UIModel = this.Model.ElementID; this.BtnSubmit.Action = ""; this.BtnApprove = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnApprove", "True", "True", 35, 28, "9", "", true, false, "eb678a04-c7e1-44f1-b175-8f90f9903862", "eb678a04-c7e1-44f1-b175-8f90f9903862", "ac038b56-3f6c-4209-918c-f00e028de6ec"); UIControlBuilder.SetButtonAccessKey(this.BtnApprove); this.BtnApprove.UIModel = this.Model.ElementID; this.BtnApprove.Action = ""; this.BtnUndoApprove = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnUndoApprove", "True", "True", 35, 28, "10", "", true, false, "ae796775-bce3-4aed-89a9-20eaa4648a67", "ae796775-bce3-4aed-89a9-20eaa4648a67", "a2f66cf5-3436-4355-b045-98e7ca5195c4"); UIControlBuilder.SetButtonAccessKey(this.BtnUndoApprove); this.BtnUndoApprove.UIModel = this.Model.ElementID; this.BtnUndoApprove.Action = ""; _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter()); this.BtnFind = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFind", "True", "True", 35, 28, "12", "", true, false, "27621430-7bc7-4c0e-979e-f0108439d13e", "27621430-7bc7-4c0e-979e-f0108439d13e", "7bd2180d-dd91-429b-9716-e70bdc0b7a80"); UIControlBuilder.SetButtonAccessKey(this.BtnFind); this.BtnFind.UIModel = this.Model.ElementID; this.BtnFind.Action = ""; this.BtnList = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnList", "True", "True", 35, 28, "13", "", true, false, "c639596b-5a8c-4fc1-88bb-a3d670cda992", "c639596b-5a8c-4fc1-88bb-a3d670cda992", "203baf00-7443-48a8-a23b-186c40916358"); UIControlBuilder.SetButtonAccessKey(this.BtnList); this.BtnList.UIModel = this.Model.ElementID; this.BtnList.Action = ""; _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter()); this.BtnFirstPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFirstPage", "True", "True", 35, 28, "15", "", true, false, "f229e163-fcd1-4f6a-a645-df86c0efd8ec", "f229e163-fcd1-4f6a-a645-df86c0efd8ec", "7991fcca-d32b-4506-8540-2ae485974a84"); UIControlBuilder.SetButtonAccessKey(this.BtnFirstPage); this.BtnFirstPage.UIModel = this.Model.ElementID; this.BtnFirstPage.Action = ""; this.BtnPrevPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrevPage", "True", "True", 35, 28, "16", "", true, false, "5ed368d8-7616-4696-b671-3f1c895f3b43", "5ed368d8-7616-4696-b671-3f1c895f3b43", "54a2f262-865d-4b6f-90c7-a14a44cd32e6"); UIControlBuilder.SetButtonAccessKey(this.BtnPrevPage); this.BtnPrevPage.UIModel = this.Model.ElementID; this.BtnPrevPage.Action = ""; this.BtnNextPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnNextPage", "True", "True", 35, 28, "17", "", true, false, "36afec41-957c-493a-97a4-eddb136af5b4", "36afec41-957c-493a-97a4-eddb136af5b4", "975a2c4a-41f3-458b-86de-a620873bc6e5"); UIControlBuilder.SetButtonAccessKey(this.BtnNextPage); this.BtnNextPage.UIModel = this.Model.ElementID; this.BtnNextPage.Action = ""; this.BtnLastPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnLastPage", "True", "True", 35, 28, "18", "", true, false, "dc4a37d1-35de-4016-81dd-582aef3cdeb0", "dc4a37d1-35de-4016-81dd-582aef3cdeb0", "7c489916-cb53-4814-8c80-b5cecfb81446"); UIControlBuilder.SetButtonAccessKey(this.BtnLastPage); this.BtnLastPage.UIModel = this.Model.ElementID; this.BtnLastPage.Action = ""; _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter()); this.BtnAttachment = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnAttachment", "True", "True", 35, 28, "20", "", true, false, "92ccef79-ad54-438c-a16e-20a4fd407b97", "92ccef79-ad54-438c-a16e-20a4fd407b97", "ba2acf74-9a61-48f7-801a-b0dbab519440"); UIControlBuilder.SetButtonAccessKey(this.BtnAttachment); this.BtnAttachment.UIModel = this.Model.ElementID; this.BtnAttachment.Action = ""; this.BtnFlow = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFlow", "True", "True", 35, 28, "21", "", true, false, "e222698c-ae3c-470a-8053-1b69905c510a", "e222698c-ae3c-470a-8053-1b69905c510a", "1c92e2c5-664c-40da-b712-5deff4a4c2a4"); UIControlBuilder.SetButtonAccessKey(this.BtnFlow); this.BtnFlow.UIModel = this.Model.ElementID; this.BtnFlow.Action = ""; _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter()); this.BtnOutput = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutput", "True", "True", 35, 28, "23", "", true, false, "688fd549-5a92-49cc-8072-6d5377f6409a", "688fd549-5a92-49cc-8072-6d5377f6409a", "91b7970d-6dff-4ccd-9c6b-75629c54e1b2"); UIControlBuilder.SetButtonAccessKey(this.BtnOutput); this.BtnOutput.UIModel = this.Model.ElementID; this.BtnOutput.Action = ""; this.BtnPrint = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "True", "True", 35, 28, "24", "", true, false, "27b5c615-cde5-458c-be74-833317249568", "27b5c615-cde5-458c-be74-833317249568", "749d4b1f-a332-4e43-acae-a5081b0ad30a"); UIControlBuilder.SetButtonAccessKey(this.BtnPrint); this.BtnPrint.UIModel = this.Model.ElementID; this.BtnPrint.Action = ""; ((UFWebToolbarAdapter)_Toolbar).RemoveControls(); }
public static Task InvokeBackgroundAction(this IUIModel model, Action action) { return(Task.Factory.StartNew(action, model.CancellationSource.Token)); }