|
@@ -326,212 +326,53 @@ func (s *StoreEntry) WorkOrderFrequencyEnumList(isAll string) []*pasturePb.Confi
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) WorkOrderSubUnitEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
- configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
- configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.WorkOrderSubscribeUnit_Person),
|
|
|
- Label: "个人",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.WorkOrderSubscribeUnit_dept),
|
|
|
- Label: "部门",
|
|
|
- Disabled: true,
|
|
|
- })
|
|
|
- return configOptions
|
|
|
-}
|
|
|
-
|
|
|
-func (s *StoreEntry) WorkOrderPriorityEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
- configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
- configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.Priority_Low),
|
|
|
- Label: "低",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.Priority_Middle),
|
|
|
- Label: "一般",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.Priority_High),
|
|
|
- Label: "紧急",
|
|
|
- Disabled: true,
|
|
|
- })
|
|
|
- return configOptions
|
|
|
-}
|
|
|
-
|
|
|
-func (s *StoreEntry) WorkOrderCategoryEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
- configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
- configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.WorkOrderCategory_Health),
|
|
|
- Label: "保健",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.WorkOrderCategory_Breed),
|
|
|
- Label: "繁殖",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.WorkOrderCategory_Nutrition),
|
|
|
- Label: "营养",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.WorkOrderCategory_Ordinary),
|
|
|
- Label: "日常",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.WorkOrderCategory_Other),
|
|
|
- Label: "其他",
|
|
|
- Disabled: true,
|
|
|
- })
|
|
|
- return configOptions
|
|
|
-}
|
|
|
-
|
|
|
-func CalendarTypeEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
- configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
- if isAll == model.IsAllYes {
|
|
|
- configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.SameTimeStatus_Invalid),
|
|
|
- Label: "全部",
|
|
|
- Disabled: true,
|
|
|
- })
|
|
|
- }
|
|
|
- configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.CalendarType_Immunisation),
|
|
|
- Label: "免疫",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.CalendarType_PG),
|
|
|
- Label: "同期PG",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.CalendarType_RnGH),
|
|
|
- Label: "同期RnGH",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.CalendarType_Pregnancy_Check),
|
|
|
- Label: "孕检",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.CalendarType_WorkOrder),
|
|
|
- Label: "工单",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.CalendarType_Weaning),
|
|
|
- Label: "断奶",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.CalendarType_Treatment),
|
|
|
- Label: "治疗",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.CalendarType_Mating),
|
|
|
- Label: "配种",
|
|
|
- Disabled: true,
|
|
|
- })
|
|
|
- return configOptions
|
|
|
-}
|
|
|
-
|
|
|
-func (s *StoreEntry) AbortionReasonsEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) OutTypeEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
if isAll == model.IsAllYes {
|
|
|
- configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.AbortionReasons_Invalid),
|
|
|
- Label: "全部",
|
|
|
- Disabled: true,
|
|
|
- })
|
|
|
+ configOptions = append(configOptions,
|
|
|
+ &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.OutType_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
}
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.AbortionReasons_Mechanical_Abortion),
|
|
|
- Label: "机械性流产",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.AbortionReasons_Malnutrition_Abortion),
|
|
|
- Label: "营养不良性流产",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.AbortionReasons_Mycotoxin_Abortion),
|
|
|
- Label: "霉菌毒素流产",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.AbortionReasons_Habitual_Abortion),
|
|
|
- Label: "习惯性流产",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.AbortionReasons_Brucellosis_Abortion),
|
|
|
- Label: "布病流产",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.AbortionReasons_Inflammatory_Abortion),
|
|
|
- Label: "产道炎症性流产",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.AbortionReasons_Heat_Stress_Abortion),
|
|
|
- Label: "热应激流产",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.AbortionReasons_Infectious_Abortion),
|
|
|
- Label: "传染病性流产",
|
|
|
+ Value: int32(pasturePb.OutType_Drugs),
|
|
|
+ Label: "药品",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.AbortionReasons_Other),
|
|
|
- Label: "其他",
|
|
|
+ Value: int32(pasturePb.OutType_Medical_Equipment),
|
|
|
+ Label: "医疗器械",
|
|
|
Disabled: true,
|
|
|
})
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) HealthStatusEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) AuditStatusEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
if isAll == model.IsAllYes {
|
|
|
- configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.HealthStatus_Invalid),
|
|
|
- Label: "全部",
|
|
|
- Disabled: true,
|
|
|
- })
|
|
|
+ configOptions = append(configOptions,
|
|
|
+ &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.AuditStatus_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
}
|
|
|
-
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.HealthStatus_Health),
|
|
|
- Label: "健康",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.HealthStatus_Disease),
|
|
|
- Label: "发病",
|
|
|
+ Value: int32(pasturePb.AuditStatus_Pending),
|
|
|
+ Label: "待审核",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.HealthStatus_Treatment),
|
|
|
- Label: "治疗",
|
|
|
+ Value: int32(pasturePb.AuditStatus_Pass),
|
|
|
+ Label: "已通过",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.HealthStatus_Curable),
|
|
|
- Label: "治愈",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.HealthStatus_Out),
|
|
|
- Label: "淘汰",
|
|
|
- Disabled: true,
|
|
|
- }, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.HealthStatus_Dead),
|
|
|
- Label: "死亡",
|
|
|
- Disabled: true,
|
|
|
- })
|
|
|
- return configOptions
|
|
|
-}
|
|
|
-
|
|
|
-func (s *StoreEntry) CalvingAnalysisMethodEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
- configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
- if isAll == model.IsAllYes {
|
|
|
- configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.CalvingAnalysisMethod_Invalid),
|
|
|
- Label: "全部",
|
|
|
- Disabled: true,
|
|
|
- })
|
|
|
- }
|
|
|
- configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.CalvingAnalysisMethod_Months),
|
|
|
- Label: "按月份统计",
|
|
|
+ Value: int32(pasturePb.AuditStatus_Reject),
|
|
|
+ Label: "已拒绝",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.CalvingAnalysisMethod_CowKind),
|
|
|
- Label: "按照品种统计",
|
|
|
+ Value: int32(pasturePb.AuditStatus_Cancel),
|
|
|
+ Label: "已取消",
|
|
|
Disabled: true,
|
|
|
})
|
|
|
return configOptions
|