Exemple #1
0
 public WithMindControllerPipsDecoration(Actor self, WithMindControllerPipsDecorationInfo info)
     : base(self, info)
 {
     mindController = self.Trait <MindController>();
     pipCount       = mindController.Info.Capacity;
     pips           = new Animation(self.World, info.Image);
 }
Exemple #2
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();
            }
        }
Exemple #3
0
        public DetailShowFrm(Object v)
        {
            InitializeComponent();
            Member member = (Member)v;

            mind           = new MindController();
            counselMemoFrm = new CounselMemo(null);

            member.GetID();

            this.txt_ID.Text         = member.GetID().ToString();
            this.txt_Name.Text       = member.GetName().ToString();
            this.txt_Phone.Text      = member.GetPhone().ToString();
            this.txt_Email.Text      = member.GetEmail().ToString();
            this.dtp_birthdate.Value = member.GetBirthDate();
            this.cmb_familyType.Text = member.GetFamilytype();

            // DatagridView
            RefreshDataGrid();

            // ComboBox
            DataTable dt = mind.GetCmbFamilyType();

            cmb_familyType.DataSource    = dt;
            cmb_familyType.DisplayMember = "Name";
            cmb_familyType.ValueMember   = "Id";
        }
Exemple #4
0
        public CounselRegister(object v1, object v2)
        {
            InitializeComponent();
            this.mind            = new MindController();
            this.clientMember    = (Member)v1;
            this.counselorMember = (Member)v2;

            this.txt_clientID.Text    = clientMember.GetID().ToString();
            this.txt_clientName.Text  = clientMember.GetName();
            this.txt_clientPhone.Text = clientMember.GetPhone();

            this.txt_counselorID.Text    = counselorMember.GetID().ToString();
            this.txt_counselorName.Text  = counselorMember.GetName();
            this.txt_counselorPhone.Text = counselorMember.GetPhone();
        }
Exemple #5
0
        public MainFrm()
        {
            this.mind = new MindController();

            InitializeComponent();
            RefreshDataGrid();

            this.toolStripStatusLbl.Text = DateTime.Now.ToString() + "::::: 환영합니다.";

            DataTable dt = mind.GetCmbFamilyType();

            cmb_MemType.DataSource    = dt;
            cmb_MemType.DisplayMember = "Name";
            cmb_MemType.ValueMember   = "Id";
        }