private void sb_createTables()
        {
            this.prp_tables = new List <model.htmlTable>();
            model.htmlTable tbl;

            #region rwmmsRepairCurrentsDetailParts
            tbl = new model.htmlTable("rwmmsRepairCurrentsDetailParts", this, "Id", By.Id("ContentPlaceHolder1_dgEquipmentUse"), null);
            //tbl.prp_pageIndexColumnName = "wrPageIndex";
            //tbl.prp_controlLoadBy = By.Id("ContentPlaceHolder1_cmdSearch");
            //tbl.prp_controlRowCountBy = By.Id("ContentPlaceHolder1_lblRecordCount");
            //tbl.prp_stopFetchingWhenGotToExistedRows = false;

            tbl.prp_identifierColumnNames = new string[] { "wrMapNo", "gParentRepairCurrentDetail" };
            //tbl.prp_pageIndexIdentifierColumnNames = new string[] { "vehicleOwnerName" };
            tbl.prp_pageIndexUsed = false;
            //tbl.prp_pageRowCount = 5;
            //tbl.prp_skipRowBottom = 1;
            tbl.prp_skipRowTop = 1;

            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrMapNo", typeof(string), 0, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrPartName", typeof(string), 1, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrCountNew", typeof(string), 2, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrCountOld", typeof(int), 3, "text", null));
            //tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrNavyControllerName", typeof(string), 5, "text", null));

            tbl.Columns.Add(new model.htmlControlParent("gParentRepairCurrentDetail", typeof(int)));
            //tbl.Columns.Add(new model.columnComputedReference("gPartId", typeof(int), "rwmmsWagonParts", "wPartName", null, "Id", "wrMapNo"));
            tbl.Columns.Add(new model.columnComputedDateTime("gFetchTime", typeof(DateTime), (string)null, model.columnComputedDateTime.enumDateTimeComputeType.CurrentGregorianDateTime));

            this.prp_tables.Add(tbl);
            #endregion
        }
