コード例 #1
0
ファイル: Patient.cs プロジェクト: yendux/BlueCloudHIS1.2
        /// <summary>
        /// 添加新处方明细
        /// </summary>
        /// <param name="presHeadNo"></param>
        /// <param name="index"></param>
        /// <param name="medicalApply"></param>
        /// <returns></returns>
        private int AddNewPresList(int presHeadNo, int index, BaseMedical medicalApply)
        {
            Model.Mz_Doc_PresList presList = new HIS.Model.Mz_Doc_PresList();
            presList.PresHeadId      = presHeadNo;
            presList.OrderNo         = index;
            presList.StatItem_Code   = medicalApply.StatItem_Code;
            presList.Item_Id         = medicalApply.Item_Id;
            presList.Item_Name       = medicalApply.Item_Name;
            presList.Item_Price      = medicalApply.Price;
            presList.Buy_Price       = medicalApply.Price;
            presList.Sell_Price      = medicalApply.Price;
            presList.Usage_Amount    = medicalApply.Num;
            presList.Usage_Unit      = medicalApply.Unit;
            presList.Usage_Rate      = 1;
            presList.Dosage          = 1;
            presList.Usage_Id        = 0;
            presList.Frequency_Id    = 0;
            presList.Days            = 1;
            presList.Item_Amount     = medicalApply.Num;
            presList.Item_Unit       = medicalApply.Unit;
            presList.Item_Rate       = 1;
            presList.RelationNum     = 1;
            presList.Unit            = medicalApply.Unit;
            presList.Tc_Flag         = medicalApply.Tc_Flag;
            presList.Service_Item_Id = medicalApply.Service_Item_Id;

            return(BindEntity <Model.Mz_Doc_PresList> .CreateInstanceDAL(oleDb).Add(presList));
        }
コード例 #2
0
 public void RefreshMedicalItemData()
 {
     HIS.MZDoc_BLL.BaseMedical medical = HIS.MZDoc_BLL.MedicalApplyFactory.CreateMedicalApplyObject(_view.CurrentApplyType);
     medical.LoadMedicalItem(_dataSet);
     //DataRow[] rows = dataSource.Select("DRUG_FLAG=0");
     //_dataSet.Tables["MedicalItem"].Rows.Clear();
     //foreach (DataRow row in rows)
     //{
     //    _dataSet.Tables["MedicalItem"].Rows.Add(row.ItemArray);
     //}
 }
コード例 #3
0
        /// <summary>
        /// 获得打印参数
        /// </summary>
        /// <param name="apply"></param>
        /// <returns></returns>
        private List <FormSite.PrintParameter> GetPrintParameter(HIS.MZDoc_BLL.BaseMedical apply)
        {
            FormSite.FormatPanel control = new FormSite.FormatPanel(apply.Apply_Content);
            if (control.Controls.Count == 0)
            {
                control = new FormSite.FormatPanel(HIS.MZDoc_BLL.OP_ReadBaseData.GetMedicalApplyXmlDocument(apply.Medical_Class));
            }
            switch (apply.Apply_Type)
            {
            case 0:
                control.SetElementValue("Purpose", apply.Item_Name);
                break;

            case 2:
                control.SetElementValue("Num", apply.Num.ToString());
                break;

            default:
                break;
            }
            return(control.PrintParameters);
        }
コード例 #4
0
 /// <summary>
 /// 加载医技项目列表
 /// </summary>
 public void LoadMedicalItem()
 {
     HIS.MZDoc_BLL.BaseMedical medical = HIS.MZDoc_BLL.MedicalApplyFactory.CreateMedicalApplyObject(_view.CurrentApplyType);
     _view.MecicalItem = (List <HIS.MZDoc_BLL.Medical_Order_Item>)HIS.MZDoc_BLL.Public.Function.DataTableToList <HIS.MZDoc_BLL.Medical_Order_Item>(medical.LoadMedicalItem(_dataSet, _view.CurrentMecicalDept, _view.CurrentMecicalClass));
     LoadApplyList();
 }
コード例 #5
0
 /// <summary>
 /// 加载项目类型
 /// </summary>
 public void LoadMedicalClass()
 {
     HIS.MZDoc_BLL.BaseMedical medical = HIS.MZDoc_BLL.MedicalApplyFactory.CreateMedicalApplyObject(_view.CurrentApplyType);
     _view.MecicalClass = medical.LoadMedicalClass(_dataSet, _view.CurrentMecicalDept);
     //LoadApplyList();
 }