public void m_mthCreateChargeVO(ref clsBihOrderDic_VO p_objOrderDicVO, ref clsBihPatientCharge_VO p_objPatientChargeVO, string p_strInPatientID, int p_intBagNum, string p_strOrderCreateAreaID) { clsDcl_CommonFind objDcl = new clsDcl_CommonFind(); DataTable dtOrderDicInfo = new DataTable(); DataTable dtPatientInfo = new DataTable(); objDcl.m_lngQueryInfoForChargeMedBag("0001039661", p_strInPatientID, ref dtOrderDicInfo, ref dtPatientInfo); clsDcl_Charge objDcl1 = new clsDcl_Charge(); DataTable dtItemInfo = new DataTable(); objDcl1.m_lngGetChargeItemByOrderID("0001039661", dtPatientInfo.Rows[0]["paytypeid_chr"].ToString(), out dtItemInfo); DataRow dr = dtItemInfo.Rows[0]; //p_objOrderDicVO p_objOrderDicVO.Type = 1; p_objOrderDicVO.OrderQue = 1; p_objOrderDicVO.OrderDicID = "0001039661"; p_objOrderDicVO.OrderDicName = dtOrderDicInfo.Rows[0][0].ToString(); p_objOrderDicVO.Spec = dtOrderDicInfo.Rows[0][1].ToString(); p_objOrderDicVO.Qty = 0; p_objOrderDicVO.PriceMny = 0; p_objOrderDicVO.TotalMny = 0; p_objOrderDicVO.AttachOrderID = "1->0001039661"; p_objOrderDicVO.SbBaseMny = 0; //p_objPatientChargeVO p_objPatientChargeVO.PatientID = dtPatientInfo.Rows[0]["patientid_chr"].ToString(); p_objPatientChargeVO.RegisterID = dtPatientInfo.Rows[0]["registerid_chr"].ToString(); p_objPatientChargeVO.ClacArea = dtPatientInfo.Rows[0]["areaid_chr"].ToString(); p_objPatientChargeVO.CreateArea = p_strOrderCreateAreaID; p_objPatientChargeVO.CalcCateID = dr["itemipcalctype_chr"].ToString(); p_objPatientChargeVO.InvCateID = dr["itemipinvtype_chr"].ToString(); p_objPatientChargeVO.ChargeItemID = dr["itemid_chr"].ToString(); p_objPatientChargeVO.ChargeItemName = dr["itemname_vchr"].ToString(); if (dr["ipchargeflg_int"].ToString().Trim() == "1") { p_objPatientChargeVO.Unit = dr["itemipunit_chr"].ToString().Trim(); p_objPatientChargeVO.UnitPrice = clsPublic.ConvertObjToDecimal(dr["submoney"]); } else { p_objPatientChargeVO.Unit = dr["itemunit_chr"].ToString().Trim(); p_objPatientChargeVO.UnitPrice = clsPublic.ConvertObjToDecimal(dr["itemprice_mny"]); } p_objPatientChargeVO.Amount = clsPublic.ConvertObjToDecimal(p_intBagNum); p_objPatientChargeVO.Discount = Convert.ToDecimal(dr["precent_dec"]); p_objPatientChargeVO.Ismepay = 0; p_objPatientChargeVO.Des = ""; p_objPatientChargeVO.CreateType = 4; p_objPatientChargeVO.Creator = this.strEmpID; p_objPatientChargeVO.Operator = this.strEmpID; p_objPatientChargeVO.PStatus = 1; p_objPatientChargeVO.Activator = this.strEmpID; p_objPatientChargeVO.ActivateType = 2; p_objPatientChargeVO.IsRich = int.Parse(dr["isrich_int"].ToString()); p_objPatientChargeVO.CurAreaID = dtPatientInfo.Rows[0]["areaid_chr"].ToString(); p_objPatientChargeVO.CurBedID = dtPatientInfo.Rows[0]["bedid_chr"].ToString(); p_objPatientChargeVO.DoctorID = dtPatientInfo.Rows[0]["casedoctor_chr"].ToString(); p_objPatientChargeVO.Doctor = dtPatientInfo.Rows[0]["lastname_vchr"].ToString(); p_objPatientChargeVO.DoctorGroupID = ""; p_objPatientChargeVO.NeedConfirm = 0; p_objPatientChargeVO.ActiveDat = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); p_objPatientChargeVO.TotalMoney_dec = clsPublic.Round(p_objPatientChargeVO.UnitPrice * p_objPatientChargeVO.Amount, 2); p_objPatientChargeVO.AcctMoney_dec = p_objPatientChargeVO.TotalMoney_dec - clsPublic.Round(p_objPatientChargeVO.UnitPrice * p_objPatientChargeVO.Amount * p_objPatientChargeVO.Discount / 100, 2); p_objPatientChargeVO.AttachOrderID = "1->0001039661"; p_objPatientChargeVO.AttachOrderBaseNum = 0; p_objPatientChargeVO.SPEC_VCHR = dr["itemspec_vchr"].ToString(); p_objPatientChargeVO.PutMedicineFlag = 0; p_objPatientChargeVO.CHARGEDOCTORID_CHR = dtPatientInfo.Rows[0]["casedoctor_chr"].ToString(); p_objPatientChargeVO.CHARGEDOCTOR_VCHR = dtPatientInfo.Rows[0]["lastname_vchr"].ToString(); p_objPatientChargeVO.CHARGEDOCTORGROUPID_CHR = ""; }