Ejemplo n.º 1
0
        public long m_lngAddNewRecord(clsEquipmentTypeInfo obj)
        {
            long lngRes = 0;

            com.digitalwave.EquipmentTypeService.clsEquipmentTypeService objETServ =
                (com.digitalwave.EquipmentTypeService.clsEquipmentTypeService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.EquipmentTypeService.clsEquipmentTypeService));

            try
            {
                string strXML = "";

                strXML = "<Patient EquipmentTypeID ='" + obj.strEquipmentTypeID + "' "
                         + "Begin_Type_Date='" + obj.strBegin_Type_Date + "' "
                         + "Status='" + obj.strStatus + "' "
                         + "PYCode='" + obj.strPYCode + "' "
                         + "EquipmentTypeName='" + obj.strEquipmentTypeName + "' "
                         + "OperatorID='" + obj.strOperatorID + "' "
                         + "DeActivedDate='" + obj.strDeActivedDate + "' />";

                lngRes = objETServ.m_lngAddNewRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, strXML);
            }
            finally
            {
                //objETServ.Dispose();
            }
            return(lngRes);
        }