public override void SetContextData(ILogicalThreadAffinative contextData) { if (contextData is WfLogicalAbnormalContextData) { ((WfLogicalAbnormalContextData) contextData).OpReason = this.txtReason.Text.Trim(); } }
public override void SetContextData(ILogicalThreadAffinative contextData) { if (contextData is WfLogicalAbnormalContextData) { WfLogicalAbnormalContextData data = (WfLogicalAbnormalContextData) contextData; data.OpReason = this.txtReason.Text.Trim(); data.ReceiveAssignId = this.cmbSendBacks.SelectedValue.ToString(); } }
public override void SetContextData(ILogicalThreadAffinative contextData) { if ((contextData is WfLogicalPassContextData) && (this.cmbPoscond.Items.Count != 0)) { Transition selectedItem = this.cmbPoscond.SelectedItem as Transition; if (selectedItem != null) { WfLogicalPassContextData data = contextData as WfLogicalPassContextData; data.SelectedTranId = selectedItem.Id; if (this.selectedStaffs == null) { if (this.selectedStaff != null) { data.ToStaffIds = new string[] { this.selectedStaff.Id }; data.ToStaffNames = new string[] { this.selectedStaff.Name }; } else { data.ToStaffIds = new string[0]; data.ToStaffNames = new string[0]; } } else { int count = this.selectedStaffs.Count; data.ToStaffIds = new string[count]; data.ToStaffNames = new string[count]; for (int i = 0; i < count; i++) { CStaff staff = this.selectedStaffs[i]; data.ToStaffIds[i] = staff.Id; data.ToStaffNames[i] = staff.Name; } } } } }
public virtual void SetContextData(ILogicalThreadAffinative contextData) { throw new NotImplementedException("Not impement set context data method"); }