Пример #1
0
        public ActionResult Edit(string id)
        {
            var userName       = MmsHelper.GetUserName();
            var currentProject = MmsHelper.GetCurrentProject();
            var data           = new DrainpipeductApiController().GetEditMaster(id);
            var codeService    = new sys_codeService();

            var model = new
            {
                form       = data.form,
                scrollKeys = data.scrollKeys,
                urls       = new
                {
                    getdetail = "/api/mms/drainpipeduct/getdetail/",
                    getmaster = "/api/mms/drainpipeduct/geteditmaster/",
                    edit      = "/api/mms/drainpipeduct/edit/",
                    audit     = "/api/mms/drainpipeduct/audit/",
                    getrowid  = "/mms/drainpipeduct/getnewrowid/"
                },
                resx = new
                {
                    rejected    = "已撤消修改!",
                    editSuccess = "保存成功!",
                    auditReject = "信息已取消审核!",
                    auditPassed = "信息已通过审核"
                },
                dataSource = new
                {
                    Category           = codeService.Decode("InspectionWellCategory"),
                    AdministrativeArea = codeService.Decode("AdministrativeArea"),
                    SectionForm        = codeService.Decode("drainGrooveSectionForm"),
                    Type           = codeService.Decode("drainpipeductType"),
                    GrooveType     = codeService.Decode("drainGrooveType"),
                    Material       = codeService.Decode("PipeMaterial"),
                    PressureType   = codeService.Decode("PipePressureType"),
                    FacilityStatus = codeService.Decode("FacilityStatus"),
                    warehouseItems = new mms_warehouseService().GetWarehouseItems(currentProject)
                },

                defaultForm = new mms_drainpipeduct().Extend(new
                {
                    BillNo             = id,
                    IdentificationCode = "",
                    DrainageCode       = "",
                    Address            = "",
                    Start_stopPoint    = "",
                    Category           = codeService.GetDefaultCodeNew("InspectionWellCategory"),
                    GrooveType         = codeService.GetDefaultCodeNew("drainGrooveType"),
                    Length             = "",
                    StartCode          = "",
                    StopCode           = "",
                    StartElevation     = "",
                    StopElevation      = "",
                    SectionForm        = codeService.GetDefaultCodeNew("drainGrooveSectionForm"),
                    Diameter           = "",
                    Material           = codeService.GetDefaultCodeNew("PipeMaterial"),
                    PressureType       = codeService.GetDefaultCodeNew("PipePressureType"),
                    LiningMaterial     = codeService.GetDefaultCodeNew("PipeLiningMaterial"),
                    LiningThick        = "",
                    Slope              = "",
                    Siphon             = "",
                    OwnershipUnit      = "",
                    FacilityStatus     = codeService.GetDefaultCodeNew("FacilityStatus"),
                    DataSources        = codeService.GetDefaultCodeNew("DataSources"),
                    ReportingUnit      = "",
                    Remark             = "",
                    Type               = codeService.GetDefaultCodeNew("drainpipeductType"),
                    AdministrativeArea = codeService.GetDefaultCodeNew("AdministrativeArea")
                }),

                setting = new
                {
                    postFormKeys = new string[] { "BillNo" }
                }
            };

            return(View(model));
        }
        public ActionResult Edit(string id)
        {
            var userName       = MmsHelper.GetUserName();
            var currentProject = MmsHelper.GetCurrentProject();
            var data           = new DrainagehouseholdsApiController().GetEditMaster(id);
            var codeService    = new sys_codeService();

            var model = new
            {
                form       = data.form,
                scrollKeys = data.scrollKeys,
                urls       = new
                {
                    getdetail = "/api/mms/drainagehouseholds/getdetail/",
                    getmaster = "/api/mms/drainagehouseholds/geteditmaster/",
                    edit      = "/api/mms/drainagehouseholds/edit/",
                    audit     = "/api/mms/drainagehouseholds/audit/",
                    getrowid  = "/mms/drainagehouseholds/getnewrowid/",
                    report    = "drainagehouseholds"
                },
                resx = new
                {
                    rejected    = "已撤消修改!",
                    editSuccess = "保存成功!",
                    auditReject = "信息已取消审核!",
                    auditPassed = "信息已通过审核"
                },
                dataSource = new
                {
                    Certificate        = codeService.Decode("AdditionalFacilities"),
                    AdministrativeArea = codeService.Decode("AdministrativeArea"),
                    FacilityStatus     = codeService.Decode("FacilityStatus"),
                    warehouseItems     = new mms_warehouseService().GetWarehouseItems(currentProject)
                },

                defaultForm = new mms_drainagehouseholds().Extend(new
                {
                    BillNo             = id,
                    OrgX               = "",
                    OrgY               = "",
                    IdentificationCode = "",
                    Address            = "",
                    Name               = "",
                    Displacement       = "",
                    Type               = "",
                    Certificate        = codeService.GetDefaultCodeNew("AdditionalFacilities"),
                    CertificateyTime   = "",
                    FacilityStatus     = codeService.GetDefaultCodeNew("FacilityStatus"),
                    DataSources        = codeService.GetDefaultCodeNew("DataSources"),
                    ReportingUnit      = "",
                    Remark             = "",
                    AdministrativeArea = codeService.GetDefaultCodeNew("AdministrativeArea")
                }),

                setting = new
                {
                    postFormKeys = new string[] { "BillNo" }
                }
            };

            return(View(model));
        }
        public ActionResult Edit(string id)
        {
            var userName       = MmsHelper.GetUserName();
            var currentProject = MmsHelper.GetCurrentProject();
            var data           = new DischargeportApiController().GetEditMaster(id);
            var codeService    = new sys_codeService();

            var model = new
            {
                form       = data.form,
                scrollKeys = data.scrollKeys,
                urls       = new
                {
                    getdetail = "/api/mms/dischargeport/getdetail/",
                    getmaster = "/api/mms/dischargeport/geteditmaster/",
                    edit      = "/api/mms/dischargeport/edit/",
                    audit     = "/api/mms/dischargeport/audit/",
                    getrowid  = "/mms/dischargeport/getnewrowid/"
                },
                resx = new
                {
                    rejected    = "已撤消修改!",
                    editSuccess = "保存成功!",
                    auditReject = "信息已取消审核!",
                    auditPassed = "信息已通过审核"
                },
                dataSource = new
                {
                    Category           = codeService.Decode("InspectionWellCategory"),
                    Form               = codeService.Decode("DischargeportForm"),
                    AdministrativeArea = codeService.Decode("AdministrativeArea"),
                    FilmDoorMaterial   = codeService.Decode("FilmDoorMaterial"),
                    FilmDoor           = codeService.Decode("AdditionalFacilities"),
                    FacilityStatus     = codeService.Decode("FacilityStatus"),
                    warehouseItems     = new mms_warehouseService().GetWarehouseItems(currentProject)
                },

                defaultForm = new mms_dischargeport().Extend(new
                {
                    BillNo                  = id,
                    OrgX                    = "",
                    OrgY                    = "",
                    IdentificationCode      = "",
                    DrainageCode            = "",
                    ReceivingCode           = "",
                    Address                 = "",
                    Category                = codeService.GetDefaultCodeNew("InspectionWellCategory"),
                    Size                    = "",
                    FilmDoor                = codeService.GetDefaultCodeNew("AdditionalFacilities"),
                    FilmDoorMaterial        = codeService.GetDefaultCodeNew("FilmDoorMaterial"),
                    FilmDoorDiameter        = "",
                    FilmDoorToopElevation   = "",
                    FilmDoorBottomElevation = "",
                    SubmergedWaterLevel     = "",
                    TideCurve               = "",
                    BottomElevation         = "",
                    Form                    = codeService.GetDefaultCodeNew("DischargeportForm"),
                    FacilityStatus          = codeService.GetDefaultCodeNew("FacilityStatus"),
                    DataSources             = codeService.GetDefaultCodeNew("DataSources"),
                    ReportingUnit           = "",
                    Remark                  = "",
                    AdministrativeArea      = codeService.GetDefaultCodeNew("AdministrativeArea")
                }),

                setting = new
                {
                    postFormKeys = new string[] { "BillNo" }
                }
            };

            return(View(model));
        }
        public ActionResult Edit(string id)
        {
            var userName       = MmsHelper.GetUserName();
            var currentProject = MmsHelper.GetCurrentProject();
            var data           = new InspectionwellApiController().GetEditMaster(id);
            var codeService    = new sys_codeService();

            var model = new
            {
                form       = data.form,
                scrollKeys = data.scrollKeys,
                urls       = new
                {
                    getdetail = "/api/mms/inspectionwell/getdetail/",
                    getmaster = "/api/mms/inspectionwell/geteditmaster/",
                    edit      = "/api/mms/inspectionwell/edit/",
                    audit     = "/api/mms/inspectionwell/audit/",
                    getrowid  = "/mms/inspectionwell/getnewrowid/",
                    report    = "inspectionwell"
                },
                resx = new
                {
                    rejected    = "已撤消修改!",
                    editSuccess = "保存成功!",
                    auditReject = "信息已取消审核!",
                    auditPassed = "信息已通过审核"
                },
                dataSource = new
                {
                    Category           = codeService.Decode("InspectionWellCategory"),
                    Type               = codeService.Decode("InspectionWellType"),
                    Form               = codeService.Decode("InspectionWellForm"),
                    AdministrativeArea = codeService.Decode("AdministrativeArea"),
                    CoverMaterial      = codeService.Decode("InspectionWellCoverMaterial"),
                    CoverSharp         = codeService.Decode("InspectionWellCoverSharp"),
                    WellType           = codeService.Decode("InspectionWellwelltype"),
                    BottomType         = codeService.Decode("InspectionWellBottomType"),
                    AntifallNet        = codeService.Decode("AdditionalFacilities"),
                    AntifallNetStatus  = codeService.Decode("AdditionalFacilitiesStatus"),
                    WellLevel          = codeService.Decode("InspectionWellLevel"),
                    FacilityStatus     = codeService.Decode("FacilityStatus"),
                    warehouseItems     = new mms_warehouseService().GetWarehouseItems(currentProject)
                },

                defaultForm = new mms_inspectionwell().Extend(new
                {
                    BillNo             = id,
                    OrgX               = "",
                    OrgY               = "",
                    IdentificationCode = "",
                    DrainageCode       = "",
                    Address            = "",
                    Category           = codeService.GetDefaultCodeNew("InspectionWellCategory"),
                    Type               = codeService.GetDefaultCodeNew("InspectionWellType"),
                    Form               = codeService.GetDefaultCodeNew("InspectionWellForm"),
                    Depth              = "",
                    GroundElevation    = "",
                    CoverMaterial      = codeService.GetDefaultCodeNew("InspectionWellCoverMaterial"),
                    CoverSharp         = codeService.GetDefaultCodeNew("InspectionWellCoverSharp"),
                    CoverSize          = "",
                    WellType           = codeService.GetDefaultCodeNew("InspectionWellwelltype"),
                    WellLength         = "",
                    WellWidth          = "",
                    WellDiameter       = "",
                    WellHeight         = "",
                    OrgWaterDepth      = "",
                    OrgDirtDepth       = "",
                    BottomType         = codeService.GetDefaultCodeNew("InspectionWellBottomType"),
                    AntifallNet        = codeService.GetDefaultCodeNew("AdditionalFacilities"),
                    AntifallNetStatus  = codeService.GetDefaultCodeNew("AdditionalFacilitiesStatus"),
                    WellLevel          = codeService.GetDefaultCodeNew("InspectionWellLevel"),
                    FacilityStatus     = codeService.GetDefaultCodeNew("FacilityStatus"),
                    DataSources        = codeService.GetDefaultCodeNew("DataSources"),
                    ReportingUnit      = "",
                    Remark             = "",
                    AdministrativeArea = codeService.GetDefaultCodeNew("AdministrativeArea")
                }),

                setting = new
                {
                    postFormKeys = new string[] { "BillNo" }
                }
            };

            return(View(model));
        }
        public ActionResult Edit(string id)
        {
            var userName       = MmsHelper.GetUserName();
            var currentProject = MmsHelper.GetCurrentProject();
            var data           = new SewagetreatmentApiController().GetEditMaster(id);
            var codeService    = new sys_codeService();

            var model = new
            {
                form       = data.form,
                scrollKeys = data.scrollKeys,
                urls       = new
                {
                    getdetail = "/api/mms/sewagetreatment/getdetail/",
                    getmaster = "/api/mms/sewagetreatment/geteditmaster/",
                    edit      = "/api/mms/sewagetreatment/edit/",
                    audit     = "/api/mms/sewagetreatment/audit/",
                    getrowid  = "/mms/sewagetreatment/getnewrowid/"
                },
                resx = new
                {
                    rejected    = "已撤消修改!",
                    editSuccess = "保存成功!",
                    auditReject = "信息已取消审核!",
                    auditPassed = "信息已通过审核"
                },
                dataSource = new
                {
                    AdministrativeArea = codeService.Decode("AdministrativeArea"),
                    FacilityStatus     = codeService.Decode("FacilityStatus"),
                    warehouseItems     = new mms_warehouseService().GetWarehouseItems(currentProject)
                },

                defaultForm = new mms_sewagetreatment().Extend(new
                {
                    BillNo             = id,
                    OrgX               = "",
                    OrgY               = "",
                    IdentificationCode = "",
                    Name               = "",
                    Sequence           = "",
                    AreaCovered        = "",
                    ServiceScope       = "",
                    PlanningCapacity   = "",
                    ActualCapacity     = "",
                    WaterQuality       = "",
                    DischargeWater     = "",
                    DischargeNumber    = "",
                    DischargeLoacation = "",
                    OperatingCondition = "",
                    TreatmentCost      = "",
                    FundsSources       = "",
                    OwnershipUnit      = "",
                    FacilityStatus     = codeService.GetDefaultCodeNew("FacilityStatus"),
                    DataSources        = codeService.GetDefaultCodeNew("DataSources"),
                    ReportingUnit      = "",
                    Remark             = "",
                    AdministrativeArea = codeService.GetDefaultCodeNew("AdministrativeArea")
                }),

                setting = new
                {
                    postFormKeys = new string[] { "BillNo" }
                }
            };

            return(View(model));
        }