示例#2
0
        private void sb_createTables()
        {
            this.prp_tables = new List <model.htmlTable>();
            model.htmlTable tbl;

            //#region rwmmsRepairVisitPosts
            //tbl = new model.htmlTable("rwmmsRepairVisitPosts", this, "Id", null, By.Id("ContentPlaceHolder1_cboSurveyStation"));
            //tbl.prp_identifierColumnNames = new string[] { "visitPostName" };
            //tbl.prp_skipRowTop = 1;
            //tbl.Columns.Add(new model.htmlControlCombo("visitPostName", typeof(string), "text", "alternateNames"));
            //tbl.Columns.Add(new model.htmlControlCombo("visitPostId", typeof(string), "value", null));
            //this.prp_tables.Add(tbl);
            //#endregion

            //#region rwmmsPostControllers
            //tbl = new model.htmlTable("rwmmsPostControllers", this, "Id", null, By.Id("ContentPlaceHolder1_cboPersonelSurveyAssignee_DropDown"));
            //tbl.prp_identifierColumnNames = new string[] { "postControllerName" };
            //tbl.prp_skipRowTop = 1;
            //tbl.Columns.Add(new model.htmlControlCombo("postControllerName", typeof(string), "text", "alternateNames"));
            //tbl.Columns.Add(new model.htmlControlCombo("postControllerId", typeof(string), "value", null));
            //this.prp_tables.Add(tbl);
            //#endregion

            #region rwmmsRepairCurrents
            tbl = new model.htmlTable("rwmmsRepairCurrents", this, "Id", By.Id("ContentPlaceHolder1_dgSubContractor"), null);
            tbl.prp_pageIndexColumnName = "wrPageIndex";
            tbl.prp_controlLoadBy       = By.Id("ContentPlaceHolder1_cmdSearch");
            tbl.prp_rowCountBy          = By.Id("ContentPlaceHolder1_lblRecordCount");
            tbl.prp_stopFetchingWhenGotToExistedRows = false;

            tbl.prp_identifierColumnNames          = new string[] { "wrVisitPost", "wrVisitSolarDate" };
            tbl.prp_pageIndexIdentifierColumnNames = new string[] { "vehicleOwnerName" };

            tbl.prp_pageRowCount  = 5;
            tbl.prp_skipRowBottom = 1;
            tbl.prp_skipRowTop    = 1;

            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrVisitPost", typeof(string), 1, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrVisitSolarDate", typeof(string), 2, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrRepairContractor", typeof(string), 3, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrPostControllerName", typeof(string), 4, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrNavyControllerName", typeof(string), 5, "text", null));

            tbl.Columns.Add(new model.columnComputedReference("gRepairContractorId", typeof(int), "rwmmsRepairContractors", "contractorName", "alternateNames", "Id", "wrRepairContractor"));
            tbl.Columns.Add(new model.columnComputedReference("gVisitPostId", typeof(int), "rwmmsRepairVisitPosts", "visitPostName", "alternateNames", "Id", "wrVisitPost"));
            tbl.Columns.Add(new model.columnComputedReference("gNavyControllerId", typeof(int), "rwmmsPostControllers", "postControllerName", "alternateNames", "Id", "wrNavyControllerName"));
            tbl.Columns.Add(new model.columnComputedReference("gPostControllerId", typeof(int), "rwmmsPostControllers", "postControllerName", "alternateNames", "Id", "wrPostControllerName"));
            tbl.Columns.Add(new model.columnComputedDateTime("gVisitDate", typeof(DateTime), "wrVisitSolarDate", model.columnComputedDateTime.enumDateTimeComputeType.solarDateToGregorianDateReverse));
            tbl.Columns.Add(new model.columnComputedDateTime("gFetchTime", typeof(DateTime), (string)null, model.columnComputedDateTime.enumDateTimeComputeType.CurrentGregorianDateTime));
            tbl.Columns.Add(new model.htmlControl("wrPageIndex", typeof(int), By.XPath("/html/body/form/div[3]/table/tbody/tr[4]/td/table/tbody/tr[7]/td/span"), "text", null));

            tbl.Columns.Add(new model.htmlControlGridDetailColumn("colEdit", typeof(string), 7, typeof(webpageWagonRepairCurrentDetail), true, false, false));
            this.prp_tables.Add(tbl);
            #endregion
        }
        private void sb_createTables()
        {
            this.prp_tables = new List <model.htmlTable>();
            model.htmlTable tbl;

            #region rwmmsRepairCurrentsExtraInfo
            tbl = new model.htmlTable("rwmmsRepairCurrents", this, "Id", null, null);
            tbl.prp_identifierColumnNames = new string[] { "Id" };
            tbl.Columns.Add(new model.htmlControlParent("Id", typeof(int), false));
            tbl.Columns.Add(new model.htmlControl("wrRepairRegion", typeof(string), By.Id("ContentPlaceHolder1_txtRegion"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrControllerCompanyName", typeof(string), By.Id("ContentPlaceHolder1_txtSurvey"), "value", null));

            this.prp_tables.Add(tbl);
            #endregion

            #region rwmmsRepairCurrentsDetail
            tbl = new model.htmlTable("rwmmsRepairCurrentsDetail", this, "Id", By.Id("ContentPlaceHolder1_dgTimeRepair"), null);
            //tbl.prp_pageIndexColumnName = "wrPageIndex";
            //tbl.prp_controlLoadBy = By.Id("ContentPlaceHolder1_cmdSearch");
            //tbl.prp_controlRowCountBy = By.Id("ContentPlaceHolder1_lblRecordCount");
            //tbl.prp_stopFetchingWhenGotToExistedRows = false;

            tbl.prp_identifierColumnNames = new string[] { "wrWagonNo", "gParentRepairCurrentId" };
            //tbl.prp_pageIndexIdentifierColumnNames = new string[] { "vehicleOwnerName" };
            tbl.prp_pageIndexUsed = false;
            //tbl.prp_pageRowCount = 5;
            //tbl.prp_skipRowBottom = 1;
            tbl.prp_skipRowTop = 1;


            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrWagonNo", typeof(string), 1, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrSourceStationName", typeof(string), 2, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrDestinationStationName", typeof(string), 3, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrPartCount", typeof(int), 4, "text", null));
            //tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrNavyControllerName", typeof(string), 5, "text", null));

            tbl.Columns.Add(new model.htmlControlParent("gParentRepairCurrentId", typeof(int)));
            tbl.Columns.Add(new model.columnComputedReference("gWagonId", typeof(int), "Wagons", "wagonNo", null, "Id", "wrWagonNo"));
            tbl.Columns.Add(new model.columnComputedReference("gSourceStationId", typeof(int), "PWS0Stations", "name", "alternateNames", "Id", "wrSourceStationName"));
            tbl.Columns.Add(new model.columnComputedReference("gDestinationStationId", typeof(int), "PWS0Stations", "name", "alternateNames", "Id", "wrDestinationStationName"));
            tbl.Columns.Add(new model.columnComputedDateTime("gFetchTime", typeof(DateTime), (string)null, model.columnComputedDateTime.enumDateTimeComputeType.CurrentGregorianDateTime));

            tbl.Columns.Add(new model.htmlControlGridDetailColumn("colEdit", typeof(string), 6, typeof(webpageWagonRepairCurrentDetailParts), true, false, false));
            this.prp_tables.Add(tbl);
            #endregion
        }
示例#4
0
        private void sb_createTables()
        {
            this.prp_tables = new List <model.htmlTable>();
            model.htmlTable tbl;

            //#region repairStations
            //tbl = new model.htmlTable("rwmmsRepairStations", this, "Id", null, By.Id("ContentPlaceHolder1_drpStation"));
            //tbl.prp_identifierColumnNames = new string[] { "repairStationName" };
            //tbl.prp_skipRowTop = 1;
            //tbl.Columns.Add(new model.htmlControlCombo("repairStationName", typeof(string), "text", null));
            //tbl.Columns.Add(new model.htmlControlCombo("repairStationId", typeof(string), "value", null));

            //this.prp_tables.Add(tbl);
            //#endregion

            //#region repairRepresentative
            //tbl = new model.htmlTable("rwmmsRailwayRepresentatives", this, "Id", null, By.Id("ContentPlaceHolder1_cboRailWayAssignee_DropDown"));
            //tbl.prp_identifierColumnNames = new string[] { "representativeName" };
            //tbl.prp_skipRowTop = 1;
            //tbl.Columns.Add(new model.htmlControlCombo("representativeName", typeof(string), "text", null));
            //tbl.Columns.Add(new model.htmlControlCombo("representativeValue", typeof(string), "value", null));

            //this.prp_tables.Add(tbl);
            //#endregion

            //#region BoogieType
            //tbl = new model.htmlTable("rwmmsBoogieTypes", this, "Id", null, By.Id("ContentPlaceHolder1_cboNoeWagonBogi"));
            //tbl.prp_identifierColumnNames = new string[] { "boogieTypeName" };
            //tbl.prp_skipRowTop = 1;
            //tbl.Columns.Add(new model.htmlControlCombo("boogieTypeName", typeof(string), "text", null));
            //tbl.Columns.Add(new model.htmlControlCombo("boogieTypeValue", typeof(string), "value", null));

            //this.prp_tables.Add(tbl);
            //#endregion

            //#region HookType
            //tbl = new model.htmlTable("rwmmsHookTypes", this, "Id", null, By.Id("ContentPlaceHolder1_cboNoeCrampon"));
            //tbl.prp_identifierColumnNames = new string[] { "hookTypeName" };
            //tbl.prp_skipRowTop = 1;
            //tbl.Columns.Add(new model.htmlControlCombo("hookTypeName", typeof(string), "text", null));
            //tbl.Columns.Add(new model.htmlControlCombo("hookTypeValue", typeof(string), "value", null));

            //this.prp_tables.Add(tbl);
            //#endregion

            //#region AutoTypes
            //tbl = new model.htmlTable("rwmmsAutoTypes", this, "Id", null, By.Id("ContentPlaceHolder1_cboNoeKhodkar"));
            //tbl.prp_identifierColumnNames = new string[] { "autoTypeName" };
            //tbl.prp_skipRowTop = 1;
            //tbl.Columns.Add(new model.htmlControlCombo("autoTypeName", typeof(string), "text", null));
            //tbl.Columns.Add(new model.htmlControlCombo("autoTypeValue", typeof(string), "value", null));

            //this.prp_tables.Add(tbl);
            //#endregion

            //#region ValveType
            //tbl = new model.htmlTable("rwmmsValveTypes", this, "Id", null, By.Id("ContentPlaceHolder1_cboNoeSupup"));
            //tbl.prp_identifierColumnNames = new string[] { "valveTypeName" };
            //tbl.prp_skipRowTop = 1;
            //tbl.Columns.Add(new model.htmlControlCombo("valveTypeName", typeof(string), "text", null));
            //tbl.Columns.Add(new model.htmlControlCombo("valveTypeValue", typeof(string), "value", null));

            //this.prp_tables.Add(tbl);
            //#endregion

            //#region CylinderTypes
            //tbl = new model.htmlTable("rwmmsCylinderTypes", this, "Id", null, By.Id("ContentPlaceHolder1_cboNoeSilandr"));
            //tbl.prp_identifierColumnNames = new string[] { "cylinderTypeName" };
            //tbl.prp_skipRowTop = 1;
            //tbl.Columns.Add(new model.htmlControlCombo("cylinderTypeName", typeof(string), "text", null));
            //tbl.Columns.Add(new model.htmlControlCombo("cylinderTypeValue", typeof(string), "value", null));

            //this.prp_tables.Add(tbl);
            //#endregion

            #region wagon
            tbl = new model.htmlTable("Wagons", this, "Id", null, null);
            tbl.prp_identifierColumnNames = new string[] { "wagonNo" };
            tbl.Columns.Add(new model.htmlControl("wagonNo", typeof(long), By.Id("ContentPlaceHolder1_TxtFind_WagonNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrChassisSerial", typeof(string), By.Id("ContentPlaceHolder1_txtShasiNoIn"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrRivNo", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_RIVNo"), "value", null));
            tbl.Columns.Add(new model.htmlControlRegex("wrDaysRemainToRepair", typeof(string), By.Id("ContentPlaceHolder1_lblInfo")
                                                       , "text", "^(\\d+)", 1, null));
            tbl.Columns.Add(new model.htmlControl("wrOwnerName", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_Owner"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrOwnershipType", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_OwnershipType"), "value", null));
            //tbl.Columns.Add(new model.htmlControlCombo("contractorId", typeof(string), "value", null));
            this.prp_tables.Add(tbl);
            #endregion

            #region WagonRepair
            tbl = new model.htmlTable("rwmmsRepairs", this, "Id", null, null);
            tbl.prp_identifierColumnNames = new string[] { "Id" };
            tbl.Columns.Add(new model.htmlControlParent("Id", typeof(int), false));
            tbl.Columns.Add(new model.htmlControl("wrWagonNo", typeof(long), By.Id("ContentPlaceHolder1_TxtFind_WagonNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrRivNo", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_RIVNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrControlDigitNo", typeof(int), By.Id("ContentPlaceHolder1_lblControlDigit"), "text", null));
            tbl.Columns.Add(new model.htmlControl("wrOwnershipType", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_OwnershipType"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAssessNo", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_EvalNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrSolarDateRepairFullLast", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_LastMainRepair"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrSolarDateRepairHalfLast", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_LastHalfRepair"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrBoogieType", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_NoeBogiTitle"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrHookType", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_NoeGholabTitle"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrBoogieSerial1", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_BogiSerialNo1"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrHookTypeSerial1", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_CramponSerialNo1"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrBoogieSerial2", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_BogiSerialNo2"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrHookTypeSerial2", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_CramponSerialNo2"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisHeaderSerial1", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_AxleSerialNo1"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisHeaderSerial2", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_AxleSerialNo2"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisHeaderSerial3", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_AxleSerialNo3"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisHeaderSerial4", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_AxleSerialNo4"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisHeaderSerial5", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_AxleSerialNo5"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisHeaderSerial6", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_AxleSerialNo6"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAutoType", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_Noe_Khodkar_TormozTitle"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAutoSerial", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_KhodkarSerialNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrValveType", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_Noe_SupspTitle"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrValveSerial", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_SupspSerialNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrBrakeCylinderType", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_Noe_Silandr_TormozTitle"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrCylinderSerial", typeof(string), By.Id("ContentPlaceHolder1_TxtFind_SilandrSerialNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrChassisSerial", typeof(string), By.Id("ContentPlaceHolder1_txtShasiNoIn"), "value", null));
            tbl.Columns.Add(new model.htmlControlComboSelectedItem("wrRepairStation", typeof(string), By.Id("ContentPlaceHolder1_drpStation"), "value", null));
            tbl.Columns.Add(new model.htmlControlComboSelectedItem("wrDelayType", typeof(string), By.Id("ContentPlaceHolder1_cboDelayReason"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrContractNo", typeof(string), By.Id("ContentPlaceHolder1_txtContractNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrDeliveryCount", typeof(int), By.Id("ContentPlaceHolder1_txtDeliveryCount"), "value", null));

            tbl.Columns.Add(new model.htmlControlComboSelectedItem("wrRailwayRepresentative", typeof(string), By.Id("ContentPlaceHolder1_cboRailWayAssignee_DropDown"), "text", null));
            tbl.Columns.Add(new model.htmlControl("wrRailwayRepresentativeSolarDate", typeof(string), By.Id("ContentPlaceHolder1_txtRailwayAssigneeDate"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrContractorRepresentative", typeof(string), By.Id("ContentPlaceHolder1_txtContractorAssignee"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrContractorRepresentativeSolarDate", typeof(string), By.Id("ContentPlaceHolder1_txtContractorDate"), "value", null));

            tbl.Columns.Add(new model.htmlControlComboSelectedItem("wrBoogieTypeEx", typeof(string), By.Id("ContentPlaceHolder1_cboNoeWagonBogi"), "text", null));
            tbl.Columns.Add(new model.htmlControl("wrBoogieSerial1Ex", typeof(string), By.Id("ContentPlaceHolder1_txtBogiSerialNo1_txtSerialNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrBoogieSerial2Ex", typeof(string), By.Id("ContentPlaceHolder1_txtBogiSerialNo2_txtSerialNo"), "value", null));

            tbl.Columns.Add(new model.htmlControlComboSelectedItem("wrHookTypeEx", typeof(string), By.Id("ContentPlaceHolder1_cboNoeCrampon"), "text", null));
            tbl.Columns.Add(new model.htmlControl("wrHookType1SerialEx", typeof(string), By.Id("ContentPlaceHolder1_txtCramponSerialNo1"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrHookType2SerialEx", typeof(string), By.Id("ContentPlaceHolder1_txtCramponSerialNo2"), "value", null));

            tbl.Columns.Add(new model.htmlControl("wrAxisHeaderSerial1Ex", typeof(string), By.Id("ContentPlaceHolder1_txtAxleSerialNo1_txtSerialNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisWheelSize1Ex", typeof(string), By.Id("ContentPlaceHolder1_txtAxleSize1"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisHeaderSerial2Ex", typeof(string), By.Id("ContentPlaceHolder1_txtAxleSerialNo2_txtSerialNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisWheelSize2Ex", typeof(string), By.Id("ContentPlaceHolder1_txtAxleSize2"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisHeaderSerial3Ex", typeof(string), By.Id("ContentPlaceHolder1_txtAxleSerialNo3_txtSerialNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisWheelSize3Ex", typeof(string), By.Id("ContentPlaceHolder1_txtAxleSize3"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisHeaderSerial4Ex", typeof(string), By.Id("ContentPlaceHolder1_txtAxleSerialNo4_txtSerialNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisWheelSize4Ex", typeof(string), By.Id("ContentPlaceHolder1_txtAxleSize4"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisHeaderSerial5Ex", typeof(string), By.Id("ContentPlaceHolder1_txtAxleSerialNo5_txtSerialNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisWheelSize5Ex", typeof(string), By.Id("ContentPlaceHolder1_txtAxleSize5"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisHeaderSerial6Ex", typeof(string), By.Id("ContentPlaceHolder1_txtAxleSerialNo6_txtSerialNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrAxisWheelSize6Ex", typeof(string), By.Id("ContentPlaceHolder1_txtAxleSize6"), "value", null));

            tbl.Columns.Add(new model.htmlControlComboSelectedItem("wrAutoTypeEx", typeof(string), By.Id("ContentPlaceHolder1_cboNoeKhodkar"), "text", null));
            tbl.Columns.Add(new model.htmlControl("wrAutoSerialEx", typeof(string), By.Id("ContentPlaceHolder1_txtKhodkarSerialNo_txtSerialNo"), "value", null));
            tbl.Columns.Add(new model.htmlControlComboSelectedItem("wrValveTypeEx", typeof(string), By.Id("ContentPlaceHolder1_cboNoeSupup"), "text", null));
            tbl.Columns.Add(new model.htmlControl("wrValveSerialEx", typeof(string), By.Id("ContentPlaceHolder1_txtSupopSerialNo_txtSerialNo"), "value", null));
            tbl.Columns.Add(new model.htmlControlComboSelectedItem("wrBrakeCylinderTypeEx", typeof(string), By.Id("ContentPlaceHolder1_cboNoeSilandr"), "text", null));
            tbl.Columns.Add(new model.htmlControl("wrCylinderSerialEx", typeof(string), By.Id("ContentPlaceHolder1_txtSilandrSerialNo_txtSerialNo"), "value", null));
            tbl.Columns.Add(new model.htmlControl("wrChassisSerialNoEx", typeof(string), By.Id("ContentPlaceHolder1_txtShasiNoOut"), "value", null));

            tbl.Columns.Add(new model.htmlControl("wrDescription", typeof(string), By.Id("ContentPlaceHolder1_txtDescription"), "value", null));

            this.prp_tables.Add(tbl);


            #endregion
        }
示例#5
0
        private void sb_createTables()
        {
            this.prp_tables = new List <model.htmlTable>();
            model.htmlTable tbl;

            //#region RepairContractorsCombo
            //tbl = new model.htmlTable("rwmmsRepairContractors", this, "Id", null, By.Id("ContentPlaceHolder1_repCombo_DropDown"));
            //tbl.prp_identifierColumnNames = new string[] { "contractorName" };
            //tbl.prp_skipRowTop = 1;
            //tbl.Columns.Add(new model.htmlControlCombo("contractorName", typeof(string), "text", "alternateNames"));
            //tbl.Columns.Add(new model.htmlControlCombo("contractorId", typeof(string), "value", null));
            //this.prp_tables.Add(tbl);
            //#endregion

            //#region RepairRepairRegion
            //tbl = new model.htmlTable("rwmmsRepairRegions", this, "Id", null, By.Id("ContentPlaceHolder1_regCombo_cmbRegion"));
            //tbl.prp_identifierColumnNames = new string[] { "regionName" };
            //tbl.prp_skipRowTop = 1;
            //tbl.Columns.Add(new model.htmlControlCombo("regionName", typeof(string), "text", "alternateNames"));
            //tbl.Columns.Add(new model.htmlControlCombo("regionId", typeof(string), "value", null));
            //this.prp_tables.Add(tbl);
            //#endregion

            //#region RepairRepairType
            //tbl = new model.htmlTable("rwmmsRepairTypes", this, "Id", null, By.Id("ContentPlaceHolder1_cboRepairKind"));
            //tbl.prp_identifierColumnNames = new string[] { "typeName" };
            //tbl.prp_skipRowTop = 1;
            //tbl.Columns.Add(new model.htmlControlCombo("typeName", typeof(string), "text", "alternateNames"));
            //tbl.Columns.Add(new model.htmlControlCombo("typeId", typeof(string), "value", null));
            //this.prp_tables.Add(tbl);
            //#endregion

            //#region RepairController
            //tbl = new model.htmlTable("rwmmsRepairControllers", this, "Id", null, By.Id("ContentPlaceHolder1_cboController_DropDown"));
            //tbl.prp_identifierColumnNames = new string[] { "controllerName" };
            //tbl.prp_skipRowTop = 1;
            //tbl.Columns.Add(new model.htmlControlCombo("controllerName", typeof(string), "text", "alternateNames"));
            //tbl.Columns.Add(new model.htmlControlCombo("controllerId", typeof(string), "value", null));
            //this.prp_tables.Add(tbl);
            //#endregion

            //#region RepairDelayType
            //tbl = new model.htmlTable("rwmmsRepairDelayTypes", this, "Id", null, By.Id("ContentPlaceHolder1_cboDelayReason"));
            //tbl.prp_identifierColumnNames = new string[] { "typeName" };
            //tbl.prp_skipRowTop = 1;
            //tbl.Columns.Add(new model.htmlControlCombo("typeName", typeof(string), "text", "alternateNames"));
            //tbl.Columns.Add(new model.htmlControlCombo("typeId", typeof(string), "value", null));
            //this.prp_tables.Add(tbl);
            //#endregion

            //#region RepairVehicleOwners
            //tbl = new model.htmlTable("rwmmsVehicleOwners", this, "Id", null, By.Id("ContentPlaceHolder1_cboOwner_DropDown"));
            //tbl.prp_identifierColumnNames = new string[] { "companyName" };
            //tbl.prp_skipRowTop = 1;
            //tbl.Columns.Add(new model.htmlControlCombo("companyName", typeof(string), "text", "alternateNames"));
            //tbl.Columns.Add(new model.htmlControlCombo("wCompanyId", typeof(string), "value", null));
            //this.prp_tables.Add(tbl);
            //#endregion

            #region Repairs
            tbl = new model.htmlTable("rwmmsRepairs", this, "Id", By.Id("ContentPlaceHolder1_dgWagonRepair"), null);
            tbl.prp_pageIndexColumnName = "wrPageIndex";
            tbl.prp_controlLoadBy       = By.Id("ContentPlaceHolder1_cmdSearch");
            tbl.prp_rowCountBy          = By.Id("ContentPlaceHolder1_lblRecordCount");

            tbl.prp_identifierColumnNames          = new string[] { "wrWagonNo", "wrSolarDateEntrance" };
            tbl.prp_pageIndexIdentifierColumnNames = new string[] { "vehicleOwnerName" };

            tbl.prp_pageRowCount  = 5;
            tbl.prp_skipRowBottom = 1;
            tbl.prp_skipRowTop    = 1;

            tbl.Columns.Add(new model.htmlControlComboSelectedItem("wrOwnerName", typeof(string), By.Id("ContentPlaceHolder1_cboOwner_DropDown"), "text", null));
            tbl.Columns.Add(new model.htmlControlComboSelectedItem("wrOwnerValue", typeof(string), By.Id("ContentPlaceHolder1_cboOwner_DropDown"), "value", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrWagonNo", typeof(string), 1, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrSolarDateEntrance", typeof(string), 2, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrSolarDateExit", typeof(string), 3, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrSolarDatePlanOwner", typeof(string), 4, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrSolarDateStencil", typeof(string), 5, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrRepairType", typeof(string), 6, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrRepairRegion", typeof(string), 7, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrRepairContractor", typeof(string), 8, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrRepairController", typeof(string), 9, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrConfirmRajaStr", typeof(string), 10, "text", null, false));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrConfirmAreaStr", typeof(string), 11, "text", null, false));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrConfirmOwnerStr", typeof(string), 12, "text", null, false));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrConfirmContractorStr", typeof(string), 13, "text", null, false));

            tbl.Columns.Add(new model.columnComputedTrueFalse("wrConfirmRaja", typeof(int), "wrConfirmRajaStr"));
            tbl.Columns.Add(new model.columnComputedTrueFalse("wrConfirmArea", typeof(int), "wrConfirmAreaStr"));
            tbl.Columns.Add(new model.columnComputedTrueFalse("wrConfirmOwner", typeof(int), "wrConfirmOwnerStr"));
            tbl.Columns.Add(new model.columnComputedTrueFalse("wrConfirmContractor", typeof(int), "wrConfirmContractorStr"));

            tbl.Columns.Add(new model.columnComputedReference("gOwnerId", typeof(int), "rwmmsVehicleOwners", "companyName", "alternateNames", "Id", "wrOwnerName"));
            tbl.Columns.Add(new model.columnComputedReference("gWagonId", typeof(int), "Wagons", "wagonNo", "Id", "wrWagonNo"));
            tbl.Columns.Add(new model.columnComputedDateTime("gDateEntrance", typeof(DateTime), "wrSolarDateEntrance", model.columnComputedDateTime.enumDateTimeComputeType.solarDateToGregorianDate));
            tbl.Columns.Add(new model.columnComputedDateTime("gDateExit", typeof(DateTime), "wrSolarDateExit", model.columnComputedDateTime.enumDateTimeComputeType.solarDateToGregorianDate));
            tbl.Columns.Add(new model.columnComputedDateTime("gDatePlan", typeof(DateTime), "wrSolarDatePlanOwner", model.columnComputedDateTime.enumDateTimeComputeType.solarDateToGregorianDate));
            tbl.Columns.Add(new model.columnComputedDateTime("gDateStencil", typeof(DateTime), "wrSolarDateStencil", model.columnComputedDateTime.enumDateTimeComputeType.solarDateToGregorianDate));
            tbl.Columns.Add(new model.columnComputedReference("gRapairTypeId", typeof(int), "rwmmsRepairTypes", "typeName", "alternateNames", "Id", "wrRepairType"));
            tbl.Columns.Add(new model.columnComputedReference("gRepairRegionId", typeof(int), "rwmmsRepairRegions", "regionName", "alternateNames", "Id", "wrRepairRegion"));
            tbl.Columns.Add(new model.columnComputedReference("gRepairContractorId", typeof(int), "rwmmsRepairContractors", "contractorName", "alternateNames", "Id", "wrRepairContractor"));
            tbl.Columns.Add(new model.columnComputedReference("gRepairControllerId", typeof(int), "rwmmsRepairControllers", "controllerName", "alternateNames", "Id", "wrRepairController"));
            tbl.Columns.Add(new model.htmlControl("wrPageIndex", typeof(int), By.XPath("/html/body/form/div[3]/table/tbody/tr[4]/td/table/tbody/tr[7]/td/span"), "text", null));


            tbl.Columns.Add(new model.htmlControlGridDetailColumn("colEdit", typeof(string), 20, typeof(webpageWagonRepairInfoListDetail), false, true, true));
            this.prp_tables.Add(tbl);
            #endregion
        }
        private void sb_createTables()
        {
            this.prp_tables = new List <model.htmlTable>();
            model.htmlTable tbl;

            #region RepairContractorsCombo
            tbl = new model.htmlTable("rwmmsRepairContractors", this, "Id", null, By.Id("ContentPlaceHolder1_repCombo_DropDown"));
            tbl.prp_identifierColumnNames = new string[] { "contractorName" };
            tbl.prp_skipRowTop            = 1;
            tbl.Columns.Add(new model.htmlControlCombo("contractorName", typeof(string), "text", "alternateNames"));
            tbl.Columns.Add(new model.htmlControlCombo("contractorId", typeof(string), "value", null));
            this.prp_tables.Add(tbl);
            #endregion

            #region RepairRepairRegion
            tbl = new model.htmlTable("rwmmsRepairRegions", this, "Id", null, By.Id("ContentPlaceHolder1_regCombo_cmbRegion"));
            tbl.prp_identifierColumnNames = new string[] { "regionName" };
            tbl.prp_skipRowTop            = 1;
            tbl.Columns.Add(new model.htmlControlCombo("regionName", typeof(string), "text", "alternateNames"));
            tbl.Columns.Add(new model.htmlControlCombo("regionId", typeof(string), "value", null));
            this.prp_tables.Add(tbl);
            #endregion

            #region rwmmsRepairVisitPosts
            tbl = new model.htmlTable("rwmmsRepairVisitPosts", this, "Id", null, By.Id("ContentPlaceHolder1_cboStation"));
            tbl.prp_identifierColumnNames = new string[] { "visitPostName" };
            tbl.prp_skipRowTop            = 1;
            tbl.Columns.Add(new model.htmlControlCombo("visitPostName", typeof(string), "text", "alternateNames"));
            tbl.Columns.Add(new model.htmlControlCombo("visitPostId", typeof(string), "value", null));
            this.prp_tables.Add(tbl);
            #endregion

            #region rwmmsPostControllers
            tbl = new model.htmlTable("rwmmsPostControllers", this, "Id", null, By.Id("ContentPlaceHolder1_cboSurvey_DropDown"));
            tbl.prp_identifierColumnNames = new string[] { "postControllerName" };
            tbl.prp_skipRowTop            = 1;
            tbl.Columns.Add(new model.htmlControlCombo("postControllerName", typeof(string), "text", "alternateNames"));
            tbl.Columns.Add(new model.htmlControlCombo("postControllerId", typeof(string), "value", null));
            this.prp_tables.Add(tbl);
            #endregion

            #region RepairVehicleOwners
            tbl = new model.htmlTable("rwmmsVehicleOwners", this, "Id", null, By.Id("ContentPlaceHolder1_cboOwner_DropDown"));
            tbl.prp_identifierColumnNames = new string[] { "companyName" };
            tbl.prp_skipRowTop            = 1;
            tbl.Columns.Add(new model.htmlControlCombo("companyName", typeof(string), "text", "alternateNames"));
            tbl.Columns.Add(new model.htmlControlCombo("wCompanyId", typeof(string), "value", null));
            this.prp_tables.Add(tbl);
            #endregion

            #region Repairs
            tbl = new model.htmlTable("rwmmsRepairsSpecial", this, "Id", By.Id("ContentPlaceHolder1_dgSpecialRepair"), null);
            tbl.prp_pageIndexColumnName = "wrPageIndex";
            tbl.prp_controlLoadBy       = By.Id("ContentPlaceHolder1_cmdSearch");
            tbl.prp_rowCountBy          = By.Id("ContentPlaceHolder1_lblRecordCount");

            tbl.prp_identifierColumnNames          = new string[] { "wrWagonNo", "wrSolarDateEntrance" };
            tbl.prp_pageIndexIdentifierColumnNames = new string[] { "vehicleOwnerName" };

            tbl.prp_pageRowCount  = 5;
            tbl.prp_skipRowBottom = 1;
            tbl.prp_skipRowTop    = 1;

            tbl.Columns.Add(new model.htmlControlComboSelectedItem("wrOwnerName", typeof(string), By.Id("ContentPlaceHolder1_cboOwner_DropDown"), "text", null));
            tbl.Columns.Add(new model.htmlControlComboSelectedItem("wrOwnerValue", typeof(string), By.Id("ContentPlaceHolder1_cboOwner_DropDown"), "value", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrWagonNo", typeof(string), 1, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrDetachSolarDate", typeof(string), 2, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrEntranceSolarDate", typeof(string), 3, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrEndSolarDate", typeof(string), 4, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrRepairContractor", typeof(string), 5, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrRepairRegion", typeof(string), 6, "text", null));
            tbl.Columns.Add(new model.htmlControlGridSimpleColumn("wrVisitPost", typeof(string), 7, "text", null));

            //tbl.Columns.Add(new model.htmlControlGridDownloadColumn("wrImage105Url", typeof(string),10,));

            tbl.Columns.Add(new model.columnComputedReference("gOwnerId", typeof(int), "rwmmsVehicleOwners", "companyName", "alternateNames", "Id", "wrOwnerName"));
            tbl.Columns.Add(new model.columnComputedReference("gWagonId", typeof(int), "Wagons", "wagonNo", "Id", "wrWagonNo"));
            tbl.Columns.Add(new model.columnComputedDateTime("gDetachDate", typeof(DateTime), "wrDetachSolarDate", model.columnComputedDateTime.enumDateTimeComputeType.solarDateToGregorianDate));
            tbl.Columns.Add(new model.columnComputedDateTime("gEntranceDate", typeof(DateTime), "wrEntranceSolarDate", model.columnComputedDateTime.enumDateTimeComputeType.solarDateToGregorianDate));
            tbl.Columns.Add(new model.columnComputedDateTime("gEndDate", typeof(DateTime), "wrEndSolarDate", model.columnComputedDateTime.enumDateTimeComputeType.solarDateToGregorianDate));

            tbl.Columns.Add(new model.columnComputedReference("gRepairContractorId", typeof(int), "rwmmsRepairContractors", "contractorName", "alternateNames", "Id", "wrRepairContractor"));
            tbl.Columns.Add(new model.columnComputedReference("gRepairRegionId", typeof(int), "rwmmsRepairRegions", "regionName", "alternateNames", "Id", "wrRepairRegion"));
            tbl.Columns.Add(new model.columnComputedReference("gVisitPostId", typeof(int), "rwmmsRepairVisitPosts", "visitPostName", "alternateNames", "Id", "wrVisitPost"));


            tbl.Columns.Add(new model.htmlControl("wrPageIndex", typeof(int), By.XPath("/html/body/form/div[3]/table/tbody/tr[4]/td/table/tbody/tr[7]/td/span"), "text", null));


            tbl.Columns.Add(new model.htmlControlGridDetailColumn("colEdit", typeof(string), 20, typeof(webpageWagonRepairInfoListDetail), false, true, true));
            this.prp_tables.Add(tbl);
            #endregion
        }