using CallCenterApi.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CallCenterApi.Interface.Models.Input
{
    public class WorkOrderNewInput

    {
        /// <summary>
        /// 部门id
        /// </summary>
        public int F_Deptid { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string  F_DeptName { get; set; }
        /// <summary>
        /// 工单ID
        /// </summary>
        public int F_ID { get; set; }
        /// <summary>
        /// 微信OpenId
        /// </summary>
        public string F_WxOpenId { get; set; }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string F_WorkOrderCode
            {
                get; set;
            }
            /// <summary>
            /// 工单来源:电话、微信业务员、微信客户、官网
            /// </summary>
            public int      F_Source
            {
                get; set;
            }
        /// <summary>
        /// 工单来源:电话、微信业务员、微信客户、官网
        /// </summary>
         public string F_SourceName
         {
            get; set;
        }
        /// <summary>
        /// 工单类型:咨询及需求、投诉、抽检、其他
        /// </summary>
        public int      F_Type
            {
                get; set;
            }
        /// <summary>
        /// 工单类型:咨询及需求、投诉、抽检、其他
        /// </summary>
        public string F_TypeName
        {
            get; set;
        }
        /// <summary>
        /// 客户姓名
        /// </summary>
        public string F_CusName
            {
                get; set;
            }
            /// <summary>
            /// 客户电话
            /// </summary>
            public string F_CusPhone
            {
                get; set;
            }
            /// <summary>
            /// 公司名称
            /// </summary>
            public string F_CompanyName
            {
                get; set;
            }

        /// <summary>
        /// 通话记录ID
        /// </summary>
        public string F_CallID
        {
            get; set;
        }
      
        /// <summary>
        /// 事发地-省
        /// </summary>
        public string F_IncidentProvince
        {
            get; set;
        }
        /// <summary>
        /// 事发地-市
        /// </summary>
        public string F_IncidentCity
        {
            get; set;
        }
        /// <summary>
        /// 事发地-县
        /// </summary>
        public string F_IncidentCountry
        {
            get; set;
        }
        /// <summary>
        /// 事发地-乡
        /// </summary>
        public string F_IncidentTownship
        {
            get; set;
        }
        /// <summary>
        /// 事发地-详细
        /// </summary>
        public string F_IncidentDetailed
        {
            get; set;
        }
        /// <summary>
        /// 销售基地:新乡、新疆、九江、东北、其他
        /// </summary>
        public string F_SalesBase
        {
            get; set;
        }
        /// <summary>
        /// 问题描述
        /// </summary>
        public string F_Description
        {
            get; set;
        }
        /// <summary>
        /// 附件上传ids
        /// </summary>
        public string F_Files
        {
            get; set;
        }
        /// <summary>
        /// 剩余时间---外线工单
        /// </summary>
        public string  RemainingTime
        {
            get; set;
        }

        /// <summary>
        /// 剩余时间---内线工单
        /// </summary>
        public string RemainingTime2
        {
            get; set;
        }

        /// <summary>
        /// 处理方式:当即办理、电话转接、网络转办
        /// </summary>
        public string F_DealType
        {
            get; set;
        }
        /// <summary>
        /// 上级处理意见
        /// </summary>
        public string SuperiorOpinion
        {
            get; set;
        }
        /// <summary>
        /// 客户id
        /// </summary>
        public string    F_CustomerID
        {
            get; set;
        }
        /// <summary>
        /// 大区名称
        /// </summary>
        public string F_AreaName { set; get; }
        /// <summary>
        /// 分公司名称
        /// </summary>
        public string F_BranchName { set; get; }
        /// <summary>
        /// 业务员
        /// </summary>
        public string F_Salesman { set; get; }
        /// <summary>
        /// 业务员电话
        /// </summary>
        public string F_SalesPhone { set; get; }
        /// <summary>
        /// 品牌
        /// </summary>
        public string F_Brands { set; get; }

        /// <summary>
        /// 法人
        /// </summary>
        public string F_Legal { set; get; }
        /// <summary>
        /// 法人电话
        /// </summary>
        public string F_LegalPhone { set; get; }
        /// <summary>
        /// 省
        /// </summary>
        public string F_AddressProvince { set; get; }
        /// <summary>
        /// 市
        /// </summary>
        public string F_AddressCity { set; get; }
        /// <summary>
        /// 县
        /// </summary>
        public string F_AddressCountry { set; get; }
        /// <summary>
        /// 乡
        /// </summary>
        public string F_AddressTownship { set; get; }  /// <summary>
        /// 详细地址
        /// </summary>
        public string F_AddressFull { set; get; }
        /// <summary>
        /// 渠道类型
        /// </summary>
        public string F_Channel { set; get; }
        /// 是否经营心连心
        /// </summary>
        public string F_IsRunXLX { set; get; }
        /// 年销量
        /// </summary>
        public string F_AnnualSales { set; get; }
        /// 配方
        /// </summary>
        public string F_Formula { set; get; }
        /// 种植作物
        /// </summary>
        public string F_RaiseCrops { set; get; }
        /// 种植面积
        /// </summary>
        public string F_PlantingArea { set; get; }
        /// 用肥品牌
        /// </summary>
        public string F_FertilizerBrand { set; get; }
        /// <summary>
        /// 物料id
        /// </summary>
        public string   F_MaterialID
        {
            get; set;
        }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string F_MaterialName { get; set; }
        /// <summary>
        /// 型号
        /// </summary>
        public string F_Model { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string F_Specs { get; set; }
        /// <summary>
        /// 一级分类
        /// </summary>
        public string F_Level1 { get; set; }
        /// <summary>
        /// 二级分类
        /// </summary>
        public string F_Level2 { get; set; }
        /// <summary>
        /// 三级分类
        /// </summary>
        public string F_Level3 { get; set; }
        /// <summary>
        /// 品牌
        /// </summary>
        public string F_Brand { get; set; }
        /// <summary>
        /// 品牌
        /// </summary>
        public string F_WorkerBrand { get; set; }
        /// <summary>
        /// 复合肥肥效
        /// </summary>
        public string F_MaterialEffect { get; set; }
        /// <summary>
        /// 产品线
        /// </summary>
        public string F_Pipeline { get; set; }
        /// <summary>
        /// 工艺
        /// </summary>
        public string F_Craft { get; set; }
        /// <summary>
        /// 问题类别1
        /// </summary>
        public string F_QuestionTypeone
        {
            get; set;
        }
        /// <summary>
        /// 问题类别1
        /// </summary>
        public int  F_QuestionTypeoneid
        {
            get; set;
        }
        /// <summary>
        /// 问题类别2
        /// </summary>
        public string F_QuestionTypetwo
        {
            get; set;
        }
        /// <summary>
        /// 问题类别2
        /// </summary>
        public int  F_QuestionTypetwoid
        {
            get; set;
        }
        /// <summary>
        /// 问题类别4
        /// </summary>
        public string F_QuestionTypefour
        {
            get; set;
        }
        /// <summary>
        /// 问题类别4
        /// </summary>
        public int F_QuestionTypefourid
        {
            get; set;
        }
        /// <summary>
        /// 问题类别3
        /// </summary>
        public string F_QuestionType
        {
            get; set;
        }
        /// <summary>
        /// 问题类别3
        /// </summary>
        public int  F_QuestionTypeid
        {
            get; set;
        }
        /// <summary>
        /// 生产批次号
        /// </summary>
        public string F_BatchNumber
        {
            get; set;
        }
        /// <summary>
        /// 投诉-配方
        /// </summary>
        public string F_TS_Formula
        {
            get; set;
        }
        /// <summary>
        /// 投诉-产品种类：化肥、化工、其他
        /// </summary>
        public string F_TS_Category
        {
            get; set;
        }
        /// <summary>
        /// 投诉-问题数量（吨）
        /// </summary>
        public string F_TS_Quantity
        {
            get; set;
        }
        /// <summary>
        /// 投诉-重要级别：轻微、一般、较大、重大
        /// </summary>
        public string F_TS_Level
        {
            get; set;
        }
        /// <summary>
        /// 咨询-产品名称：三聚氰胺、甲醇、液氨、二甲醚、糠醇、其他
        /// </summary>
        //public string F_ZX_ProName
        //{
        //    get; set;
        //}
        /// <summary>
        /// 咨询-问题数量
        /// </summary>
        public string F_ZX_Quantity
        {
            get; set;
        }
        /// <summary>
        /// 咨询-大区
        /// </summary>
        public string F_ZX_Area
        {
            get; set;
        }
        /// <summary>
        /// 咨询-分公司
        /// </summary>
        public string F_ZX_Branch
        {
            get; set;
        }
        /// <summary>
        /// 抽检-抽检时间
        /// </summary>
        public DateTime? F_CJ_Time
        {
            get; set;
        }
        /// <summary>
        /// 抽检-抽检级别：乡镇级、县级、市级、省级及以上、个人送检
        /// </summary>
        public string F_CJ_Level
        {
            get; set;
        }
        /// <summary>
        /// 抽检-抽检单位：市场监督、农业部、土肥站、工商、联合执法、其他
        /// </summary>
        public string F_CJ_Unit
        {
            get; set;
        }
        /// <summary>
        /// 抽检-化验单位
        /// </summary>
        public string F_CJ_TestUnit
        {
            get; set;
        }
        /// <summary>
        /// 抽检-抽检吨数
        /// </summary>
        public string F_CJ_Tonnage
        {
            get; set;
        }
        /// <summary>
        /// 抽检-抽检袋数
        /// </summary>
        public string F_CJ_BagNo
        {
            get; set;
        }
        /// <summary>
        /// 抽检-公关费用金额：单位元
        /// </summary>
        public string F_CJ_Outlay
        {
            get; set;
        }
        /// <summary>
        /// 工单状态-外线
        /// </summary>
        public int?  F_State
        {
            get; set;
        }
        /// <summary>
        /// 工单状态-内线线
        /// </summary>
        public int? F_State2
        {
            get; set;
        }
        /// <summary>
        /// 工单状态-外线
        /// </summary>
        public string F_StateName
        {
            get; set;
        }
        /// <summary>
        /// 工单状态-内线
        /// </summary>
        public string F_StateName2
        {
            get; set;
        }
        /// <summary>
        /// 市场管理科-生产基地（新乡、新疆、九江、东北、贴牌、无法确定）
        /// </summary>
        public string F_SC_ProductBase
        {
            get; set;
        }
        /// <summary>
        /// 市场管理科-初审意见:退货、换货、补偿、自行处理
        /// </summary>
        public string F_SC_PreliminaryOpinion
        {
            get; set;
        }
        /// <summary>
        /// 市场管理科-超出质保期限（算法：工单创建日期-生产日期，生产日期根据生产批次号获取，单位：月）
        /// </summary>
        public string F_SC_QualityMonth
        {
            get; set;
        }
        /// <summary>
        /// 市场管理科-抽检-抽检结果（视同合格、合格、不合格、复检后合格、未送检）
        /// </summary>
        public string F_SC_CJ_SpotResult
        {
            get; set;
        }
        /// <summary>
        /// 市场管理科-抽检-自检结果
        /// </summary>
        public string F_SC_CJ_SelfResult
        {
            get; set;
        }
        /// <summary>
        /// 市场管理科-抽检-对应审批工作流单号
        /// </summary>
        public string F_SC_CJ_ApprovalNo
        {
            get; set;
        }
        /// <summary>
        /// 市场管理科-抽检-确认返账金额（元）
        /// </summary>
        public string F_SC_CJ_ReturnAccount
        {
            get; set;
        }
        /// <summary>
        /// 质量管理科-质量事件等级（未遂、一般、较大、重大）
        /// </summary>
        public string F_ZL_QualityEventLevel
        {
            get; set;
        }
        /// <summary>
        /// 质量管理科-索赔金额（单位元，对应责任单位）
        /// </summary>
        public string F_ZL_ClaimAmount
        {
            get; set;
        }
        /// <summary>
        /// 质量管理科-责任单位（需列出，可选多个）
        /// </summary>
        public string F_ZL_ResponsibleUnit
        {
            get; set;
        }
        /// <summary>
        /// 质量管理科-审批意见（同意、不同意，若选择不同意，增加输入框输入补充内容）
        /// </summary>
        public string F_ZL_ApprovalOpinions
        {
            get; set;
        }
        /// <summary>
        /// 质量管理科-审批不同意意见
        /// </summary>
        public string F_ZL_ApprovalDisagree
        {
            get; set;
        }
        /// <summary>
        /// 质量管理科-补偿方式（实物、钱款【单位元】，若选择钱款，增加输入框输入补充内容）
        /// </summary>
        public string F_ZL_CompensationMethod
        {
            get; set;
        }
        /// <summary>
        /// 质量管理科-补偿钱款
        /// </summary>
        public string F_ZL_CompensationMoney
        {
            get; set;
        }
        /// <summary>
        /// 质量管理科-对应责任单位（生产、研发、农化、物流、质量管理科，销售内勤）
        /// </summary>
        public string F_ZL_CResponsibleUnits
        {
            get; set;
        }
        /// <summary>
        /// 质量管理科-确认实收数量（吨）
        /// </summary>
        public string F_ZL_Fquantity
        {
            get; set;
        }
        /// <summary>
        /// 质量管理科-改进要求
        /// </summary>
        public string F_ZL_ImprovementRequirements
        {
            get; set;
        }
        /// <summary>
        /// 质量管理科-对应审批工作流单号
        /// </summary>
        public string F_ZL_CApprovalNo
        {
            get; set;
        }
        /// <summary>
        /// 质量管理科-抽检-未备案、已备案
        /// </summary>
        public string F_ZL_CJ_IsRecord
        {
            get; set;
        }
        /// <summary>
        /// 是否审核
        /// </summary>
        public int? F_IsAudit
        {
            get; set;
        }
        /// <summary>
        /// 审核状态
        /// </summary>
        public string  F_AuditState
        {
            get; set;
        }
        public float  F_limit
        {
            get; set;
        }
        public string  F_limitTime
        {
            get; set;
        }
        /// <summary>
        /// 审核人
        /// </summary>
        public string F_AuditBy
        {
            get; set;
        }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? F_AuditOn
        {
            get; set;
        }
        /// <summary>
        /// 审核内容
        /// </summary>
        public string F_AuditCont
        {
            get; set;
        }
        /// <summary>
        /// 是否超时 0 未超时，1外线超时，2内线超时
        /// </summary>
        public int? F_IsOver
        {
            get; set;
        }
        /// <summary>
        /// 处理人
        /// </summary>
        public string F_DealBy
        {
            get; set;
        }
        /// <summary>
        /// 处理时间
        /// </summary>
        public DateTime? F_DealTime
        {
            get; set;
        }
        /// <summary>
        /// 处理内容 -外线
        /// </summary>
        public string F_DealContent
        {
            get; set;
        }
        /// <summary>
        /// 处理内容 -内线
        /// </summary>
        public string F_DealContent2
        {
            get; set;
        }
        /// <summary>
        /// 处理结果:已处理，未处理
        /// </summary>
        public string F_DealResult
        {
            get; set;
        }
        /// <summary>
        /// 未处理原因：资金、技术、人员、其他（若选其他，则手输）
        /// </summary>
        public string F_DealReasons
        {
            get; set;
        }
        /// <summary>
        /// 是否建议回访（是，否）此项若选是，则流转到客服-待回访工单，若选否，则流转至客服待完结工单
        /// </summary>
        public string  F_IsVisit
        {
            get; set;
        }
        /// <summary>
        /// 回访时间
        /// </summary>
        public DateTime? F_VisitOn
        {
            get; set;
        }
        /// <summary>
        /// 回访人
        /// </summary>
        public string F_VisitBy
        {
            get; set;
        }
        /// <summary>
        /// 回访结果：非常满意、满意、一般、不满意
        /// </summary>
        public string F_VisitResult
        {
            get; set;
        }
        /// <summary>
        /// 回访不满意原因
        /// </summary>
        public string F_VisitReason
        {
            get; set;
        }
        /// <summary>
        /// 呼叫结果
        /// </summary>
        public string F_Callresults
        {
            get; set;
        }
        /// <summary>
        /// 添加人工号
        /// </summary>
        public string F_CreateBy
        {
            get; set;
        }
        /// <summary>
        /// 添加人工号
        /// </summary>
        public string F_CreateName
        {
            get; set;
        }
        /// <summary>
        /// 添加人工号
        /// </summary>
        public string F_CreatePhone
        {
            get; set;
        }
        /// <summary>
        /// 添加人工号
        /// </summary>
        public string CreateName
        {
            get; set;
        }
        public string F_Annotation
        {
            get; set;
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? F_CreateOn
        {
            get; set;
        }
      
        /// <summary>
        /// 修改次数
        /// </summary>
        public int? F_UpdateCount
        {
            get; set;
        }
        /// <summary>
        /// 修改人工号
        /// </summary>
        public string F_UpdateBy
        {
            get; set;
        }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? F_UpdateOn
        {
            get; set;
        }
        /// <summary>
        /// 是否删除:0否，1是
        /// </summary>
        public int? F_IsDelete
        {
            get; set;
        }
        /// <summary>
        /// 删除人工号
        /// </summary>
        public string F_DeleteBy
        {
            get; set;
        }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? F_DeleteOn
        {
            get; set;
        }
        /// <summary>
        /// 高层处理意见
        /// </summary>
        public string F_Highopinions
        {
            get;set;
        }
        ///// <summary>
        ///// 延期时限
        ///// </summary>
        public int  DelayTimelimit
        {
            get; set;
        }
        ///// <summary>
        ///// 延期时限
        ///// </summary>
        public string  DelayTimename
        {
            get; set;
        }
        ///// <summary>
        ///// 超时原因
        ///// </summary>
        public string F_Reasontimeout
        {
            get; set;
        }
        ///// <summary>
        ///// 上级人员
        ///// </summary>
        public string F_UserName
        {
            get; set;
        }
        ///// <summary>
        ///// 上级人员
        ///// </summary>
        public string F_UserCode
        {
            get; set;
        }
        ///// <summary>
        ///// 上级部门
        ///// </summary>
        public string F_NextDeptName
        {
            get; set;
        }
        ///// <summary>
        ///// 客户渠道类型
        ///// </summary>
        public string  F_Canal
        {
            get; set;
        }
        /// <summary>
        /// 短信回访结果
        /// </summary>
        public string  F_SMSReply
        {
            get; set;
        }
        /// <summary>
        /// 回访备注
        /// </summary>
        public string F_VisitRemarks
        {
            get; set;
        }
        /// <summary>
        /// 生产单位
        /// </summary>
        public string F_Production { set; get; }
        /// <summary>
        /// 投诉- 肥效类增加作物字段
        /// </summary>
        public string F_Crops { get; set; }

        /// <summary>
        /// 返厂车牌号
        /// </summary>
        public string F_CarNumber { get; set; }
        /// <summary>
        /// 装车费
        /// </summary>
        public decimal? F_LoadingFee { get; set; }
        /// <summary>
        /// 卸车费
        /// </summary>
        public decimal? F_UnLoadingFee { get; set; }
        /// <summary>
        /// 返料费
        /// </summary>
        public decimal? F_MaterialFee { get; set; }
        /// <summary>
        /// 事件原因-外线
        /// </summary>
        public string F_EventReason { get; set; }

        /// <summary>
        /// 事件原因-内线
        /// </summary>
        public string F_EventReason2 { get; set; }

        /// <summary>
        /// 处理结果打分
        /// </summary>
        public int? F_VisitResultScore { get; set; }
        /// <summary>
        /// 处理时效得分
        /// </summary>
        public int? F_EffectiveScore { get; set; }
        /// <summary>
        /// 服务态度
        /// </summary>
        public int? F_ServiceAttitude { get; set; }
        /// <summary>
        /// 产品质量分数
        /// </summary>
        public int? F_ProductQuality { get; set; }
        /// <summary>
        /// NPS得分
        /// </summary>
        public int? F_NPS { get; set; }
        /// <summary>
        /// 评价结果
        /// </summary>
        public decimal? F_EvaluationResult { get; set; }

        /// <summary>
        /// 抽检类-样品邮寄单号
        /// </summary>
        public string F_MailingNumber { get; set; }
        /// <summary>
        /// 快递名称
        /// </summary>
        public string F_ExpressName { get; set; }

        /// <summary>
        /// 工艺
        /// </summary>
        public string F_WorkmanShip { get; set; }
        /// <summary>
        /// 原料及厂家
        /// </summary>
        public string F_Manufacturers { get; set; }
        /// <summary>
        /// 该批次生产数量
        /// </summary>
        public int? F_ProductionNum { get; set; }
        /// <summary>
        /// 司机电话号码
        /// </summary>
        public string F_DrivePhone { get; set; }
        /// <summary>
        /// 处理结果-内线
        /// </summary>
        public string SuperiorOpinion2 { get; set; }

        #region 多物料
        public List<T_Wo_MaterialItems> MaterialItems { get; set; }
        #endregion
    }
}
public class Questions
{
    /// <summary>
    /// 创建时间
    /// </summary>
    public string CreatOn { get; set; }
    /// <summary>
    /// 销售基地
    /// </summary>
    public string SalesBase { get; set; }
    /// <summary>
    /// 渠道类型
    /// </summary>
    public string Channel { get; set; }
    /// <summary>
    /// 反馈类型
    /// </summary>
    public string Type { get; set; }

    /// <summary>
    /// 费用
    /// </summary>
    public string Money { get; set; }

    /// <summary>
    /// 大区名称
    /// </summary>
    public string AreaName { set; get; }
    /// <summary>
    /// 分公司名称
    /// </summary>
    public string BranchName { set; get; }
    /// <summary>
    /// 业务员
    /// </summary>
    public string Salesman { set; get; }
    /// <summary>
    /// 品牌
    /// </summary>
    public string Brands { set; get; }
    /// <summary>
    /// 产品
    /// </summary>
    public string Category { set; get; }
    /// <summary>
    /// 超时时限
    /// </summary>
    public string Overtime { set; get; }
    /// <summary>
    /// 回访与否
    /// </summary>
    public string Isvisit { set; get; }
    /// <summary>
    /// 关闭与否
    /// </summary>
    public string IsClose { set; get; }
}
public class WorkOrderComplaint
{
    /// <summary>
    /// 客户姓名
    /// </summary>
    public string F_CusName
    {
        get; set;
    }
    /// <summary>
    /// 客户电话
    /// </summary>
    public string F_CusPhone
    {
        get; set;
    }
    /// <summary>
    /// 公司名称
    /// </summary>
    public string F_CompanyName
    {
        get; set;
    }
    /// <summary>
    /// 事发地-省
    /// </summary>
    public string F_IncidentProvince
    {
        get; set;
    }
    /// <summary>
    /// 事发地-市
    /// </summary>
    public string F_IncidentCity
    {
        get; set;
    }
    /// <summary>
    /// 事发地-县
    /// </summary>
    public string F_IncidentCountry
    {
        get; set;
    }
    /// <summary>
    /// 事发地-乡
    /// </summary>
    public string F_IncidentTownship
    {
        get; set;
    }
    /// <summary>
    /// 事发地-详细
    /// </summary>
    public string F_IncidentDetailed
    {
        get; set;
    }
    /// <summary>
    /// 销售基地:新乡、新疆、九江、东北、其他
    /// </summary>
    public string F_SalesBase
    {
        get; set;
    }
    /// <summary>
    /// 大区名称
    /// </summary>
    public string F_AreaName { set; get; }
    /// <summary>
    /// 分公司名称
    /// </summary>
    public string F_BranchName { set; get; }
    /// <summary>
    /// 业务员
    /// </summary>
    public string F_Salesman { set; get; }

    /// <summary>
    /// 问题描述
    /// </summary>
    public string F_Description
    {
        get; set;
    }
    /// <summary>
    /// 问题类别1
    /// </summary>
    public string F_QuestionTypeone
    {
        get; set;
    }
    /// <summary>
    /// 问题类别2
    /// </summary>
    public string F_QuestionTypetwo
    {
        get; set;
    }
    /// <summary>
    /// 问题类别3
    /// </summary>
    public string F_QuestionTypethree
    {
        get; set;
    }
    public string F_QuestionTypefour
    {
        get; set;
    }
    /// <summary>
    /// 客户编号
    /// </summary>
    public string  F_CustomerID
    {
        get; set;
    }
    /// <summary>
    /// 物料编码
    /// </summary>
    public string  F_MaterialID
    {
        get; set;
    }
    /// <summary>
    /// 物料名称
    /// </summary>
    public string F_MaterialName { get; set; }
    /// <summary>
    /// 型号
    /// </summary>
    public string F_Model { get; set; }
    /// <summary>
    /// 规格
    /// </summary>
    public string F_Specs { get; set; }
    /// <summary>
    /// 一级分类
    /// </summary>
    public string F_Level1 { get; set; }
    /// <summary>
    /// 二级分类
    /// </summary>
    public string F_Level2 { get; set; }
    /// <summary>
    /// 三级分类
    /// </summary>
    public string F_Level3 { get; set; }
    /// <summary>
    /// 品牌
    /// </summary>
    public string F_Brand { get; set; }
    /// <summary>
    /// 复合肥肥效
    /// </summary>
    public string F_MaterialEffect { get; set; }
    /// <summary>
    /// 产品线
    /// </summary>
    public string F_Pipeline { get; set; }
    /// <summary>
    /// 工艺
    /// </summary>
    public string F_Craft { get; set; }

    /// <summary>
    /// 生产批次号
    /// </summary>
    public string F_BatchNumber
    {
        get; set;
    }
    /// <summary>
    /// 投诉-问题数量（吨）
    /// </summary>
    public string F_TS_Quantity
    {
        get; set;
    }
    /// <summary>
    /// 市场管理科-生产基地（新乡、新疆、九江、东北、贴牌、无法确定）
    /// </summary>
    public string F_SC_ProductBase
    {
        get; set;
    }
    /// <summary>
    /// 市场管理科-初审意见:退货、换货、补偿、自行处理
    /// </summary>
    public string F_SC_PreliminaryOpinion
    {
        get; set;
    }
    /// <summary>
    /// 市场管理科-超出质保期限（算法：工单创建日期-生产日期，生产日期根据生产批次号获取，单位：月）
    /// </summary>
    public string F_SC_QualityMonth
    {
        get; set;
    }
    /// <summary>
    /// 质量管理科-质量事件等级（未遂、一般、较大、重大）
    /// </summary>
    public string F_ZL_QualityEventLevel
    {
        get; set;
    }
    /// <summary>
    /// 质量管理科-索赔金额（单位元，对应责任单位）
    /// </summary>
    public string F_ZL_ClaimAmount
    {
        get; set;
    }
    /// <summary>
    /// 质量管理科-责任单位（需列出，可选多个）
    /// </summary>
    public string F_ZL_ResponsibleUnit
    {
        get; set;
    }
    /// <summary>
    /// 质量管理科-审批意见（同意、不同意，若选择不同意，增加输入框输入补充内容）
    /// </summary>
    public string F_ZL_ApprovalOpinions
    {
        get; set;
    }
    /// <summary>
    /// 质量管理科-审批不同意意见
    /// </summary>
    public string F_ZL_ApprovalDisagree
    {
        get; set;
    }
    /// <summary>
    /// 质量管理科-补偿方式（实物、钱款【单位元】，若选择钱款，增加输入框输入补充内容）
    /// </summary>
    public string F_ZL_CompensationMethod
    {
        get; set;
    }
    /// <summary>
    /// 质量管理科-补偿钱款
    /// </summary>
    public string F_ZL_CompensationMoney
    {
        get; set;
    }
    /// <summary>
    /// 质量管理科-对应责任单位（生产、研发、农化、物流、质量管理科，销售内勤）
    /// </summary>
    public string F_ZL_CResponsibleUnits
    {
        get; set;
    }
    /// <summary>
    /// 质量管理科-确认实收数量（吨）
    /// </summary>
    public string F_ZL_Fquantity
    {
        get; set;
    }
    /// <summary>
    /// 质量管理科-改进要求
    /// </summary>
    public string F_ZL_ImprovementRequirements
    {
        get; set;
    }
    /// <summary>
    /// 质量管理科-对应审批工作流单号
    /// </summary>
    public string F_ZL_CApprovalNo
    {
        get; set;
    }
    /// <summary>
    /// 处理方式:当即办理、电话转接、网络转办
    /// </summary>
    public string F_DealType
    {
        get; set;
    }
    /// <summary>
    /// 处理人
    /// </summary>
    public string F_DealBy
    {
        get; set;
    }
    /// <summary>
    /// 处理时间
    /// </summary>
    public DateTime? F_DealTime
    {
        get; set;
    }
    /// <summary>
    /// 处理内容
    /// </summary>
    public string F_DealContent
    {
        get; set;
    }
    /// <summary>
    /// 处理结果:已处理，未处理
    /// </summary>
    public string F_DealResult
    {
        get; set;
    }
    /// <summary>
    /// 未处理原因：资金、技术、人员、其他（若选其他，则手输）
    /// </summary>
    public string F_DealReasons
    {
        get; set;
    }
    /// <summary>
    /// 添加时间
    /// </summary>
    public DateTime? F_CreateOn
    {
        get; set;
    }

}
public class Prescription
{
    /// <summary>
    /// 创建时间
    /// </summary>
    public string CreatOn { get; set; }
    /// <summary>
    /// 销售基地
    /// </summary>
    public string SalesBase { get; set; }

    /// <summary>
    /// 大区名称
    /// </summary>
    public string AreaName { set; get; }
    /// <summary>
    /// 分公司名称
    /// </summary>
    public string BranchName { set; get; }
    /// <summary>
    /// 产品
    /// </summary>
    public string Category { set; get; }
    /// <summary>
    /// 品牌
    /// </summary>
    public string Brands { set; get; }
  
    /// <summary>
    /// 问题类别1
    /// </summary>
    public string QuestionTypeone
    {
        get; set;
    }
    /// <summary>
    /// 问题类别2
    /// </summary>
    public string QuestionTypetwo
    {
        get; set;
    }
    /// <summary>
    /// 问题类别3
    /// </summary>
    public string QuestionTypethree
    {
        get; set;
    }
    /// <summary>
    /// 问题描述
    /// </summary>
    public string Description
    {
        get; set;
    }
    /// <summary>
    /// 市场管理科-生产基地（新乡、新疆、九江、东北、贴牌、无法确定）
    /// </summary>
    public string ProductBase
    {
        get; set;
    }
    /// <summary>
    /// 质量管理科-对应责任单位（生产、研发、农化、物流、质量管理科，销售内勤）
    /// </summary>
    public string CResponsibleUnits
    {
        get; set;
    }
}
public class Product
{
    /// <summary>
    /// 化工产品名称
    /// </summary>
    public string Category { get; set; }
    /// <summary>
    /// 客户单位
    /// </summary>
    public string Company { get; set; }

    /// <summary>
    /// 生产日期
    /// </summary>
    public string ProductionTime
    {
        get; set;
    }
    /// <summary>
    /// 反馈日期
    /// </summary>
    public string CreatOn
    {
        get; set;
    }
    /// <summary>
    /// 喷码
    /// </summary>
    public string Spurtcode
    {
        get; set;
    }
    /// <summary>
    /// 问题分类
    /// </summary>
    public string QuestionType
    {
        get; set;
    }
    /// <summary>
    /// 问题描述
    /// </summary>
    public string Description
    {
        get; set;
    }
    /// <summary>
    ///处理方法
    /// </summary>
    public string DealType
    {
        get; set;
    }
    /// <summary>
    /// 责任部门
    /// </summary>
    public string CResponsibleUnits
    {
        get; set;
    }
    /// <summary>
    /// 销售基地
    /// </summary>
    public string SalesBase { get; set; }
    /// <summary>
    /// 业务员
    /// </summary>
    public string F_Salesman { set; get; }  

}

