public frmSelectType() { InitializeComponent(); //objChargeItem = new clsChargeItemSvc(); objChargeItem = (clsChargeItemSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsChargeItemSvc)); dataProc = (DataProcess)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(DataProcess)); }
public long m_lngGetChargeClinicUsage(System.Security.Principal.IPrincipal p_objPrincipal, string strITEMID_CHR, string strUSAGEID_CHR, out double p_dblMoney) { long lngRes = 0; p_dblMoney = 0; clsPrivilegeHandleService objPrivilege = new clsPrivilegeHandleService(); lngRes = objPrivilege.m_lngCheckCallPrivilege(p_objPrincipal, "com.digitalwave.iCare.middletier.LIS.clsLisDeviceSvc", "m_lngDoAddNewT_opr_opinvoiceman"); if (lngRes < 0) { return(-1); } clsChargeItem_VO[] objItemArr; lngRes = new clsChargeItemSvc().m_GetItemByUsageIDAndItemID(p_objPrincipal, strITEMID_CHR, strUSAGEID_CHR, out objItemArr); if (lngRes > 0) { //住院单价 itemprice_mny //decode(a.IPCHARGEFLG_INT,1,Round(a.ItemPrice_Mny/a.PackQty_Dec,4),0,a.ItemPrice_Mny,Round(a.ItemPrice_Mny/a.PackQty_Dec,4)) MinPrice double dblPrice = 0; try { //住院收费单位 0 -基本单位 1-最小单位 if (objItemArr[0].m_intOPCHARGEFLG_INT == 0) //门诊收费单位 0 -基本单位 1-最小单位 { dblPrice = double.Parse(objItemArr[0].m_fltItemPrice.ToString()); } else { double dblItemPrice = double.Parse(objItemArr[0].m_fltItemPrice.ToString()); double dblPACKQTY_DEC = double.Parse(objItemArr[0].m_decPACKQTY_DEC.ToString()); dblPrice = double.Parse((dblItemPrice / dblPACKQTY_DEC).ToString("0.0000")); } } catch {} //门诊数量 double dblQTY_DEC = 0; try { dblQTY_DEC = double.Parse(objItemArr[0].m_strUNITPRICE.ToString()); } catch {} //医生下的剂量 double dblDosage = 0; try { dblDosage = double.Parse(objItemArr[0].m_strDosage.ToString()); } catch {} lngRes = m_lngGetChargeClinicUsage(p_objPrincipal, dblPrice, 1, dblQTY_DEC, objItemArr[0].m_intCLINICTYPE_INT, dblDosage, out p_dblMoney); } return(lngRes); }
public frmSelectType(clsApplyRecord vo) { InitializeComponent(); printer = new FormPrinter(); objProEdit = new ProjectEditor(this); objAR_VO = vo; objChargeItem = (clsChargeItemSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsChargeItemSvc)); //new clsChargeItemSvc(); this.cmdTerm.Text = "编号"; dataProc = (DataProcess)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(DataProcess)); }