Exemple #1
0
        public bool UploadzyPatFee(System.Collections.Hashtable hashtable)
        {
            try
            {
                datasource.OperationId    = _UploadzyPatFee_OperationId;
                datasource.PutParamByName = CxNhBaseData.Put_01204Dic(hashtable);
                datasource.PutRecByName   = new DataSet();
                CxNhBaseData.Put_01204DTywxmmx(datasource.PutRecByName, hashtable);
                CxNhBaseData.Put_01204DTyzcfmx(datasource.PutRecByName, hashtable);

                if (datasource.Execute())
                {
                    string flag = datasource.GetDataReslut("Flag");
                    if (flag == "0")
                    {
                        datasource.Complete(ref _message);
                        return(true);
                    }
                    else
                    {
                        datasource.Complete(ref _message);
                    }
                }
                return(false);
            }
            catch (Exception err)
            {
                datasource.Complete(ref _message);
                //_message += err.Message;
                throw err;
            }
        }
Exemple #2
0
 private int IsRecoup(System.Collections.Hashtable hashtable)
 {
     try
     {
         datasource.OperationId    = _IsRecoup_OperationId;
         datasource.PutParamByName = CxNhBaseData.Put_00020Dic(hashtable);
         if (datasource.Execute())
         {
             string flag = datasource.GetDataReslut("Flag");
             if (flag == "0")
             {
                 string bcbz = datasource.GetDataReslut("BCBZ");
                 datasource.Complete(ref _message);
                 return(Convert.ToInt32(bcbz.Trim()));
             }
             else
             {
                 datasource.Complete(ref _message);
             }
         }
         return(0);
     }
     catch (Exception err)
     {
         datasource.Complete(ref _message);
         throw err;
     }
 }
Exemple #3
0
 public bool CancelCharge(System.Collections.Hashtable hashtable)
 {
     try
     {
         if (IsRecoup(hashtable) == 2 || IsRecoup(hashtable) == 1)
         {
             datasource.OperationId    = _CancelCharge_OperationId;
             datasource.PutParamByName = CxNhBaseData.Put_01217Dic(hashtable);
             if (datasource.Execute())
             {
                 string flag = datasource.GetDataReslut("Flag");
                 if (flag == "0")
                 {
                     datasource.Complete(ref _message);
                     return(true);
                 }
                 else
                 {
                     datasource.Complete(ref _message);
                 }
             }
         }
         return(false);
     }
     catch (Exception err)
     {
         datasource.Complete();
         throw err;
     }
 }
Exemple #4
0
 public bool AlterRegister(System.Collections.Hashtable hashtable)
 {
     try
     {
         datasource.OperationId    = _AlterRegister_OperationId;
         datasource.PutParamByName = CxNhBaseData.Put_01202Dic(hashtable);
         if (datasource.Execute())
         {
             string flag = datasource.GetDataReslut("Flag");
             if (flag == "0")
             {
                 datasource.Complete(ref _message);
                 return(true);
             }
             else
             {
                 datasource.Complete(ref _message);
             }
         }
         return(false);
     }
     catch (Exception err)
     {
         datasource.Complete(ref _message);
         throw err;
     }
 }
Exemple #5
0
 public object Register(System.Collections.Hashtable hashtable)
 {
     try
     {
         datasource.OperationId    = _Register_OperationId;
         datasource.PutParamByName = CxNhBaseData.Put_01201Dic(hashtable);
         if (datasource.Execute())
         {
             string flag = datasource.GetDataReslut("Flag");
             if (flag == "0")
             {
                 string Id = datasource.GetDataReslut("Id");
                 datasource.Complete(ref _message);
                 return(Id);
             }
             else
             {
                 datasource.Complete(ref _message);
                 throw new Exception("入院登记失败!" + datasource.GetDataReslut("Message"));
             }
         }
         return(null);
     }
     catch (Exception err)
     {
         datasource.Complete(ref _message);
         throw new Exception(err.Message);
     }
 }
