Exemplo n.º 1
0
 public string QueryFrequence()
 {
     using (SqliteDBHelper sqldb = new SqliteDBHelper())
     {
         DataTable dt = sqldb.Query(SqlTools.SqlQueryFrequence);
         return(TypeChange.DataTableToXml(dt));
     }
 }
Exemplo n.º 2
0
 public string PharmAdviceCount()
 {
     using (SqliteDBHelper sqldb = new SqliteDBHelper())
     {
         DataTable dt = sqldb.Query(SqlTools.SqlQueryPharmAdviceCount);
         return(TypeChange.DataTableToXml(dt));
     }
 }
Exemplo n.º 3
0
    public string QueryLoaclDataCount()
    {
        string SqlText = @"Select Count(1) LoacalDataCount From [Patient]";

        using (SqliteDBHelper sqldb = new SqliteDBHelper())
        {
            DataTable dt = sqldb.Query(SqlText);
            return(TypeChange.DataTableToXml(dt));
        }
    }
Exemplo n.º 4
0
 public string QueryLisResult(string IllcaseNo)
 {
     SQLiteParameter[] sqlpar = new SQLiteParameter[1];
     sqlpar[0] = new SQLiteParameter("1", IllcaseNo);
     using (SqliteDBHelper sqldb = new SqliteDBHelper())
     {
         DataTable dt = sqldb.Query(SqlTools.SqlQueryLisResult, sqlpar);
         return(TypeChange.DataTableToXml(dt));
     }
 }
Exemplo n.º 5
0
 public string QueryCodeListByGroup(string GroupName)
 {
     SQLiteParameter[] sqlpar = new SQLiteParameter[1];
     sqlpar[0] = new SQLiteParameter("1", GroupName);
     using (SqliteDBHelper sqldb = new SqliteDBHelper())
     {
         DataTable dt = sqldb.Query(SqlTools.SqlQueryCodeListByGroup, sqlpar);
         return(TypeChange.DataTableToXml(dt));
     }
 }
Exemplo n.º 6
0
 public string QueryCheckApply(string InhosID)
 {
     SQLiteParameter[] sqlpar = new SQLiteParameter[1];
     sqlpar[0] = new SQLiteParameter("1", InhosID);
     using (SqliteDBHelper sqldb = new SqliteDBHelper())
     {
         DataTable dt = sqldb.Query(SqlTools.SqlQueryCheckApply, sqlpar);
         return(TypeChange.DataTableToXml(dt));
     }
 }
Exemplo n.º 7
0
 public string QueryDeptPatientCount(string DeptId, string InhosStatus)
 {
     SQLiteParameter[] sqlpar = new SQLiteParameter[2];
     sqlpar[0] = new SQLiteParameter("1", DeptId);
     sqlpar[1] = new SQLiteParameter("2", InhosStatus);
     using (SqliteDBHelper sqldb = new SqliteDBHelper())
     {
         DataTable dt = sqldb.Query(SqlTools.SqlQueryDeptPatientCount, sqlpar);
         return(TypeChange.DataTableToXml(dt));
     }
 }
Exemplo n.º 8
0
 public string QueryCheckLogDetail(string InhosID, string LogType)
 {
     SQLiteParameter[] sqlpar = new SQLiteParameter[2];
     sqlpar[0] = new SQLiteParameter("1", InhosID);
     sqlpar[1] = new SQLiteParameter("2", LogType);
     using (SqliteDBHelper sqldb = new SqliteDBHelper())
     {
         DataTable dt = sqldb.Query(SqlTools.SqlQueryCheckLogDetail, sqlpar);
         return(TypeChange.DataTableToXml(dt));
     }
 }
Exemplo n.º 9
0
 public string QueryPatientEmrDocDetail(string InhosID, string SectionNo)
 {
     SQLiteParameter[] sqlpar = new SQLiteParameter[2];
     sqlpar[0] = new SQLiteParameter("1", InhosID);
     sqlpar[1] = new SQLiteParameter("2", SectionNo);
     using (SqliteDBHelper sqldb = new SqliteDBHelper())
     {
         DataTable dt = sqldb.Query(SqlTools.SqlQueryPatientEmrDocDetail, sqlpar);
         return(TypeChange.DataTableToXml(dt));
     }
 }
Exemplo n.º 10
0
 public string QueryDutyResentPatientList(string DoctorID, string DPTypes)
 {
     SQLiteParameter[] sqlpar = new SQLiteParameter[2];
     sqlpar[0] = new SQLiteParameter("1", DoctorID);
     sqlpar[1] = new SQLiteParameter("2", DPTypes);
     using (SqliteDBHelper sqldb = new SqliteDBHelper())
     {
         DataTable dt = sqldb.Query(SqlTools.SqlQueryDutyResentPatientList, sqlpar);
         return(TypeChange.DataTableToXml(dt));
     }
 }
Exemplo n.º 11
0
 public string QueryAdviceByLike(string AdviceType, string AdviceFilter, string StandingType)
 {
     SQLiteParameter[] sqlpar = new SQLiteParameter[3];
     sqlpar[0] = new SQLiteParameter("1", AdviceType);
     sqlpar[1] = new SQLiteParameter("2", "%" + AdviceFilter + "%");
     sqlpar[2] = new SQLiteParameter("3", StandingType);
     using (SqliteDBHelper sqldb = new SqliteDBHelper())
     {
         DataTable dt = sqldb.Query(SqlTools.SqlQueryAdviceByLike, sqlpar);
         return(TypeChange.DataTableToXml(dt));
     }
 }
Exemplo n.º 12
0
 public string QueryMyPatientList(string DoctorID, string InhosStatus)
 {
     SQLiteParameter[] sqlpar = new SQLiteParameter[2];
     sqlpar[0] = new SQLiteParameter("1", DoctorID);
     sqlpar[1] = new SQLiteParameter("2", InhosStatus);
     using (SqliteDBHelper sqldb = new SqliteDBHelper())
     {
         DataTable dt  = sqldb.Query(SqlTools.SqlQueryMyPatient, sqlpar);
         string    str = TypeChange.DataTableToXml(dt);
         return(str);
     }
 }
Exemplo n.º 13
0
 public string QueryAdviceCount(string InhosID, string StandingFlag)
 {
     SQLiteParameter[] sqlpar = new SQLiteParameter[4];
     sqlpar[0] = new SQLiteParameter("1", InhosID);
     sqlpar[1] = new SQLiteParameter("2", StandingFlag);
     sqlpar[2] = new SQLiteParameter("3", InhosID);
     sqlpar[3] = new SQLiteParameter("4", StandingFlag);
     using (SqliteDBHelper sqldb = new SqliteDBHelper())
     {
         DataTable dt = sqldb.Query(SqlTools.SqlQueryAdviceCount, sqlpar);
         return(TypeChange.DataTableToXml(dt));
     }
 }
Exemplo n.º 14
0
    public string GetUser(string userCode, string pwd)
    {
        string sql = @"select * from User where code=:1 and password=:2";

        SQLiteParameter[] sqlpar = new SQLiteParameter[2];
        sqlpar[0] = new SQLiteParameter("1", userCode);
        sqlpar[1] = new SQLiteParameter("2", pwd);
        using (SqliteDBHelper sqldb = new SqliteDBHelper())
        {
            DataTable dt  = sqldb.Query(sql, sqlpar);
            string    str = TypeChange.DataTableToXml(dt);
            return(TypeChange.DataTableToXml(dt));
        }
    }