Example #1
0
        private string PostData(Dictionary <string, string> dic)
        {
            UnameAndPwd up     = new UnameAndPwd();
            string      result = FreezerProUtility.Fp_BLL.TestData.ImportTestData(up.GetUp(), "诊断信息", dic);

            return(result);
        }
Example #2
0
        private string PostData(string str)
        {
            UnameAndPwd up     = new UnameAndPwd();
            string      result = FreezerProUtility.Fp_BLL.TestData.ImportTestData(up.GetUp(), "临床检验数据", str);

            return(result);
        }
Example #3
0
        public string Import(object obj, string sampleSourceTypeName, string ssName, string ssDescription)
        {
            UnameAndPwd up = new UnameAndPwd();
            Dictionary<string, string> dic = new Dictionary<string, string>();
            //将前台传入的对象转换成字典
            Dictionary<string, string> dataDic = Common.ObjAndDic.ObjectToDic(obj);
            //获取医院字段匹配字典
            Dictionary<string, string> matchField = GetMatchFieldsXmlToDic("configXML\\MatchFields.xml", "/Matchings/*");
            //过滤字段
            //根据样品源类型过滤字段
            List<string> list = FpUtility.Fp_BLL.SampleSocrce.GetSampleSourceTypeFieldByTypeName(up.GetUp(), sampleSourceTypeName);
            //匹配字段并转换成
            dic = MatchDic(list, dataDic, matchField);
            Dictionary<string, string> nameAndDescDic = new Dictionary<string, string>() { { "Name", ssName }, { "Description", ssDescription } };
            Dictionary<string, string> temDic = new Dictionary<string, string>();
            if (dic != null && dic.Count > 0)
            {
                foreach (var item in dic)
                {
                    if (!nameAndDescDic.ContainsKey(item.Key))
                    {
                        nameAndDescDic.Add(item.Key, item.Value);
                    }
                }
            }
            temDic = nameAndDescDic;

            string result = FpUtility.Fp_BLL.SampleSocrce.ImportSampleSourceDataToFp(up.GetUp(), sampleSourceTypeName, temDic);
            return result;
        }
Example #4
0
        public string PostData(Dictionary <string, string> dic)
        {
            UnameAndPwd up     = new UnameAndPwd();
            string      result = FreezerProUtility.Fp_BLL.SampleSocrce.ImportSampleSourceDataToFp(up.GetUp(), "患者信息", dic);

            return(result);
        }
Example #5
0
 private string PostData(string str)
 {
     UnameAndPwd up = new UnameAndPwd();
     string result = FreezerProUtility.Fp_BLL.TestData.ImportTestData(up.GetUp(), "临床检验数据", str);
     return result;
 }
Example #6
0
 private string PostData(Dictionary<string, string> dic)
 {
     UnameAndPwd up = new UnameAndPwd();
     string result = FreezerProUtility.Fp_BLL.SampleSocrce.ImportSampleSourceDataToFp(up.GetUp(), "患者信息", dic);
     return result;
 }
Example #7
0
 private string PostData(Dictionary<string, string> dic)
 {
     UnameAndPwd up = new UnameAndPwd();
     string result = FreezerProUtility.Fp_BLL.TestData.ImportTestData(up.GetUp(), "诊断信息", dic);
     return result;
 }