Пример #6
0
        public ActionResult Edit(string id)
        {
            var userName       = MmsHelper.GetUserName();
            var currentProject = MmsHelper.GetCurrentProject();
            var data           = new FloodareaApiController().GetEditMaster(id);
            var codeService    = new sys_codeService();

            var model = new
            {
                form       = data.form,
                scrollKeys = data.scrollKeys,
                urls       = new
                {
                    getdetail = "/api/mms/floodarea/getdetail/",
                    getmaster = "/api/mms/floodarea/geteditmaster/",
                    edit      = "/api/mms/floodarea/edit/",
                    audit     = "/api/mms/floodarea/audit/",
                    getrowid  = "/mms/floodarea/getnewrowid/"
                },
                resx = new
                {
                    rejected    = "已撤消修改!",
                    editSuccess = "保存成功!",
                    auditReject = "信息已取消审核!",
                    auditPassed = "信息已通过审核"
                },
                dataSource = new
                {
                    AdministrativeArea = codeService.Decode("AdministrativeArea"),
                    FacilityStatus     = codeService.Decode("FacilityStatus"),
                    warehouseItems     = new mms_warehouseService().GetWarehouseItems(currentProject)
                },

                defaultForm = new mms_drainpipe().Extend(new
                {
                    BillNo             = id,
                    IdentificationCode = "",
                    Region             = "",
                    Address            = "",
                    Type                  = "",
                    ReportedArea          = "",
                    ActualArea            = "",
                    MaximumWaterDepth     = "",
                    Watertime             = "",
                    WaterLong             = "",
                    WaterCause            = "",
                    InfluenceDegree       = "",
                    RemediationMeasures   = "",
                    PlannedCompletionTime = "",
                    PlanInvestment        = "",
                    OwnershipUnit         = "",
                    FacilityStatus        = codeService.GetDefaultCodeNew("FacilityStatus"),
                    DataSources           = codeService.GetDefaultCodeNew("DataSources"),
                    ReportingUnit         = "",
                    Remark                = "",
                    AdministrativeArea    = codeService.GetDefaultCodeNew("AdministrativeArea")
                }),

                setting = new
                {
                    postFormKeys = new string[] { "BillNo" }
                }
            };

            return(View(model));
        }
