using System;

namespace HISClinic.DataModel
{
	/// <summary>
	/// PrescriptionsEx 的摘要说明。
	/// </summary>
	public class PrescriptionsEx:Prescriptions
	{
		public PrescriptionsEx():base()
		{
			//
			// TODO: 在此处添加构造函数逻辑
			//
		}

		public class t_PrescriptionMasterDataTableEx:Prescriptions.t_PrescriptionMasterDataTable
		{
			//表名和字段名的常量
			public const string TableName_PrescriptionMaster="t_PrescriptionMaster";
			public const string FIELD_RxID="RxID";
			public const string FIELD_PatientID="PatientID";
			public const string FIELD_PatientName="PatientName";
			public const string FIELD_FirstVisit="FirstVisit";			
			public const string FIELD_DepartmentID="DepartmentID";			
			public const string FIELD_DepartmentName="DepartmentName";
			public const string FIELD_PrescriberID="PrescriberID";
			public const string FIELD_PrescriberName="PrescriberName";
			public const string FIELD_MakeDate="MakeDate";
			public const string FIELD_Diagnosis1ID="Diagnosis1ID";
			public const string FIELD_Diagnosis1Name="Diagnosis1Name";
			public const string FIELD_Diagnosis2ID="Diagnosis2ID";
			public const string FIELD_Diagnosis2Name="Diagnosis2Name";
			public const string FIELD_BillOfRxID="BillOfRxID";
			public const string FIELD_Status="Status";
			public const string FIELD_SumTotal="SumTotal";

			internal t_PrescriptionMasterDataTableEx()
			{
			}
		}

		public class t_PrescriptionDetailDataTableEx:Prescriptions.t_PrescriptionDetailDataTable
		{
			//表名和字段名的常量
			public const string TableName_PrescriptionDetail="t_PrescriptionDetail";
			public const string FIELD_RxID="RxID";
			public const string FIELD_LineNumber="LineNumber";
			public const string FIELD_MedicineID="MedicineID";
			public const string FIELD_MedicineName="MedicineName";			
			public const string FIELD_MedicineSpec="MedicineSpec";			
			public const string FIELD_DailyTimes="DailyTimes";
			public const string FIELD_DosageEverytime="DosageEverytime";
			public const string FIELD_UnitName="UnitName";
			public const string FIELD_CommomUsage="CommomUsage";
			public const string FIELD_Quantity="Quantity";
			public const string FIELD_UnitPrice="UnitPrice";
			public const string FIELD_SubTotal="SubTotal";
            
			internal t_PrescriptionDetailDataTableEx()
			{

			}
		}

		/// <summary>
		/// 处方的状态
		/// </summary>
		public enum PrescriptionStatus
		{
			Maked=1,
			Billed
		}
	}
}
