public override string CreateSubject()
        {
            string cityName = city.SelectedItem as string;

            if (cityName == "Other")
            {
                cityName += (" " + GetTextBoxString(cityOther));
            }
            string emergencyDeclared = "";

            if (EmergencyDeclared != null)
            {
                emergencyDeclared = " Emergency Declared: " + (EmergencyDeclared == "emergencyDeclaredYes" ? "yes" : "no");
            }

            return(MessageNo + "_" + Severity?.ToUpper()[0] + "/" + HandlingOrder?.ToUpper()[0] + "_CityScan_" + cityName + emergencyDeclared);
        }
예제 #2
0
 public override string CreateSubject()
 {
     return(MessageNo + "_" + Severity?.ToUpper()[0] + "/" + HandlingOrder?.ToUpper()[0] + "_EOC213RR_" + incidentName.Text);
 }
 public override string CreateSubject()
 {
     return(MessageNo + "_" + Severity?.ToUpper()[0] + "/" + HandlingOrder?.ToUpper()[0] + "_ICS213_" + Subject);
 }
예제 #4
0
 public override string CreateSubject()
 {
     return($"{MessageNo}_{Severity?.ToUpper()[0]}/{HandlingOrder?.ToUpper()[0]}_ICS213_{subject.Text}");
 }
        //     public override string CreateSubject(ref PacketMessage packetMessage)
        //     {
        ////1234_O / R_EOC Logistics Req_Mountain View
        //var severityField = from formField in packetMessage.FormFieldArray where formField.ControlName == "severity" select formField;
        //var handlingOrderField = from formField in packetMessage.FormFieldArray where formField.ControlName == "handlingOrder" select formField;
        //var cityField = packetMessage.FormFieldArray.Where(formField => formField.ControlName == "sectionAgencyCity").FirstOrDefault();

        //return (MessagegNo + "_" + severityField.First().ControlContent.ToUpper()[0] + "/" + handlingOrderField.First().ControlContent.ToUpper()[0] + "_EOC Logistics Req_" + SectionAgencyCity);
        //     }

        public override string CreateSubject()
        {
            return(MessageNo + "_" + Severity?.ToUpper()[0] + "/" + HandlingOrder?.ToUpper()[0] + "_EOC Logistics Req_" + sectionAgencyCity.SelectedItem);
        }
예제 #6
0
 public override string CreateSubject()
 {
     return(MessageNo + '_' + Severity?.ToUpper()[0] + '/' + HandlingOrder?.ToUpper()[0] + "_OAShelterStat_" + '_' + incidentName.Text);
 }