Пример #7
0
        public ActionResult Edit(string id)
        {
            var userName       = MmsHelper.GetUserName();
            var currentProject = MmsHelper.GetCurrentProject();
            var data           = new RealdataApiController().GetEditMaster(id);
            var codeService    = new sys_codeService();

            var model = new
            {
                form       = data.form,
                scrollKeys = data.scrollKeys,
                urls       = new
                {
                    getdetail = "/api/mms/realdata/getdetail/",
                    getmaster = "/api/mms/realdata/geteditmaster/",
                    edit      = "/api/mms/realdata/edit/",
                    audit     = "/api/mms/realdata/audit/",
                    getrowid  = "/mms/realdata/getnewrowid/",
                    report    = "realdata"
                },
                resx = new
                {
                    rejected    = "已撤消修改!",
                    editSuccess = "保存成功!",
                    auditReject = "信息已取消审核!",
                    auditPassed = "信息已通过审核"
                },
                dataSource = new
                {
                    AdministrativeArea = codeService.Decode("AdministrativeArea"),
                    FacilityStatus     = codeService.Decode("FacilityStatus"),
                    warehouseItems     = new mms_warehouseService().GetWarehouseItems(currentProject)
                },

                defaultForm = new mms_realdata().Extend(new
                {
                    BillNo               = id,
                    OrgX                 = "",
                    OrgY                 = "",
                    IdentificationCode   = "",
                    DrainageCode         = "",
                    RiversName           = "",
                    Category             = "",
                    Name                 = "",
                    GateOpening1         = "",
                    GateOpening2         = "",
                    GateOpening3         = "",
                    GateOpening4         = "",
                    GateOpening5         = "",
                    GateOpening6         = "",
                    GateOpening7         = "",
                    GateOpening8         = "",
                    UpstreamWaterLevel   = "",
                    DownstreamWaterLevel = "",
                    ControlIP            = "",
                    VideoIP              = "",
                    Rainfall             = "",
                    RiverWaterLevel      = "",
                    FacilityStatus       = codeService.GetDefaultCodeNew("FacilityStatus"),
                    DataSources          = codeService.GetDefaultCodeNew("DataSources"),
                    ReportingUnit        = "",
                    Remark               = "",
                    AdministrativeArea   = codeService.GetDefaultCodeNew("AdministrativeArea")
                }),

                setting = new
                {
                    postFormKeys = new string[] { "BillNo" }
                }
            };

            return(View(model));
        }
        public ActionResult Edit(string id)
        {
            var userName       = MmsHelper.GetUserName();
            var currentProject = MmsHelper.GetCurrentProject();
            var data           = new RainwaterportApiController().GetEditMaster(id);
            var codeService    = new sys_codeService();

            var model = new
            {
                form       = data.form,
                scrollKeys = data.scrollKeys,
                urls       = new
                {
                    getdetail = "/api/mms/rainwaterport/getdetail/",
                    getmaster = "/api/mms/rainwaterport/geteditmaster/",
                    edit      = "/api/mms/rainwaterport/edit/",
                    audit     = "/api/mms/rainwaterport/audit/",
                    getrowid  = "/mms/rainwaterport/getnewrowid/"
                },
                resx = new
                {
                    rejected    = "已撤消修改!",
                    editSuccess = "保存成功!",
                    auditReject = "信息已取消审核!",
                    auditPassed = "信息已通过审核"
                },
                dataSource = new
                {
                    Form = codeService.Decode("RainWaterPortForm"),
                    AdministrativeArea          = codeService.Decode("AdministrativeArea"),
                    GarbageInterceptionDevice   = codeService.Decode("AdditionalFacilities"),
                    DeodorizationDevice         = codeService.Decode("AdditionalFacilities"),
                    RainwaterInterceptionDevice = codeService.Decode("AdditionalFacilities"),
                    RainGrateMaterial           = codeService.Decode("RainGrateMaterial"),
                    FacilityStatus = codeService.Decode("FacilityStatus"),
                    warehouseItems = new mms_warehouseService().GetWarehouseItems(currentProject)
                },

                defaultForm = new mms_rainwaterport().Extend(new
                {
                    BillNo                      = id,
                    OrgX                        = "",
                    OrgY                        = "",
                    IdentificationCode          = "",
                    DrainageCode                = "",
                    Address                     = "",
                    Form                        = codeService.GetDefaultCodeNew("RainWaterPortForm"),
                    MaximumDepth                = "",
                    GroundElevation             = "",
                    MaximumFlowCapacity         = "",
                    Width                       = "",
                    Length                      = "",
                    RainGrateMaterial           = codeService.GetDefaultCodeNew("RainGrateMaterial"),
                    RainGrateLength             = "",
                    RainGrateWidth              = "",
                    GarbageInterceptionDevice   = codeService.GetDefaultCodeNew("AdditionalFacilitiesStatus"),
                    DeodorizationDevice         = codeService.GetDefaultCodeNew("AdditionalFacilitiesStatus"),
                    RainwaterInterceptionDevice = codeService.GetDefaultCodeNew("AdditionalFacilitiesStatus"),
                    RetentionCapacity           = "",
                    FacilityStatus              = codeService.GetDefaultCodeNew("FacilityStatus"),
                    DataSources                 = codeService.GetDefaultCodeNew("DataSources"),
                    ReportingUnit               = "",
                    Remark                      = "",
                    AdministrativeArea          = codeService.GetDefaultCodeNew("AdministrativeArea")
                }),

                setting = new
                {
                    postFormKeys = new string[] { "BillNo" }
                }
            };

            return(View(model));
        }
