コード例 #1
0
 public override void SetContextData(ILogicalThreadAffinative contextData)
 {
     if (contextData is WfLogicalAbnormalContextData)
     {
         ((WfLogicalAbnormalContextData) contextData).OpReason = this.txtReason.Text.Trim();
     }
 }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
ファイル: PassDialog.cs プロジェクト: vanloc0301/mychongchong
 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;
                 }
             }
         }
     }
 }
コード例 #4
0
 public virtual void SetContextData(ILogicalThreadAffinative contextData)
 {
     throw new NotImplementedException("Not impement set context data method");
 }