1. 程式人生 > >基於WF的意見徵集4(淺析)

基於WF的意見徵集4(淺析)

介面專案:IClass(專案名稱)

 

HTHuiFu
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.Runtime;
using System.Workflow.Activities;

namespace IClass
{
    
/// <summary>

    
/// 話題回覆
    
/// </summary>
    public class HTHuiFu
    {
        
/// <summary>
        
/// 回覆ID
        
/// </summary>
        private int HfId;

        
/// <summary>
        
/// 話題ID
        
/// </summary>
        
private int HTId;

        
/// <summary>
        
/// 話題ID
        
/// </summary>
        public int HTId1
        {
            
get { return HTId; }
            
set { HTId = value; }
        }


        
private string FBRenName;

        
public string FBRenName1
        {
            
get { return FBRenName; }
            
set { FBRenName = value; }
        }
   
        
/// <summary>
        
/// 反饋內容
        
/// </summary>
        public string FanKuiNeiRong1
        {
            
get { return FanKuiNeiRong; }
            
set { FanKuiNeiRong = value; }
        }
        
        
/// <summary>
        
/// 回覆ID
        
/// </summary>
        public int HfId1
        {
            
get { return HfId; }
            
set { HfId = value; }
        }

        
/// <summary>
        
/// 反饋內容
        
/// </summary>
        private string FanKuiNeiRong;

        
/// <summary>
        
/// 建構函式
        
/// </summary>
        public HTHuiFu()
        { 
        }

        
/// <summary>
        
/// 話題回覆
        
/// </summary>
        
/// <param name="HfId">回覆ID</param>
        
/// <param name="FBRenName"></param>
        
/// <param name="FanKuiNeiRong">反饋內容</param>
        
/// <param name="HTId">話題ID</param>
        public HTHuiFu(int HfId, string FBRenName, string FanKuiNeiRong,int HTId)
        {
            
this.HTId = HTId;
            
this.HfId = HfId;
            
this.FBRenName = FBRenName;
            
this.FanKuiNeiRong = FanKuiNeiRong;

        }        
    }
}

 

 

HuaTi
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.Activities;
using System.Workflow.Runtime;


namespace IClass
{
    
/// <summary>
    
/// 話題
    
/// </summary>
    public class HuaTi
    {
        
/// <summary>
        
/// 話題ID
        
/// </summary>
        private int HTID;

        
public int HTID1
        {
            
get { return HTID; }
            
set { HTID = value; }
        }

        
/// <summary>
        
/// 話題名稱
        
/// </summary>
        private string HTName;

        
public string HTName1
        {
            
get { return HTName; }
            
set { HTName = value; }
        }

        
/// <summary>
        
/// 話題內容
        
/// </summary>
        private string HTNeiRong;

        
public string HTNeiRong1
        {
            
get { return HTNeiRong; }
            
set { HTNeiRong = value; }
        }

        
/// <summary>
        
/// 話題狀態
        
/// </summary>
        private int State;

        
public int State1
        {
            
get { return State; }
            
set { State = value; }
        }

        
/// <summary>
        
/// 建立時間
        
/// </summary>
        private DateTime dt;

        
public DateTime Dt
        {
            
get { return dt; }
            
set { dt = value; }
        }
               

        
/// <summary>
        
/// 建構函式
        
/// </summary>
        public HuaTi()
        { 
        }

        
/// <summary>
        
/// 話題
        
/// </summary>
        
/// <param name="HTID">話題ID</param>
        
/// <param name="HTName">話題名稱</param>
        
/// <param name="HTNeiRong">話題內容</param>
        
/// <param name="State">話題狀態</param>
        
/// <param name="dt">建立時間</param>
        public HuaTi(int HTID, string HTName, string HTNeiRong, int State, DateTime dt)
        {
            
this.HTID = HTID;
            
this.HTName = HTName;
            
this.HTNeiRong = HTNeiRong;
            
this.State = State;
            
this.dt = dt;
        }        
    }
}

 

 

InterFaces
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.Activities;
using System.Workflow.Runtime;

namespace IClass
{
    [ExternalDataExchange]
    
public interface InterFaces
    {
        
event EventHandler<ExternalDataEventArgs> eve1;
        
void callroupiao(object flage);
    }
}

 

 

Master
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.Activities;
using System.Workflow.Runtime;

namespace IClass
{
    
public class Master 
    {
        
private string id;
        
private bool bl;
        
private object flage;


        
public Master()
        {
        }
        
public Master(string id, bool bl,object flage)
        {
            
this.id = id;
            
this.bl = bl;
            
this.flage = flage;
        }
        
public bool Bl
        {
            
get { return bl; }
            
set { bl = value; }
        }

        
public string Id
        {
            
get { return id; }
            
set { id = value; }
        }

        
public object Flage
        {
            
get { return flage; }
            
set { flage = value; }
        }
    }
}

 

 

pargme
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.Activities;

namespace IClass
{
    [Serializable]
    
public class pargme : ExternalDataEventArgs
    {
        
private Guid id;
        
private object flages;
        
private bool b;

        
public bool B
        {
            
get { return b; }
            
set { b = value; }
        }

        
public pargme(Guid id, object flages,bool b)
            : 
base(id)
        {
            
this.id = id;
            
this.flages = flages;
            
this.b = b;
        }

        
public object Flages
        {
            
get { return flages; }
            
set { flages = value; }
        }

        
public Guid Id
        {
            
get { return id; }
            
set { id = value; }
        }
    }
}

 

基於WF的意見徵集1(淺析)
基於WF的意見徵集2(淺析)
基於WF的意見徵集3(淺析)
基於WF的意見徵集5(淺析)
基於WF的意見徵集6(淺析)
基於WF的意見徵集7(淺析)