|
@@ -7,7 +7,7 @@ import (
|
|
|
pasturePb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/cow"
|
|
|
)
|
|
|
|
|
|
-func (s *StoreEntry) DepartureTypeEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) OutReasonEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
if isAll == model.IsAllYes {
|
|
|
configOptions = append(configOptions,
|
|
@@ -18,96 +18,106 @@ func (s *StoreEntry) DepartureTypeEnumList(isAll string) []*pasturePb.ConfigOpti
|
|
|
})
|
|
|
}
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.DepartureType_Death),
|
|
|
- Label: "死亡",
|
|
|
+ Value: int32(pasturePb.OutReasons_Respiratory_System_Disease),
|
|
|
+ Label: "呼吸系统疾病",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.DepartureType_Out),
|
|
|
- Label: "淘汰",
|
|
|
+ Value: int32(pasturePb.OutReasons_Nutritional_Metabolic_Disease),
|
|
|
+ Label: "营养代谢疾病",
|
|
|
Disabled: true,
|
|
|
- })
|
|
|
- return configOptions
|
|
|
-}
|
|
|
-
|
|
|
-func (s *StoreEntry) OutReasonEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
- configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
- if isAll == model.IsAllYes {
|
|
|
- configOptions = append(configOptions,
|
|
|
- &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(0),
|
|
|
- Label: "全部",
|
|
|
- Disabled: true,
|
|
|
- })
|
|
|
- }
|
|
|
- configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Long_Term_infertility),
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.OutReasons_Breeding_Disease),
|
|
|
+ Label: "繁殖疾病",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.OutReasons_Breast_Disease),
|
|
|
+ Label: "乳房疾病",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.OutReasons_Long_Term_infertility),
|
|
|
Label: "久配不孕",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Multiple_Miscarriages),
|
|
|
+ Value: int32(pasturePb.OutReasons_Multiple_Miscarriages),
|
|
|
Label: "多次流产",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Long_Treatment_Without_Recovery),
|
|
|
+ Value: int32(pasturePb.OutReasons_Long_Treatment_Without_Recovery),
|
|
|
Label: "久治不愈",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Postpartum_Paralysis),
|
|
|
+ Value: int32(pasturePb.OutReasons_Postpartum_Paralysis),
|
|
|
Label: "产后瘫痪",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Mastitis),
|
|
|
+ Value: int32(pasturePb.OutReasons_Mastitis),
|
|
|
Label: "乳房炎",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Hoof_Disease),
|
|
|
+ Value: int32(pasturePb.OutReasons_Hoof_Disease),
|
|
|
Label: "蹄病",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Congenital_Malformation),
|
|
|
+ Value: int32(pasturePb.OutReasons_Congenital_Malformation),
|
|
|
Label: "先天畸形",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Dysplasia),
|
|
|
+ Value: int32(pasturePb.OutReasons_Congenital_Malformation),
|
|
|
+ Label: "先天畸形",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.OutReasons_Dysplasia),
|
|
|
Label: "发育不良",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Hernia),
|
|
|
+ Value: int32(pasturePb.OutReasons_Hernia),
|
|
|
Label: "疝气",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Excessive_Age),
|
|
|
+ Value: int32(pasturePb.OutReasons_Excessive_Age),
|
|
|
+ Label: "月龄过大",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.OutReasons_Excessive_Age),
|
|
|
Label: "月龄过大",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Excessive_Weight),
|
|
|
+ Value: int32(pasturePb.OutReasons_Excessive_Weight),
|
|
|
Label: "体重过肥",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Other_Disease),
|
|
|
+ Value: int32(pasturePb.OutReasons_Other_Disease),
|
|
|
Label: "其他疾病",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Weak_Child),
|
|
|
+ Value: int32(pasturePb.OutReasons_Weak_Child),
|
|
|
Label: "弱仔",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Obsessive_Bull),
|
|
|
+ Value: int32(pasturePb.OutReasons_Obsessive_Bull),
|
|
|
Label: "恶癖牛",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Splitting),
|
|
|
- Label: "滑倒卧地不起",
|
|
|
+ Value: int32(pasturePb.OutReasons_Low_Milk),
|
|
|
+ Label: "低产",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.OutReason_Other),
|
|
|
+ Value: int32(pasturePb.OutReasons_Slow_Growing),
|
|
|
+ Label: "生长缓慢",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.OutReasons_Other),
|
|
|
Label: "其他",
|
|
|
Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.OutReasons_Unknown),
|
|
|
+ Label: "未知原因",
|
|
|
+ Disabled: true,
|
|
|
})
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) DeadReasonEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) DeathReasonEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
if isAll == model.IsAllYes {
|
|
|
configOptions = append(configOptions,
|
|
@@ -118,35 +128,67 @@ func (s *StoreEntry) DeadReasonEnumList(isAll string) []*pasturePb.ConfigOptions
|
|
|
})
|
|
|
}
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.DeadReason_Digestive_System_Diseases),
|
|
|
+ Value: int32(pasturePb.DeathReason_Digestive_System_Diseases),
|
|
|
Label: "消化性疾病",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.DeadReason_Respiratory_System_Diseases),
|
|
|
+ Value: int32(pasturePb.DeathReason_Respiratory_System_Diseases),
|
|
|
Label: "呼吸性疾病",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.DeadReason_Reproductive_System_Diseases),
|
|
|
+ Value: int32(pasturePb.DeathReason_Reproductive_System_Diseases),
|
|
|
Label: "繁殖性疾病",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.DeadReason_Metabolic_System_Diseases),
|
|
|
+ Value: int32(pasturePb.DeathReason_Metabolic_System_Diseases),
|
|
|
Label: "代谢性疾病",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.DeadReason_Infectious_Diseases),
|
|
|
+ Value: int32(pasturePb.DeathReason_Infectious_Diseases),
|
|
|
Label: "传染性疾病",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.DeadReason_Difficult_Birth),
|
|
|
+ Value: int32(pasturePb.DeathReason_Difficult_Birth),
|
|
|
Label: "难产",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.DeadReason_Accident_Dead),
|
|
|
+ Value: int32(pasturePb.DeathReason_Accident_Dead),
|
|
|
Label: "意外死亡",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.DeadReason_Other),
|
|
|
+ Value: int32(pasturePb.DeathReason_Stress),
|
|
|
+ Label: "应激",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DeathReason_Trauma),
|
|
|
+ Label: "外伤",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DeathReason_Pneumonia),
|
|
|
+ Label: "肺炎",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DeathReason_Diarrhea),
|
|
|
+ Label: "腹泻",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DeathReason_Ketosis),
|
|
|
+ Label: "酮症",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DeathReason_Acidosis),
|
|
|
+ Label: "酸中毒",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DeathReason_Rumina_Impaction),
|
|
|
+ Label: "瘤胃积食",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DeathReason_Intestinal_Torsion),
|
|
|
+ Label: "肠扭转",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DeathReason_Other),
|
|
|
Label: "其他",
|
|
|
Disabled: true,
|
|
|
})
|