Ejemplo n.º 1
0
 class Meta:
     path = 'change'
     param_fields = (
         ('id', fields.IntegerField(required=False, help_text=u"季度工资唯一ID")),
         ('year', fields.RegexField(valid_year, required=True, help_text=u"年份")),
         ('employee', fields.IntegerField(required=True, help_text=u"公司人员")),
         ('quarter', fields.ChoiceField(required=True, choices=LIST_QUARTER_ALL, help_text=u"季度选项")),
         ('remarks', fields.CharField(required=False, help_text=u"备注")),
         ('items', fields.CharField(required=False, help_text=u"工资明细项")),
     )
Ejemplo n.º 2
0
    class Meta:
        path = 'list/get'
        param_fields = (
            ('pagesize', fields.IntegerField(required=True, help_text=u"页面数据")),
            ('pagenum', fields.IntegerField(required=True, help_text=u"当前页数")),
            ('sortdatafield', fields.CharField(required=False, help_text=u"排序字段")),
            ('sortorder', fields.CharField(required=False, help_text=u"排序方式(asc:升序,des:降序)")),

            ('year', fields.CharField(required=False, help_text=u"年份")),
            ('quarter', fields.ChoiceField(required=False, choices=LIST_QUARTER_ALL, help_text=u"季度")),
            ('name', fields.CharField(required=False, help_text=u"雇员姓名")),
        )
Ejemplo n.º 3
0
 class Meta:
     path = 'change'
     param_fields = (
         ('id', fields.IntegerField(required=False, help_text=u"记录ID")),
         ('pact_type', fields.ChoiceField(required=True, choices=LIST_PACK_STATUS, help_text=u"协议类型")),
         ('partner', fields.IntegerField(required=True, help_text=u"伙伴ID")),
         ('partner_code', fields.CharField(required=True, help_text=u"伙伴合同编号")),
         ('send_man', fields.CharField(required=True, help_text=u"收货人")),
         ('send_man_phone', fields.RegexField(valid_mobile,required=True, help_text=u"收货人电话")),
         ('send_address', fields.CharField(required=True, help_text=u"送货地址")),
         ('remarks', fields.CharField(required=True, help_text=u"记录ID")),
         ('items', fields.CharField(required=True, help_text=u"明细字段")),
     )
Ejemplo n.º 4
0
 class Meta:
     path = 'change'
     param_fields = (
         ('id', fields.CharField(required=False, help_text=u"修改某个员工的唯一标识")),
         ('name', fields.CharField(required=True, help_text=u"新增员工的姓名")),
         ('phone',
          fields.RegexField(required=True,
                            regex=valid_mobile,
                            help_text=u"新增员工的联系电话")),
         ('gender',
          fields.ChoiceField(required=True,
                             choices=LIST_EMPLOYEE_GENDER,
                             help_text=u"新增员工的性别")),
         ('email',
          fields.RegexField(required=False,
                            regex=valid_email,
                            help_text=u"新增员工的电子邮箱")),
         ('status',
          fields.ChoiceField(required=True,
                             choices=LIST_EMPLOYEE_STATUS,
                             help_text=u"新增员工的状态")),
         ('address', fields.CharField(required=False,
                                      help_text=u"新增员工的家庭住址")),
     )
Ejemplo n.º 5
0
 class Meta:
     path = 'change'
     param_fields = (
         ('id', fields.CharField(required=False, help_text=u"修改某个员工的唯一标识")),
         ('name', fields.CharField(required=True, help_text=u"新增员工的姓名")),
         ('length', fields.IntegerField(required=False, help_text=u"物料长度")),
         ('length_unit',
          fields.ChoiceField(required=True,
                             choices=LIST_UNIT_ALL,
                             help_text=u"长度单位")),
         ('wide', fields.IntegerField(required=False, help_text=u"物料宽度")),
         ('wide_unit',
          fields.ChoiceField(required=True,
                             choices=LIST_UNIT_ALL,
                             help_text=u"宽度单位")),
         ('height', fields.IntegerField(required=False, help_text=u"物料高度")),
         ('height_unit',
          fields.ChoiceField(required=True,
                             choices=LIST_UNIT_ALL,
                             help_text=u"高度单位")),
         ('diam', fields.IntegerField(required=False, help_text=u"物料直径")),
         ('diam_unit',
          fields.ChoiceField(required=True,
                             choices=LIST_UNIT_ALL,
                             help_text=u"直径单位")),
         ('bulk', fields.IntegerField(required=False, help_text=u"物料体积")),
         ('bulk_unit',
          fields.ChoiceField(required=True,
                             choices=LIST_BULK_ALL,
                             help_text=u"体积单位")),
         ('weight', fields.IntegerField(required=False, help_text=u"物料重量")),
         ('weight_unit',
          fields.ChoiceField(required=True,
                             choices=LIST_WEIGHT_ALL,
                             help_text=u"重量单位")),
     )