Ejemplo n.º 1
0
        public CounselMemo(object v1)
        {
            if (v1 != null)
            {
                this.id = ((Counsel_table)v1).ID;
                mind    = new MindController();
                Crypt crypt = mind.GetCrypt();

                InitializeComponent();

                this.counsel_Table = mind.GetCounsel_Table(id);
                this.client        = mind.GetMember(counsel_Table.ClientID);
                this.counselor     = mind.GetMember(counsel_Table.MemberID);

                // 피내담자(고객)
                this.txt_clientID.Text    = client.GetID().ToString();
                this.txt_clientName.Text  = client.GetName().ToString();
                this.txt_clientPhone.Text = client.GetPhone().ToString();

                // 상담자
                this.txt_counselorID.Text    = counselor.GetID().ToString();
                this.txt_counselorName.Text  = counselor.GetName().ToString();
                this.txt_counselorPhone.Text = counselor.GetPhone().ToString();

                // 내용
                this.txt_clientSubject.Text = counsel_Table.Subject;
                this.txt_clientMemo.Text    = counsel_Table.Memo;
                this.lbl_firstdate.Text     = counsel_Table.Firstdate.ToString();

                // 코멘트
                this.txt_Comment.Text = crypt.Decrypt(counsel_Table.Comment.ToString());
                this.lbl_comdate.Text = counsel_Table.Comdate.ToString();
            }
        }