Exemple #6
0
        //11006
        public string UploadMatchContent(System.Collections.Hashtable hashtable)
        {
            string Serial_match = null;

            Serial_match = JudgeSingleContentMatch(hashtable);
            if (Serial_match == "-1")
            {
                datasource.OperationId    = _UploadMatchContent_OperationId;
                datasource.PutParamByName = CxNhBaseData.Put_11006Dic(hashtable);
                if (datasource.Execute())
                {
                    string flag = datasource.GetDataReslut("Flag");
                    if (flag == "0")
                    {
                        Serial_match = datasource.GetDataReslut("Serial_match");
                        datasource.Complete();
                        return(Serial_match);
                    }
                    else
                    {
                        datasource.Complete();
                        return("-1");
                        //throw new Exception("上传匹配数据失败:" + datasource.GetErrorMessage());
                    }
                }
            }
            return(Serial_match);
        }
Exemple #7
0
 //11001
 public DataTable DownLoadItemContent(System.Collections.Hashtable hashtable)
 {
     datasource.OperationId = _DownLoadItemContent_OperationId;
     if (datasource.Execute())
     {
         datasource.OutDataSet = new DataSet();
         CxNhBaseData.Out_11001DT(datasource.OutDataSet);
         DataSet ds = datasource.GetDataSet();
         datasource.Complete();
         return(ds.Tables[0]);
     }
     return(null);
 }
Exemple #8
0
 //11007
 public DataTable DownLoadDrugContent(System.Collections.Hashtable hashtable)
 {
     //CxNhDataSource datasource = new CxNhDataSource();
     datasource.OperationId = _DownLoadDrugContent_OperationId;
     if (datasource.Execute())
     {
         datasource.OutDataSet = new DataSet();
         CxNhBaseData.Out_11007DT(datasource.OutDataSet);
         DataSet ds = datasource.GetDataSet();
         datasource.Complete();
         //this.dataGridView1.DataSource = ds.Tables[0];
         return(ds.Tables[0]);
     }
     return(null);
 }
Exemple #9
0
 //11004
 public bool DeleteMatchContent(System.Collections.Hashtable hashtable)
 {
     datasource.OperationId    = _DeleteMatchContent_OperationId;
     datasource.PutParamByName = CxNhBaseData.Put_11004Dic(hashtable);
     if (datasource.Execute())
     {
         string flag = datasource.GetDataReslut("Flag");
         datasource.Complete();
         if (flag == "0")
         {
             return(true);
         }
     }
     return(false);
 }
Exemple #10
0
 public object GetPatientInfo(System.Collections.Hashtable hashtable)
 {
     try
     {
         datasource.OperationId    = _GetPatientInfo_OperationId;
         datasource.PutParamByName = CxNhBaseData.Put_00015Dic(hashtable);
         if (datasource.Execute())
         {
             datasource.OutDataSet = new DataSet();
             CxNhBaseData.Out_00015DT(datasource.OutDataSet);
             DataSet ds = datasource.GetDataSet();
             datasource.Complete(ref _message);
             return(ds.Tables[0]);
         }
         return(null);
     }
     catch (Exception err)
     {
         datasource.Complete(ref _message);
         throw err;
     }
 }
Exemple #11
0
 public object Charge(System.Collections.Hashtable hashtable)
 {
     try
     {
         datasource.OperationId    = _Charge_OperationId;
         datasource.PutParamByName = CxNhBaseData.Put_01216Dic(hashtable);
         if (datasource.Execute())
         {
             datasource.OutDataSet = new DataSet();
             CxNhBaseData.Out_01216DT1(datasource.OutDataSet);
             CxNhBaseData.Out_01216DT2(datasource.OutDataSet);
             CxNhBaseData.Out_01216DT3(datasource.OutDataSet);
             DataSet ds = datasource.GetDataSet();
             datasource.Complete(ref _message);
             return(ds);
         }
         return(null);
     }
     catch (Exception err)
     {
         datasource.Complete(ref _message);
         throw err;
     }
 }