Пример #9
0
        public ActionResult Edit(string id)
        {
            var userName       = MmsHelper.GetUserName();
            var currentProject = MmsHelper.GetCurrentProject();
            var data           = new RiverestuaryApiController().GetEditMaster(id);
            var codeService    = new sys_codeService();

            var model = new
            {
                form       = data.form,
                scrollKeys = data.scrollKeys,
                urls       = new
                {
                    getdetail = "/api/mms/riverestuary/getdetail/",
                    getmaster = "/api/mms/riverestuary/geteditmaster/",
                    edit      = "/api/mms/riverestuary/edit/",
                    audit     = "/api/mms/riverestuary/audit/",
                    getrowid  = "/mms/riverestuary/getnewrowid/",
                    report    = "gate"
                },
                resx = new
                {
                    rejected    = "已撤消修改!",
                    editSuccess = "保存成功!",
                    auditReject = "信息已取消审核!",
                    auditPassed = "信息已通过审核"
                },
                dataSource = new
                {
                    Category           = codeService.Decode("InspectionWellCategory"),
                    AdministrativeArea = codeService.Decode("AdministrativeArea"),
                    FacilityStatus     = codeService.Decode("FacilityStatus"),
                    warehouseItems     = new mms_warehouseService().GetWarehouseItems(currentProject)
                },

                defaultForm = new mms_gate().Extend(new
                {
                    BillNo             = id,
                    OrgX               = "",
                    OrgY               = "",
                    IdentificationCode = "",
                    DrainageCode       = "",
                    Category           = codeService.GetDefaultCodeNew("InspectionWellCategory"),
                    GroundElevation    = "",
                    Size               = "",
                    FrontSize          = "",
                    Address            = "",
                    FacilityStatus     = codeService.GetDefaultCodeNew("FacilityStatus"),
                    DataSources        = codeService.GetDefaultCodeNew("DataSources"),
                    ReportingUnit      = "",
                    Remark             = "",
                    AdministrativeArea = codeService.GetDefaultCodeNew("AdministrativeArea")
                }),

                setting = new
                {
                    postFormKeys = new string[] { "BillNo" }
                }
            };

            return(View(model));
        }
