Exemplo n.º 1
0
        private void BindPatientDetail()
        {
            Maticsoft.BLL.Patient   bll = new Maticsoft.BLL.Patient();
            Maticsoft.Model.Patient p   = bll.GetModel(int.Parse(PatientID));

            if (p != null)
            {
                this.txtIDNo.Text = p.IDCode;
                this.txtName.Text = p.Name;
            }
        }
Exemplo n.º 2
0
        private bool SavePatientInfo()
        {
            Maticsoft.BLL.Patient bll = new Maticsoft.BLL.Patient();
            bool ret = true; //标记位

            if (OperatType == 0)
            {
                Patient patientInfo = new Patient();
                patientInfo.IDCode     = this.txtIDNo.Text;
                patientInfo.Name       = this.txtName.Text;
                patientInfo.SignDate   = DateTime.Now;
                patientInfo.ModifyDate = DateTime.Now;
                ret = bll.Add(patientInfo);// PatientObject.AddPatientInfo(patientInfo);//新增屠宰信息
            }
            else if (OperatType == 1)
            {
                Patient patientInfo = bll.GetModel(int.Parse(PatientID));
                patientInfo.IDCode     = this.txtIDNo.Text;
                patientInfo.Name       = this.txtName.Text;
                patientInfo.ModifyDate = DateTime.Now;
                ret = bll.Update(patientInfo);// PatientObject.EditPatientInfo(patientInfo);//编辑屠宰信息
            }
            return(ret);
        }
Exemplo n.º 3
0
        public AfterTreatTrace(int patientID, int treatPeriod)
        {
            InitializeComponent();
            pid    = patientID;
            period = treatPeriod;
            Maticsoft.BLL.Patient patientBLL = new Maticsoft.BLL.Patient();
            Patient p = patientBLL.GetModel(pid);

            if (p != null)
            {
                patientName = p.Name;
            }
            switch (period)
            {
            case TreatPeroid.AfterTreatment.OneWeek:
                periodName = "治疗后第1周";
                break;

            case TreatPeroid.AfterTreatment.OneMonth:
                periodName = "治疗后1月";
                break;

            case TreatPeroid.AfterTreatment.ThreeMonth:
                periodName = "治疗后3月";
                break;

            case TreatPeroid.AfterTreatment.SixMonth:
                periodName = "治疗后6月";
                break;

            case TreatPeroid.AfterTreatment.OneYear:
                periodName = "治疗后1年";
                break;

            case TreatPeroid.AfterTreatment.TwoYear:
                periodName = "治疗后2年";
                break;

            case TreatPeroid.AfterTreatment.ThreeYear:
                periodName = "治疗后3年 ";
                break;

            case TreatPeroid.AfterTreatment.FourYear:
                periodName = "治疗后4年";
                break;

            case TreatPeroid.AfterTreatment.FiveYear:
                periodName = "治疗后5年";
                break;
            }
            StringBuilder sb = new StringBuilder();

            sb.Append("填写");
            sb.Append(periodName);
            sb.Append("随访数据 - ");
            sb.Append("[患者:");
            sb.Append(patientName);
            sb.Append("]");
            this.Text = sb.ToString();
            BindWeekInfo();
            FreezeForm.ChangeControlEditable(this, false);
        }