Ejemplo n.º 1
0
def submit_asset_info():
    try:
        params = request.form
        ams = AssetManagerService()
        ret, msg = ams.store_edit_asset_info_data(params)
        if ret:
            LOG.info(msg)
            return ajax.api_success(msg=msg, data=[])
        else:
            LOG.error(msg)
            return ajax.api_error(msg=msg)
    except Exception, _ex:
        LOG.error("error occured while submit_asset_info : %s" % str(_ex))
        return u"编辑失败"
Ejemplo n.º 2
0
def show_asset_info_by_rtx_id(rtx_id):
    assetInfos = AssetInfoDal().get_asset_info_by_user_name(rtx_id)
    ams = AssetManagerService()
    return ams.get_detail_asset_info_all(assetInfos, len(assetInfos))
Ejemplo n.º 3
0
def get_operate_infos(asset_id):
    from itdblib.dal.operation_info_dal import OperationInfoDal

    operInfos = OperationInfoDal().get_all_oper_info_by_asset_id(asset_id)
    ams = AssetManagerService()
    return ams.get_asset_operate_json(operInfos)
Ejemplo n.º 4
0
def show_asset_info_by_id(asset_id):
    ais = AssetManagerService()
    return ais.get_asset_info_by_asset_id(asset_id)
Ejemplo n.º 5
0
def show_advanced_asset_info():
    start = request.values['iDisplayStart']
    count = request.values['iDisplayLength']
    ams = AssetManagerService()
    params = request.values
    return ams.get_asset_info_advanced_search_show(params, start, count)
Ejemplo n.º 6
0
def show_asset_info_by_all(id):
    start = request.values['iDisplayStart']
    count = request.values['iDisplayLength']
    ams = AssetManagerService()
    return ams.get_asset_info_search_show(id, start, count)
Ejemplo n.º 7
0
def show_asset_info():
    start = request.form['iDisplayStart']
    count = request.form['iDisplayLength']
    print request.form
    ams = AssetManagerService()
    return ams.get_asset_info_all_show(start, count)