Пример #10
0
        public ActionResult Edit(string id)
        {
            var userName       = MmsHelper.GetUserName();
            var currentProject = MmsHelper.GetCurrentProject();
            var data           = new PumpstationApiController().GetEditMaster(id);
            var codeService    = new sys_codeService();

            var model = new
            {
                form       = data.form,
                scrollKeys = data.scrollKeys,
                urls       = new
                {
                    getdetail = "/api/mms/pumpstation/getdetail/",
                    getmaster = "/api/mms/pumpstation/geteditmaster/",
                    edit      = "/api/mms/pumpstation/edit/",
                    audit     = "/api/mms/pumpstation/audit/",
                    getrowid  = "/mms/pumpstation/getnewrowid/"
                },
                resx = new
                {
                    rejected    = "已撤消修改!",
                    editSuccess = "保存成功!",
                    auditReject = "信息已取消审核!",
                    auditPassed = "信息已通过审核"
                },
                dataSource = new
                {
                    Category           = codeService.Decode("PumpType"),
                    AdministrativeArea = codeService.Decode("AdministrativeArea"),
                    FacilityStatus     = codeService.Decode("FacilityStatus"),
                    warehouseItems     = new mms_warehouseService().GetWarehouseItems(currentProject)
                },

                defaultForm = new mms_inspectionwell().Extend(new
                {
                    BillNo               = id,
                    OrgX                 = "",
                    OrgY                 = "",
                    IdentificationCode   = "",
                    DrainageCode         = "",
                    Name                 = "",
                    Address              = "",
                    Category             = codeService.GetDefaultCodeNew("PumpType"),
                    PumpNumber           = "",
                    RainwaterCapacity    = "",
                    SewageCapacity       = "",
                    MinimumWaterLevel    = "",
                    NurmalWaterLevel     = "",
                    AlarmWaterLevel      = "",
                    AreaCovered          = "",
                    ServiceScope         = "",
                    ServiceArea          = "",
                    RainwaterCapacityNow = "",
                    SewageCapacityNow    = "",
                    StormPeriod          = "",
                    PowerSupply          = "",
                    InstalledCapacity    = "",
                    DischargeCode        = "",
                    FrontPoolLength      = "",
                    FrontPoolWidth       = "",
                    FrontPoolDepth       = "",
                    FacilityStatus       = codeService.GetDefaultCodeNew("FacilityStatus"),
                    DataSources          = codeService.GetDefaultCodeNew("DataSources"),
                    ReportingUnit        = "",
                    Remark               = "",
                    AdministrativeArea   = codeService.GetDefaultCodeNew("AdministrativeArea")
                }),

                setting = new
                {
                    postFormKeys = new string[] { "BillNo" }
                }
            };

            return(View(model));
        }