public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { try { switch (transition) { case "UseStringData": context.State = new CodeRuleDefinifionEditingStringData(_UIControl); break; case "UseDateTimeData": context.State = new CodeRuleDefinifionEditingDateTimeData(_UIControl); break; case "UseNumberData": context.State = new CodeRuleDefinifionEditingNumberData(_UIControl); break; default: break; } return(true); } catch (Exception ex) { return(false); } }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { switch (transition) { case "EdittingClickCommon": context.State = new PricePolicy.State.PricePolicyClickTabCommonEditting(_UIControl); break; case "EdittingClickCondition": context.State = new PricePolicy.State.PricePolicyClickTabConditionEditting(_UIControl); break; case "EdittingClickException": context.State = new PricePolicy.State.PricePolicyClickTabExceptionEditting(_UIControl); break; case "EdittingClickConfigFormula": context.State = new PricePolicy.State.PricePolicyClickTabConfigPriceEditting(_UIControl); break; case "EdittingClickPriceReference": context.State = new PricePolicy.State.PricePolicyClickTabDemoPriceEditting(_UIControl); break; case "Close": context.State = new PricePolicy.State.PricePolicyPoupClosing(_UIControl); break; default: throw new Exception("current compatibility setting is not supported"); } return(true); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { Transition.CustomFieldCreatingHasNoInitDataTransition transitionEnum = (Transition.CustomFieldCreatingHasNoInitDataTransition) Enum.Parse(typeof(Transition.CustomFieldCreatingHasNoInitDataTransition), transition.ToUpper()); switch (transitionEnum) { case WebModule.ERPSystem.CustomField.State.CustomFieldEditingForm.Transition.CustomFieldCreatingHasNoInitDataTransition.CANCEL: context.State = new CustomFieldEditingCanceled(_UIControl); break; case WebModule.ERPSystem.CustomField.State.CustomFieldEditingForm.Transition.CustomFieldCreatingHasNoInitDataTransition.ACCEPT: context.State = new CustomFieldCreatingFinished(_UIControl); break; case WebModule.ERPSystem.CustomField.State.CustomFieldEditingForm.Transition.CustomFieldCreatingHasNoInitDataTransition.HAS_INIT_DATA: base.Transit(context, transition, _UIControl); break; case WebModule.ERPSystem.CustomField.State.CustomFieldEditingForm.Transition.CustomFieldCreatingHasNoInitDataTransition.HAS_NO_INIT_DATA: base.Transit(context, transition, _UIControl); break; default: throw new NAS.GUI.Pattern.IncompatibleTransitionException(); } return(true); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { try { if (transition.ToUpper().Equals(NASCustomFieldTypeControlStateTransition.EditTransition.TransitionName)) { return(Edit(context, _UIControl)); } else if (transition.ToUpper().Equals(NASCustomFieldTypeControlStateTransition.UpdateTransition.TransitionName)) { return(Update(context, _UIControl)); } else if (transition.ToUpper().Equals(NASCustomFieldTypeControlStateTransition.CancelTransition.TransitionName)) { return(Cancel(context, _UIControl)); } else { throw new NAS.GUI.Pattern.IncompatibleTransitionException(); } } catch (Exception) { throw; } }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { Transition.CustomFieldDataCreatingTransition transitionEnum = (Transition.CustomFieldDataCreatingTransition) Enum.Parse(typeof(Transition.CustomFieldDataCreatingTransition), transition.ToUpper()); switch (transitionEnum) { case WebModule.ERPSystem.CustomField.State.CustomFieldEditingForm.Transition.CustomFieldDataCreatingTransition.BACK: context.State = new CustomFieldCreatingHasInitData(_UIControl); break; case WebModule.ERPSystem.CustomField.State.CustomFieldEditingForm.Transition.CustomFieldDataCreatingTransition.CANCEL: context.State = new CustomFieldEditingCanceled(_UIControl); break; case WebModule.ERPSystem.CustomField.State.CustomFieldEditingForm.Transition.CustomFieldDataCreatingTransition.ACCEPT: context.State = new CustomFieldCreatingFinished(_UIControl); break; case WebModule.ERPSystem.CustomField.State.CustomFieldEditingForm.Transition.CustomFieldDataCreatingTransition.CREATE_SINGLE_CHOICE_LIST_DATA: context.State = new CustomFieldDataCreatingSingleChoiceList(_UIControl); break; case WebModule.ERPSystem.CustomField.State.CustomFieldEditingForm.Transition.CustomFieldDataCreatingTransition.CREATE_MULTI_CHOICE_LIST_DATA: context.State = new CustomFieldDataCreatingMultiChoiceList(_UIControl); break; default: throw new NAS.GUI.Pattern.IncompatibleTransitionException(); } return(true); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { switch (transition) { case "Close": context.State = new ClosingOutputInventoryCommand(_UIControl); break; case "Save": context.State = new SavingOutputInventoryCommand(_UIControl); break; case "Delete": context.State = new DeletingOutputInventoryCommand(_UIControl); break; case "BookEntries": context.State = new BookingEntriesOutputInventoryCommand(_UIControl); break; case "BookedEntries": context.State = new BookedEntriesOutputInventoryCommand(_UIControl); break; case "CloseBookingPopup": context.State = new ClosingOutputInventoryCommand(_UIControl); break; default: throw new Exception("current compatibility setting is not supported"); } return(true); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { switch (transition) { case "Next": context.State = new PricePolicy.State.PricePolicyTabException(_UIControl); break; case "Back": context.State = new PricePolicy.State.PricePolicyTabCommonInfo(_UIControl); break; case "Close": context.State = new PricePolicy.State.PricePolicyPoupClosing(_UIControl); break; case "UpdateMenu": context.State = new PricePolicy.State.PricePolicyConditionMenu(_UIControl); break; default: throw new Exception("current compatibility setting is not supported"); } return(true); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GUIContext = new NAS.GUI.Pattern.Context(); GUIContext.State = new WebModule.Sales.PricePolicy.State.PricePolicyListing(this); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GenerateViewStateControlId(); cpItemEdit.ClientInstanceName = cpItemEdit.ClientID;//string.Format("cpItemEdit{0}", ViewStateControlId); GUIContext = new NAS.GUI.Pattern.Context(); } }
protected void Page_Load(object sender, EventArgs e) { if (GUIContext == null) { GUIContext = new NAS.GUI.Pattern.Context(); } SetCriteriaForOrganization(); grdSupplierListPreview.DataSource = SelectionLST; }
protected void Page_Load(object sender, EventArgs e) { if (GUIContext == null) { GUIContext = new NAS.GUI.Pattern.Context(); } grdManufacturerListPreview.DataSource = SelectionLST; grdManufacturerListPreview.DataBind(); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { switch (transition) { case "Delete": context.State = new LegalInvoiceArtifact_Deleting(_UIControl); break; } return(true); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { switch (transition) { case "Delete": context.State = new DeletingOutputInventoryCommand(_UIControl); break; } return(true); }
protected override bool Cancel(NAS.GUI.Pattern.Context context, System.Web.UI.Control _UIControl) { try { context.State = new PaymentVoucherCanceling(_UIControl); return(true); } catch (Exception) { return(false); } }
protected override bool Save(NAS.GUI.Pattern.Context context, System.Web.UI.Control _UIControl) { try { context.State = new ReceiptVoucherCanBookingEntry(_UIControl); return(true); } catch (Exception) { return(false); } }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { switch (transition) { case "Save": context.State = new LegalInvoiceArtifact_Saving(_UIControl); break; default: throw new Exception("current compatibility setting is not supported"); } return(true); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { switch (transition.ToUpper()) { case "CANCEL": context.State = new PurchaseInvoiceCanceling(_UIControl); break; default: throw new NAS.GUI.Pattern.IncompatibleTransitionException(); } return(true); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { switch (transition.ToUpper()) { case VoucherBookingEntriesFormStateConstant.TRANSITION_CANCEL: context.State = new VoucherBookingEntriesCanceling(_UIControl); break; default: throw new NAS.GUI.Pattern.IncompatibleTransitionException(); } return(true); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { switch (transition) { case "Refresh": context.State = new ObjectTypeListing(_UIControl); break; default: break; } return(true); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { switch (transition) { case "Cancel": context.State = new CancelBookingVoucherState(_UIControl); break; default: throw new Exception("current compatibility setting is not supported"); } return(true); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { switch (transition) { case "Delete": context.State = new PricePolicy.State.PricePolicyInitAdding(_UIControl); break; default: break; } return(true); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GenerateViewStateControlId(); cpVoucherBookingEntry.ClientInstanceName = string.Format("cpVoucherBookingEntry{0}", ViewStateControlId); ldpnCostingEditForm.ClientInstanceName = string.Format("ldpnCostingEditForm{0}", ViewStateControlId); GUIContext = new NAS.GUI.Pattern.Context(); } dsOriginArtifact.CriteriaParameters["VoucherId"].DefaultValue = VoucherId.ToString(); dsVoucherAllocation.CriteriaParameters["VoucherId"].DefaultValue = VoucherId.ToString(); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { switch (transition) { case "Save": context.State = new OrganizationEditting(_UIControl); break; case "Cancel": context.State = new OrganizationDeleting(_UIControl); break; default: throw new Exception(); } return(true); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { switch (transition) { case "BillItems": context.State = new BillItemsState(_UIControl); break; case "DeliverySchedule": context.State = new DeliveryScheduleState(_UIControl); break; case "PaymentPlanning": context.State = new PaymentPlanningState(_UIControl); break; default: throw new NAS.GUI.Pattern.IncompatibleTransitionException(); } return(true); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { try { if (transition.ToUpper().Equals(VoucherStateTransition.CancelTransition.TransitionName)) { return(Cancel(context, _UIControl)); } else if (transition.ToUpper().Equals(VoucherStateTransition.SaveTransition.TransitionName)) { return(Save(context, _UIControl)); } else { throw new NAS.GUI.Pattern.IncompatibleTransitionException(); } } catch (Exception) { throw; } }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { switch (transition) { case "Create": context.State = new CreatingOutputInventoryCommandByInvoiceArtifact(_UIControl); break; case "CreateByBill": context.State = new CreatingOutputInventoryCommand(_UIControl); break; case "Edit": context.State = new EdittingOutputInventoryCommand(_UIControl); break; case "Delete": context.State = new DeletingOutputInventoryCommand(_UIControl); break; } return(true); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { if (!(context.State is RuleConditionItemUnitSelectUnselectAll)) { return(false); } switch (transition) { case "SelectUnselectAll": context.State = new RuleConditionItemUnitSelectUnselectAll(_UIControl); break; case "Next": context.State = new RuleConditionItemUnitPreview(_UIControl); break; case "Close": break; default: throw new Exception("current compatibility setting is not supported"); } return(true); }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { try { switch (transition) { case "Save": context.State = new AllocationEditing(_UIControl); break; case "Cancel": context.State = new AllocationCanceling(_UIControl); break; default: throw new NAS.GUI.Pattern.IncompatibleTransitionException(String.Format("Transition '{0}' is invalid in '{1}' state.", transition, this.GetType().FullName)); } return(true); } catch (Exception) { throw; } }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { try { switch (transition) { case "Allow": context.State = null; break; case "Deny": break; default: context.State = null; break; } return(true); } catch (Exception ex) { return(false); } }
public override bool Transit(NAS.GUI.Pattern.Context context, string transition, System.Web.UI.Control _UIControl) { try { switch (transition) { case "Save": context.State = new ArtifactCodeRuleEditing(_UIControl); break; case "Cancel": context.State = new ArtifactCodeRuleCanceling(_UIControl); break; default: break; } return(true); } catch (Exception ex) { return(false); } }