protected void Page_Load(object sender, EventArgs e) { Response.ContentType = "text/plain"; string username = Common.CookieHelper.GetCookieValue("username"); RuRo.Model.BasedInfo baseinfo = new Model.BasedInfo(); RuRo.Model.ClinicalInfo clincicalinfo = new Model.ClinicalInfo(); RuRo.Model.TB_SAMPLE_LOG log = new Model.TB_SAMPLE_LOG(); }
/// <summary> /// 添加数据到BaseInfo,其实这里可以简化非常多,下次修改 /// </summary> public void InsertBaseInfo(Dictionary<string, string> dic) { Model.BasedInfo baseinfo = new Model.BasedInfo(); baseinfo.PatientName = dic["姓名"]; baseinfo.IPSeqNoText = dic["住院号"]; baseinfo.PatientCardNo = dic["就诊卡号"]; baseinfo.SexFlag = dic["性别"]; baseinfo.Birthday = Convert.ToDateTime(dic["出生日期"]); baseinfo.BloodTypeFlag = dic["血型"]; baseinfo.Phone = dic["联系电话"]; baseinfo.ContactPhone = dic["联系人电话"]; baseinfo.ContactPerson = dic["联系人"]; baseinfo.NativePlace = dic["籍贯"]; baseinfo.RegisterSeqNO = dic["门诊流水号"]; baseinfo.PatientID = Convert.ToInt32(dic["患者ID"].ToString()); baseinfo.RegisterID = Convert.ToInt32(dic["门诊ID"]); baseinfo.InPatientID = Convert.ToInt32(dic["住院ID"]); baseinfo.ADDTIME = Convert.ToDateTime(dic["ADDTIME"].ToString()); baseinfo.IdentityCardNo=dic["身份证号"]; DAL.BasedInfo baseinfo_dal = new DAL.BasedInfo(); //查询去除重复后添加数据 DataSet ds = baseinfo_dal.GetList(" PatientID='" + baseinfo.InPatientID + "'"); if (ds.Tables[0].Rows.Count <= 0) { baseinfo_dal.Add(baseinfo); } else { } //int baseinfoID=0; //if (count>0) //{ // DataSet ds=baseinfo_dal.GetList(1, "", ""); // baseinfoID = Convert.ToInt32(ds.Tables[0].Rows[0]["id"]); //} //return baseinfoID; }