#coding=utf-8

CONTENT_TYPE_SORTING = (
    'office-officenotice',
    'office-officenoticebrowserecord',

    'plan-saleplan',  # 销售计划管理
    'order-saleorder',  # 销售管理

    'plan-productionplan',  # 生产计划管理

    'purchase-purchaseplan',  # 计划管理
    'purchase-purchaseuser',  # 询价管理
    'purchase-purchaseorder',  # 合同管理
    'purchase-purchasepayment',  # 付款管理
    'purchase-purchaseorderdetail',  # 发票管理

    'purchase-godownentry',  # 入库管理
    'purchase-purchaseprice',  # 入库查询
    'material-deliver',  # 出库管理
    'plan-saleplandetail',  # 出库查询
    'purchase-godownentryreturn',  # 退货管理
    'account-subdepartment',  # 退货查询
    'material-deliverreturn',  # 退料管理
    'warehouse-warehouserecord',  # 退料查询
    'warehouse-inventory',  # 盘存管理
    'warehouse-warehousestockrecord',  # 库存查询

    'purchase-godownentrydetail',  # 入库管理
    'purchase-purchasepaymentdetail',  # 入库查询
    'material-deliverdetail',  # 出库管理
    'plan-productionplandetail',  # 出库查询
    'purchase-godownentryreturndetail',  # 退货管理
    'account-subemployee',  # 退货查询
    'material-deliverreturndetail',  # 退料管理
    'purchase-purchaseplandetail',  # 退料查询
    'warehouse-inventorydetail',  # 盘存管理
    'warehouse-warehouserecorddetail',  # 库存查询

    'goods-goodsgodownentry',  # 入库管理
    'order-saleorderdetail',  # 入库查询
    'order-goodsdeliver',  # 出库管理
    'order-goodsdeliverdetail',  # 出库查询
    'order-goodsdeliverreturn',  # 退库管理
    'order-goodsdeliverreturndetail',  # 退库查询
    'goods-goodsgodownentrydetail',  # 盘存管理
    'warehouse-warehousebackmap',  # 库存查询


    'material-material',  # 原料产品管理
    'material-consumable',  # 耗材产品管理
    'goods-goods',  # 成品产品管理
    'warehouse-warehouse',  # 原料仓别管理
    'warehouse-warehouseadmin',  # 耗材仓别管理
    'warehouse-warehousestock',  # 成品仓别管理
    'account-department',  # 组织结构管理
    'foundation-option',  # 自定义项管理
    'supplier-supplier',  # 供应商管理
    'customer-customer',  # 客户管理
    'account-user',  # 人员管理
    'foundation-bizlog',  # 权限管理
    'config-config',  # 基础设置

    'product-productbase',
    'finance-financecategory',

)

MENU_TO_MODEL = (
    (u'公告管理', ('office-notice', 'office-noticebrowserecord')),
    (u'销售管理', ('order-saleorder', 'plan-saleplan')),
    (u'生产管理', ('plan-productionplan')),
    (u'采购管理', ('purchase-purchaseplan', 'purchase-purchaseuser', 'purchase-purchaseorder'
               , 'purchase-purchasepayment','purchase-purchaseorderdetail',)),
    (u'原料管理', ('purchase-godownentry', 'purchase-purchaseprice', 'material-deliver', 'plan-saleplandetail',
               'purchase-godownentryreturn', 'account-subdepartment', 'material-deliverreturn'
               ,'warehouse-warehouserecord','warehouse-inventory','warehouse-warehousestockrecord',)),
    (u'耗材管理', ('purchase-godownentrydetail', 'purchase-purchasepaymentdetail', 'material-deliverdetail'
               , 'plan-productionplandetail','purchase-godownentryreturndetail', 'account-subemployee'
               ,'material-deliverreturndetail', 'purchase-purchaseplandetail','warehouse-inventorydetail'
               ,'warehouse-warehouserecorddetail',)),
    (u'成品管理', ('goods-goodsgodownentry', 'order-saleorderdetail', 'order-goodsdeliver', 'order-goodsdeliverdetail',
               'order-goodsdeliverreturn','order-goodsdeliverreturndetail','goods-goodsgodownentrydetail'
               ,'warehouse-warehousebackmap',)),
    (u'基础数据', ('material-material', 'material-consumable', 'goods-goods','warehouse-warehouse'
               , 'warehouse-warehouseadmin','warehouse-warehousestock','account-department'
               ,'foundation-option','supplier-supplier', 'customer-customer', 'account-user','foundation-bizlog','config-config', 'finance-financecategory', )),
    (u'其他',('product-productbase',))

)