private void CreateNestedFligthArrivalalLDGrid(StringBuilder Container, string SearchFlightNo = "", string searchFromDate = "", string searchToDate = "", string DailyFlightSNo = "")
        {
            try
            {
                using (NestedGrid g = new NestedGrid())
                {
                    g.Height             = 100;
                    g.PrimaryID          = this.MyPrimaryID;
                    g.ModuleName         = this.MyModuleID;
                    g.AppsName           = this.MyAppID;
                    g.DefaultPageSize    = 1000;
                    g.DataSoruceUrl      = "Services/Export/RampOffloadService.svc/GetManifestULDGridData";
                    g.PrimaryID          = "ULDStockSNo";
                    g.NewURL             = MyPageName + "?" + GetWebURLString("New", false);
                    g.ModuleName         = this.MyModuleID;
                    g.FormCaptionText    = "AWB Details";
                    g.IsFormHeader       = false;
                    g.IsModule           = true;
                    g.IsAllowedSorting   = false;
                    g.IsAllowedScrolling = true;
                    g.IsShowEdit         = false;
                    g.ParentSuccessGrid  = "AddLocationDrp";
                    g.IsSaveChanges      = false;
                    g.IsColumnMenu       = false;
                    g.IsAllowedFiltering = false;
                    g.Column             = new List <GridColumn>();

                    g.Column.Add(new GridColumn {
                        Field = "isSelect", Title = "Select", Template = "# if(ULDStockSNo!=0) {#<input type=\"checkbox\" id=\"chkbtnSelect_#=ULDStockSNo#\" onclick=\"CheckData(this);\" value=\"#=isSelect#\" />#}  #", DataType = GridDataType.String.ToString(), Width = 50
                    });
                    //g.Column.Add(new GridColumn { Field = "IsCTM", Title = "CH", IsHidden = false, DataType = GridDataType.Boolean.ToString(), Template = "#if(IsCTM==true){#<input type=\"button\" value=\"C\" style=\"#=ChargeCSS#\" title=\"#=ChargesRemarks#\">#}#",Width=35, Filterable = "false" });
                    g.Column.Add(new GridColumn {
                        Field = "ULDStockSNo", Title = "ULD No", IsHidden = true, DataType = GridDataType.Number.ToString()
                    });
                    g.Column.Add(new GridColumn {
                        Field = "ULDNo", Title = "ULD No", IsHidden = false, DataType = GridDataType.String.ToString()
                    });
                    //   g.Column.Add(new GridColumn { Field = "EmptyWeight", Title = "Tare Weight", IsHidden = false, DataType = GridDataType.String.ToString() });
                    g.Column.Add(new GridColumn {
                        Field = "GrossWeight", Title = "Max. Gross Weight", DataType = GridDataType.String.ToString()
                    });
                    g.Column.Add(new GridColumn {
                        Field = "VolumeWeight", Title = "Max Volume Weight", DataType = GridDataType.String.ToString()
                    });
                    g.Column.Add(new GridColumn {
                        Field = "Location", Title = "Location", FixTooltip = "Off Point", Template = "#if(ULDStockSNo!=0){#<select id=\"txtLocation\" class=\"k-dropdown-wrap k-state-default\" HideULDStockSNo=\"#=ULDStockSNo#\" onchange=\"GatLocationValue(this, #=ULDStockSNo#);\"></select><input type=\"hidden\" value=\"#=Location#\"/>#}else{#<input type=\"hidden\" value=\"#=Location#\"/>#}#", DataType = GridDataType.String.ToString(), Width = 175, Filterable = "false"
                    });
                    //g.Column.Add(new GridColumn { Field = "Location", Title = "Location", Template = " <select id=\"txtLocation\" HideAWBSNo=\"#=ULDStockSNo#\" onchange=\"GatLocationValue(this);\"></select><input type=\"hidden\" value=\"#=Location#\"/>", DataType = GridDataType.String.ToString(), Width = 80, Filterable = "false" });
                    //    g.Column.Add(new GridColumn { Field = "MaxGrossWeight", Title = "Total Weight", DataType = GridDataType.Number.ToString() });
                    //    g.Column.Add(new GridColumn { Field = "Shipments", Title = "Total Shipment", DataType = GridDataType.Number.ToString() });
                    //  g.Column.Add(new GridColumn { Field = "Status", Title = "Status", IsHidden = false, DataType = GridDataType.String.ToString()});
                    //  g.Column.Add(new GridColumn { Field = "IsDisabledULD", Title = "IsDisabledULD", IsHidden = true, DataType = GridDataType.Boolean.ToString() });
                    //      g.Column.Add(new GridColumn { Field = "LastPoint", Title = "Off Point", FixTooltip = "Off Point", Template = "#if(ULDStockSNo!=0){# <input type=\"hidden\" name=\"offloadPoint_#=ULDStockSNo#\" id=\"offloadPoint_#=ULDStockSNo#\" value=\"#=LastPoint#\" /><input type=\"text\" class=\"\" name=\"Text_offloadPoint_#=ULDStockSNo#\"  id=\"Text_offloadPoint_#=ULDStockSNo#\"  tabindex=1002  controltype=\"autocomplete\"   maxlength=\"10\" data-width=\"65px\"  value=\"#=LastPoint#\" placeholder=\"City\" />#}else{#<input type=\"hidden\" name=\"offloadPoint_#=ULDStockSNo#\" id=\"offloadPoint_#=ULDStockSNo#\" value=\"#=LastPoint#\" /><input type=\"text\" class=\"\" name=\"Text_offloadPoint_#=ULDStockSNo#\"  id=\"Text_offloadPoint_#=ULDStockSNo#\"  tabindex=1002  controltype=\"autocomplete\"   maxlength=\"10\" data-width=\"65px\" style=\"height:25px;font-family: Verdana; font-size: 12px; position: relative; vertical-align: top; background-color: transparent; display:none; \" value=\"#=LastPoint#\" placeholder=\"City\" />#}#", DataType = GridDataType.String.ToString(), Width = 75 });
                    //     g.Column.Add(new GridColumn { Field = "RFSRemarks", Title = "Remarks", Template = "#if(ULDStockSNo>0){if(RFSRemarks!=\"\"){#<input type=\"button\" value=\"R\" class=\"completeprocess\" onclick=fn_GetSetULDAWBRemarks(\"U\",#=ULDStockSNo#,this); /><input type=hidden id=\"hdnRFSRemarks\" value=\"#=RFSRemarks#\" >#}else{#<input type=\"button\" value=\"R\" onclick=fn_GetSetULDAWBRemarks(\"U\",#=ULDStockSNo#,this); /><input type=hidden id=\"hdnRFSRemarks\" value=\"#=RFSRemarks#\" >#}}else{##}#", DataType = GridDataType.String.ToString(), Width = 70 });
                    g.Column.Add(new GridColumn {
                        Field = "DailyFlightSNo", Title = "DailyFlightSNo", DataType = GridDataType.Number.ToString(), IsHidden = true
                    });
                    g.Column.Add(new GridColumn {
                        Field = "FlightNo", Title = "FlightNo", DataType = GridDataType.String.ToString(), IsHidden = true
                    });

                    g.ExtraParam = new List <GridExtraParams>();
                    g.ExtraParam.Add(new GridExtraParams {
                        Field = "FlightNo", Value = SearchFlightNo
                    });
                    g.ExtraParam.Add(new GridExtraParams {
                        Field = "FlightDate", Value = searchFromDate
                    });
                    g.ExtraParam.Add(new GridExtraParams {
                        Field = "CurrentProcessSNo", Value = "484"
                    });
                    //#region Nested Grid Section

                    g.NestedPrimaryID       = "AWBSno";
                    g.NestedModuleName      = this.MyModuleID;
                    g.NestedAppsName        = this.MyAppID;
                    g.NestedParentID        = "ULDStockSNo";
                    g.NestedIsShowEdit      = false;
                    g.NestedDefaultPageSize = 1000;
                    g.NestedIsPageable      = false;
                    //  g.IsNestedAllowedFiltering = false;
                    //  g.IsNestedAllowedFiltering = true;
                    g.IsNestedAllowedSorting = false;
                    g.SuccessGrid            = "fn_HideBulkChild";
                    //g.IsNestedAllowedFiltering = false;

                    g.NestedDataSoruceUrl = "Services/Export/RampOffloadService.svc/GetMULDShipmentGridData";
                    g.NestedColumn        = new List <GridColumn>();

                    g.NestedColumn.Add(new GridColumn {
                        Field = "Bulk", Title = "", Template = "#if(IsBulk==1){#<input type=\"checkbox\"  id=\"chkbtnSelect1_#=AWBSNo#\" onclick=\"CheckDataChild(this);\"/><input type=\"hidden\" value=\"#=isHold#\" />#}else if(IsBulk==2){#<input type=\"checkbox\" checked=\"1\" id=\"chkBulk\" onclick=\"MarkSelected(this);\"/><input type=\"hidden\" value=\"#=isHold#\" />#} else{#<label></label>#}#", DataType = GridDataType.String.ToString(), Width = 50, Filterable = "false"
                    });

                    g.NestedColumn.Add(new GridColumn {
                        Field = "AWBSNo", Title = "AWBSNo", DataType = GridDataType.String.ToString(), IsHidden = true
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "AWBNo", Title = "AWB No", Template = "<sapn title=\"#= AWBNo #\">#= AWBNo #</span>", DataType = GridDataType.String.ToString(), Width = 70, Filterable = "false"
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "AWBSector", Title = "AWB Sector", DataType = GridDataType.String.ToString(), Width = 70, Filterable = "false"
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "TotalPieces", Title = "Total Pcs", DataType = GridDataType.String.ToString(), Width = 50, Filterable = "false"
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "Act_G_V", Title = "Actual G/V", Template = "<sapn title=\"#= Act_G_V #\">#= Act_G_V #</span>", DataType = GridDataType.String.ToString(), Width = 110, Filterable = "false"
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "PlannedPieces", Title = "Planned Pieces", Template = "#if(IsBulk!=0){#<input type=\"text\" id=\"txt_PlannedPieces_#=AWBSNo#\" value=\"#=PlannedPieces#\" style=\"width:50%;\" MaxLength=\"5\" onkeyup=\"fn_CalVolGrWt(this);\" onkeypress=\"return IsValidateNumber(this,event)\" onblur=\"fn_CalVolGrWt(this);\" /><input type=\"hidden\" id=\"hdnPlannedPieces\" value=\"#=PlannedPieces#\" />#}else{##=PlannedPieces##}#", DataType = GridDataType.Number.ToString(), Width = 70, Filterable = "false"
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "Plan_G_V", Title = "Planned G/V", Template = "#{##=Plan_G_V##}#", DataType = GridDataType.String.ToString(), Width = 150, Filterable = "false"
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "Status", Title = "Status", DataType = GridDataType.String.ToString(), Width = 50, Filterable = "false"
                    });
                    //g.NestedColumn.Add(new GridColumn { Field = "Location", Title = "Location", Template = " <select id=\"txtLocation\" HideAWBSNo=\"#=AWBSNo#\" HideULDStockSNo=\"#=ULDStockSNo#\" onchange=\"GatLocationValue(this, #=AWBSNo#);\"></select><input type=\"hidden\" value=\"#=Location#\"/>", DataType = GridDataType.String.ToString(), Width = 100, Filterable = "false" });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "Location", Title = "Location", FixTooltip = "Off Point", Template = "#if(ULDStockSNo!=0){#<input type=\"hidden\" value=\"#=Location#\"/>#}else{#<select id=\"txtLocation\"  class=\"k-dropdown-wrap k-state-default\" HideAWBSNo=\"#=AWBSNo#\" HideULDStockSNo=\"#=ULDStockSNo#\" onchange=\"GatLocationValue(this, #=AWBSNo#);\"></select><input type=\"hidden\" value=\"#=Location#\"/>#}#", DataType = GridDataType.String.ToString(), Width = 75, Filterable = "false"
                    });
                    //   g.NestedColumn.Add(new GridColumn { Field = "SHC", Title = "SHC", Template = "<sapn title=\"#= SHCCodeName #\">#= SHC #</span>", DataType = GridDataType.String.ToString(), Width = 70, Filterable = "false" });
                    //   g.NestedColumn.Add(new GridColumn { Field = "Agent", Title = "FRWDR(Agent)", DataType = GridDataType.String.ToString(), Width = 70, Filterable = "false" });
                    //   g.NestedColumn.Add(new GridColumn { Field = "HOLDRemarks", Title = "HOLDRemarks", DataType = GridDataType.String.ToString(), IsHidden = true });
                    //     g.NestedColumn.Add(new GridColumn { Field = "CTMSNo", Title = "CTMSNo", DataType = GridDataType.Number.ToString(), IsHidden = true });
                    //   g.NestedColumn.Add(new GridColumn { Field = "Priority", Title = "Priority", DataType = GridDataType.String.ToString(), Width = 70, Filterable = "false" });
                    //   g.NestedColumn.Add(new GridColumn { Field = "AWBOffPoint", Title = "Off Point", FixTooltip = "Off Point", Template = "#if(ULDStockSNo==0){# <input type=\"hidden\" name=\"AWBOffPoint_#=ULDStockSNo#_#=AWBSNo#\" id=\"AWBOffPoint_#=ULDStockSNo#_#=AWBSNo#\" value=\"#=AWBOffPoint#\" /><input type=\"text\" class=\"\" name=\"Text_AWBOffPoint_#=ULDStockSNo#_#=AWBSNo#\"  id=\"Text_AWBOffPoint_#=ULDStockSNo#_#=AWBSNo#\"  controltype=\"autocomplete\"   maxlength=\"10\" data-width=\"65px\" value=\"#=AWBOffPoint#\" placeholder=\"Off Point\" /> #}else{#<input type=\"hidden\" name=\"AWBOffPoint_#=ULDStockSNo#_#=AWBSNo#\" id=\"AWBOffPoint_#=ULDStockSNo#_#=AWBSNo#\" value=\"#=AWBOffPoint#\" /><input type=\"text\" class=\"\" name=\"Text_AWBOffPoint_#=ULDStockSNo#_#=AWBSNo#\"  id=\"Text_AWBOffPoint_#=ULDStockSNo#_#=AWBSNo#\"  controltype=\"autocomplete\"   maxlength=\"10\" data-width=\"65px\" value=\"#=AWBOffPoint#\" placeholder=\"Off Point\" style=\"display:none\" />#}#", DataType = GridDataType.String.ToString(), Width = 75, Filterable = "false" });
                    //    g.NestedColumn.Add(new GridColumn { Field = "IsCTM", Title = "Charges", IsHidden = false, DataType = GridDataType.Boolean.ToString(), Template = "#if(IsCTM==true){#<input type=\"button\" value=\"C\" style=\"#=ChargeCSS#\" onclick=\"fn_GetCTMChargeDetails(#=AWBSNo#,#=CTMSNo#,this,1);\" title=\"#=ChargesRemarks#\">#}#", Width = 35, Filterable = "false" });
                    //      g.NestedColumn.Add(new GridColumn { Field = "RFSRemarks", Title = "Remarks", Template = "#if(ULDStockSNo==0){ if(RFSRemarks!=\"\"){ #<input type=\"button\" value=\"R\" class=\"completeprocess\" onclick=fn_GetSetULDAWBRemarks(\"A\",#=AWBSNo#,this); /><input type=hidden id=\"hdnRFSRemarks\" value=\"#=RFSRemarks#\" > #}else{ #<input type=\"button\" value=\"R\" onclick=fn_GetSetULDAWBRemarks(\"A\",#=AWBSNo#,this); /><input type=hidden id=\"hdnRFSRemarks\" value=\"#=RFSRemarks#\" > #} }else{##}#", DataType = GridDataType.String.ToString(), Width = 35, Filterable = "false" });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "TotalPPcs", Title = "TotalPPcs", DataType = GridDataType.String.ToString(), IsHidden = true
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "ULDStockSNo", Title = "ULDStockSNo", DataType = GridDataType.String.ToString(), IsHidden = true
                    });
                    //    g.NestedColumn.Add(new GridColumn { Field = "PVW", Title = "PVW", DataType = GridDataType.String.ToString(), IsHidden = true });
                    //      g.NestedColumn.Add(new GridColumn { Field = "PCCBM", Title = "PCCBM", DataType = GridDataType.String.ToString(), IsHidden = true });
                    //       g.NestedColumn.Add(new GridColumn { Field = "IsPreManifested", Title = "IsPreManifested", DataType = GridDataType.Boolean.ToString(), IsHidden = true });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "DailyFlightSNo", Title = "DailyFlightSNo", DataType = GridDataType.Number.ToString(), IsHidden = true
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "FlightNo", Title = "FlightNo", DataType = GridDataType.String.ToString(), IsHidden = true
                    });

                    g.NestedExtraParam = new List <NestedGridExtraParam>();
                    //g.NestedExtraParam.Add(new NestedGridExtraParam { Field = "DailyFlightSNo", Value = "DailyFlightSNo" });
                    g.NestedExtraParam.Add(new NestedGridExtraParam {
                        Field = "FlightNo", Value = SearchFlightNo
                    });
                    g.NestedExtraParam.Add(new NestedGridExtraParam {
                        Field = "FlightDate", Value = searchFromDate
                    });
                    g.NestedExtraParam.Add(new NestedGridExtraParam {
                        Field = "CurrentProcessSNo", Value = "484"
                    });

                    //g.NestedExtraParamParent = new List<NestedGridExtraParam>();
                    //g.NestedExtraParamParent.Add(new NestedGridExtraParam { Field = "DailyFlightSNo", Value = searchFromDate });

                    g.InstantiateIn(Container);
                }
            }
            catch (Exception ex)//
            {
                throw ex;
            }
        }
Esempio n. 2
0
        private void CreateNestedULDGrid(StringBuilder Container, string ULDNo)
        {
            using (NestedGrid g = new NestedGrid())
            {
                g.Height             = 100;
                g.PrimaryID          = this.MyPrimaryID;
                g.ModuleName         = this.MyModuleID;
                g.AppsName           = this.MyAppID;
                g.DefaultPageSize    = 1000;
                g.DataSoruceUrl      = "Services/Report/ULDMonitoringService.svc/GetULDMonitoringULDGridData";
                g.PrimaryID          = "TransGridSNo";
                g.NewURL             = MyPageName + "?" + GetWebURLString("New", false);
                g.ModuleName         = this.MyModuleID;
                g.FormCaptionText    = "ULD Details";
                g.IsFormHeader       = false;
                g.IsModule           = true;
                g.IsAllowedSorting   = false;
                g.IsAllowedScrolling = true;
                g.IsShowEdit         = false;
                g.IsSaveChanges      = false;
                g.IsColumnMenu       = false;
                g.IsAllowedFiltering = false;
                g.Column             = new List <GridColumn>();
                //g.Column.Add(new GridColumn { Field = "DailyFlightSNo", Title = "DailyFlightSNo", IsHidden = true, DataType = GridDataType.String.ToString() });
                //g.Column.Add(new GridColumn { Field = "FFMFlightMasterSNo", Title = "FFMFlightMasterSNo", IsHidden = true, DataType = GridDataType.String.ToString() });
                //g.Column.Add(new GridColumn { Field = "ArrivedShipmentSNo", Title = "ArrivedShipmentSNo", IsHidden = true, DataType = GridDataType.String.ToString() });
                //g.Column.Add(new GridColumn { Field = "FFMShipmentTransSNo", Title = "FFMShipmentTransSNo", IsHidden = true, DataType = GridDataType.String.ToString(), Width = 50 });
                //g.Column.Add(new GridColumn { Field = "TransGridSNo", Title = "TransGridSNo", IsHidden = true, DataType = GridDataType.String.ToString(), Width = 50 });
                //g.Column.Add(new GridColumn { Field = "IsULD", Title = "IsULD", IsHidden = true, DataType = GridDataType.String.ToString() });
                g.Column.Add(new GridColumn {
                    Field = "ULDName", Title = "ULD Name", IsHidden = false, DataType = GridDataType.String.ToString(), Width = 42
                });

                g.Column.Add(new GridColumn {
                    Field = "FlightNo", Title = "Flight No.", DataType = GridDataType.String.ToString(), Width = 37
                });
                g.Column.Add(new GridColumn {
                    Field = "AwbCount", Title = "Awb Count", DataType = GridDataType.String.ToString(), Width = 40
                });



                //g.Column.Add(new GridColumn { Field = "SNo", Title = "Location", DataType = GridDataType.String.ToString(), Width = 34, Template = "#if(IsULD==0){#<input type=\"button\"  style=\"display: none\" />#}else if(IsULDLocation==0){#<input type=\"button\" class=\"incompleteprocess\" style=\"cursor:pointer\" value=\"L\" onclick=\"GetFAULDLocation(#=FFMShipmentTransSNo#)\" />#}else{#<input type=\"button\" class=\"completeprocess\" style=\"cursor:pointer\" value=\"L\" onclick=\"GetFAULDLocation(#=FFMShipmentTransSNo#)\" />#}#" });

                //g.Column.Add(new GridColumn { Field = "SNo", Title = "X-ray", DataType = GridDataType.String.ToString(), Width = 26, Template = "#if(IsULD==0){#<input type=\"button\" style=\"display: none\"  />#}else if(IsULDDamage==0){#<input type=\"button\" class=\"incompleteprocess\" style=\"cursor:pointer\" value=\"X\" onclick=\"GetULDXray(#=FFMShipmentTransSNo#)\" />#}else{#<input type=\"button\" class=\"completeprocess\" style=\"cursor:pointer\" value=\"X\" onclick=\"GetULDXray(#=FFMShipmentTransSNo#)\" />#}#" });

                //g.Column.Add(new GridColumn { Field = "SNo", Title = "Re-build", DataType = GridDataType.String.ToString(), Width = 34, Template = "#if(IsULD==0){#<input type=\"button\" style=\"display: none\"  />#}else if(IsULDDamage==0){#<input type=\"button\" class=\"incompleteprocess\" style=\"cursor:pointer\" value=\"R\" onclick=\"GetReBuild(#=FFMShipmentTransSNo#)\" />#}else{#<input type=\"button\" class=\"completeprocess\" style=\"cursor:pointer\" value=\"R\" onclick=\"GetReBuild(#=FFMShipmentTransSNo#)\" />#}#" });

                //g.Column.Add(new GridColumn { Field = "IsULDLocation", Title = "IsULDLocation", IsHidden = true, DataType = GridDataType.String.ToString(), Width = 50 });
                //g.Column.Add(new GridColumn { Field = "IsULDDamage", Title = "IsULDDamage", IsHidden = true, DataType = GridDataType.String.ToString(), Width = 50 });
                //g.Column.Add(new GridColumn { Field = "IsULDConsumable", Title = "IsULDConsumable", IsHidden = true, DataType = GridDataType.String.ToString(), Width = 50 });

                g.ExtraParam = new List <GridExtraParams>();
                g.ExtraParam.Add(new GridExtraParams {
                    Field = "ULDNo", Value = ULDNo
                });
                //g.ExtraParam.Add(new GridExtraParams { Field = "SearchBoardingPoint", Value = SearchBoardingPoint });
                //g.ExtraParam.Add(new GridExtraParams { Field = "SearchFlightNo", Value = SearchFlightNo });
                //g.ExtraParam.Add(new GridExtraParams { Field = "searchFromDate", Value = searchFromDate });
                //g.ExtraParam.Add(new GridExtraParams { Field = "searchToDate", Value = searchToDate });

                //  #region Nested Grid Section
                g.NestedPrimaryID        = "AWBSNo";
                g.NestedModuleName       = this.MyModuleID;
                g.NestedAppsName         = this.MyAppID;
                g.NestedParentID         = "TransGridSNo";
                g.NestedIsShowEdit       = false;
                g.NestedDefaultPageSize  = 1000;
                g.NestedIsPageable       = false;
                g.IsNestedAllowedSorting = false;

                g.NestedDataSoruceUrl = "Services/Import/TransitMonitoringService.svc/GetTransitMonitoringShipmentGridData";
                g.NestedColumn        = new List <GridColumn>();
                //g.NestedColumn.Add(new GridColumn { Field = "DailyFlightSNo", Title = "DailyFlightSNo", DataType = GridDataType.String.ToString(), IsHidden = true, Width = 90 });
                //g.Column.Add(new GridColumn { Field = "IsULD", Title = "IsULD", IsHidden = true, DataType = GridDataType.String.ToString() });
                //g.NestedColumn.Add(new GridColumn { Field = "FFMFlightMasterSNo", Title = "FFMFlightMasterSNo", DataType = GridDataType.String.ToString(), IsHidden = true });
                //g.NestedColumn.Add(new GridColumn { Field = "ULDNo", Title = "ULDNo", DataType = GridDataType.String.ToString(), IsHidden = true });
                //g.NestedColumn.Add(new GridColumn { Field = "FFMShipmentTransSNo", Title = "FFMShipmentTransSNo", DataType = GridDataType.String.ToString(), IsHidden = true });
                //g.NestedColumn.Add(new GridColumn { Field = "ArrivedShipmentSNo", Title = "ArrivedShipmentSNo", DataType = GridDataType.String.ToString(), IsHidden = true, Width = 90 });
                //g.NestedColumn.Add(new GridColumn { Field = "TransGridSNo", Title = "TransGridSNo", DataType = GridDataType.String.ToString(), IsHidden = true, Width = 90 });
                // g.NestedColumn.Add(new GridColumn { Field = "AWBSNo", Title = "AWBSNo", DataType = GridDataType.String.ToString(), IsHidden = true, Width = 90 });
                //  g.NestedColumn.Add(new GridColumn { Field = "TotalFFMPieces", Title = "TotalFFMPieces", DataType = GridDataType.String.ToString(), IsHidden = true });

                g.NestedColumn.Add(new GridColumn {
                    Field = "ULDName", IsLocked = false, Title = "AWB No.", DataType = GridDataType.String.ToString(), Width = 25
                });

                //g.NestedColumn.Add(new GridColumn { Field = "VolumeWeight", Title = "Volume Weight", DataType = GridDataType.Number.ToString(), Width = 25 });
                //g.NestedColumn.Add(new GridColumn { Field = "Build", Title = "Build", DataType = GridDataType.Number.ToString(), Width = 16 });
                //g.NestedColumn.Add(new GridColumn { Field = "ShipmentOriginAirportCode", IsLocked = false, Title = "AWB Origin", DataType = GridDataType.String.ToString(), Width = 18 });
                //g.NestedColumn.Add(new GridColumn { Field = "ShipmentDestinationAirportCode", IsLocked = false, Title = "AWB Dest", DataType = GridDataType.String.ToString(), Width = 18 });
                //g.NestedColumn.Add(new GridColumn { Field = "SNo", Title = "Location", DataType = GridDataType.String.ToString(), Width = 18, Template = "#if(IsULD==1){#<input type=\"button\"  style=\"display: none\"  />#}else if(IsBUP==1){#<input type=\"button\" style=\"display:none;\" />#}else if(LocationStatus==0){#<input type=\"button\" class=\"incompleteprocess\" style=\"cursor:pointer\" value=\"L\" onclick=\"GetAWBULDLocation(#=AWBSNo#,this)\" />#}else if(LocationStatus==1){#<input type=\"button\" class=\"partialprocess\" style=\"cursor:pointer\" value=\"L\" onclick=\"GetAWBULDLocation(#=AWBSNo#,this)\" />#}else if(LocationStatus==2){#<input type=\"button\" class=\"completeprocess\" style=\"cursor:pointer\" value=\"L\" onclick=\"GetAWBULDLocation(#=AWBSNo#,this)\" />#}else{#<input type=\"button\" class=\"incompleteprocess\" style=\"cursor:pointer\" value=\"L\" onclick=\"GetAWBULDLocation(#=AWBSNo#,this)\" />#}#" });

                //g.NestedColumn.Add(new GridColumn { Field = "SNo", Title = "X-ray", DataType = GridDataType.String.ToString(), Width = 15, Template = "#if(IsULD==1){#<input type=\"button\"  style=\"display: none\" />#}else if(IsBUP==1){#<input type=\"button\" style=\"display:none;\" />#}else{#<input type=\"button\" class=\"incompleteprocess\" style=\"cursor:pointer\" value=\"X\" onclick=\"GetAWBXray(#=AWBSNo#,this)\" />#}#" });
                //g.NestedColumn.Add(new GridColumn { Field = "SNo", Title = "Terminate", DataType = GridDataType.String.ToString(), Width = 18, Template = "#if(IsULD==1){#<input type=\"button\"  style=\"display: none\" />#}else if(IsBUP==1){#<input type=\"button\" style=\"display:none;\" />#}else{#<input type=\"button\" class=\"incompleteprocess\" style=\"cursor:pointer\" value=\"T\" onclick=\"GetTerminate(#=AWBSNo#,this)\" />#}#" });
                //g.NestedColumn.Add(new GridColumn { Field = "SNo", Title = "Planning", DataType = GridDataType.String.ToString(), Width = 18, Template = "#if(IsULD==1){#<input type=\"button\"  style=\"display: none\"  />#}else if(IsBUP==1){#<input type=\"button\" style=\"display:none;\" />#}else{#<input type=\"button\" class=\"incompleteprocess\" style=\"cursor:pointer\" value=\"P\" onclick=\"GetAWBDamage(#=AWBSNo#,this)\" />#}#" });

                //g.NestedColumn.Add(new GridColumn { Field = "IsBUP", Title = "IsBUP", DataType = GridDataType.String.ToString(), IsHidden = true, Width = 90 });
                //g.NestedColumn.Add(new GridColumn { Field = "IsDocument", Title = "IsDocument", DataType = GridDataType.String.ToString(), IsHidden = true, Width = 90 });
                //g.NestedColumn.Add(new GridColumn { Field = "LocationStatus", Title = "LocationStatus", DataType = GridDataType.String.ToString(), IsHidden = true, Width = 90 });
                g.InstantiateIn(Container);
            }
        }
Esempio n. 3
0
        /***********************Lying List************************************************/
        private void CreateAirMailLyingListGrid(StringBuilder Container, string ProcessName, string GroupFlightSNo)
        {
            try
            {
                using (NestedGrid g = new NestedGrid())
                {
                    g.Height            = 300;
                    g.PageName          = this.MyPageName;
                    g.PrimaryID         = this.MyPrimaryID;
                    g.ModuleName        = this.MyModuleID;
                    g.AppsName          = this.MyAppID;
                    g.IsDisplayOnly     = true;
                    g.DefaultPageSize   = 100;
                    g.IsAutoHeight      = true;
                    g.DataSoruceUrl     = "Services/Mail/AirMailManifestService.svc/GetAirMailDetailsLyingListRecord";
                    g.PrimaryID         = "SNo";
                    g.NewURL            = MyPageName + "?" + GetWebURLString("New", false);
                    g.ModuleName        = this.MyModuleID;
                    g.ParentSuccessGrid = "ParentSuccessGridLyingList";
                    g.IsFormHeader      = false;
                    g.IsModule          = true;
                    g.IsShowEdit        = false;
                    g.IsSaveChanges     = false;
                    g.IsAccordion       = true;
                    g.IsToggleColumns   = false;
                    g.IsColumnMenu      = false;
                    g.IsAllowedSorting  = false;

                    g.Column = new List <GridColumn>();
                    g.Column.Add(new GridColumn {
                        Field = "SNo", Title = "SNo", DataType = GridDataType.String.ToString(), IsHidden = true, Width = 40
                    });
                    g.Column.Add(new GridColumn {
                        Field = "IsManifested", Title = "Select", DataType = GridDataType.String.ToString(), Width = 20, Template = "# if( IsManifested==\"1\"){#<input type=\"checkbox\" onclick=\"CheckParentLyingList(this);\" id=\"chkParent_#=SNo#\" checked=\"checked\" />#} else {#<input type=\"checkbox\" onclick=\"CheckParentLyingList(this);\" id=\"chkParent_#=SNo#\"/># }#"
                    });
                    g.Column.Add(new GridColumn {
                        Field = "CN38No", IsLocked = false, Title = "CN38 No", DataType = GridDataType.String.ToString(), Width = 35
                    });
                    g.Column.Add(new GridColumn {
                        Field = "FlightNo", IsLocked = false, Title = "Flight No", DataType = GridDataType.String.ToString(), Width = 35
                    });
                    g.Column.Add(new GridColumn {
                        Field = "FlightDate", IsLocked = false, Title = "Flight Date", DataType = GridDataType.String.ToString(), Width = 35
                    });
                    g.Column.Add(new GridColumn {
                        Field = "Origin", IsLocked = false, Title = "Origin City", DataType = GridDataType.String.ToString(), Width = 40
                    });
                    g.Column.Add(new GridColumn {
                        Field = "Destination", IsLocked = false, Title = "Destination City", DataType = GridDataType.String.ToString(), Width = 40
                    });
                    g.Column.Add(new GridColumn {
                        Field = "MailCategoryName", IsLocked = false, Title = "Mail Category", DataType = GridDataType.String.ToString(), Width = 55
                    });
                    g.Column.Add(new GridColumn {
                        Field = "MHCName", IsLocked = false, Title = "Mail Handling Class Code", DataType = GridDataType.String.ToString(), Width = 55
                    });
                    g.Column.Add(new GridColumn {
                        Field = "TotalPieces", IsLocked = false, Title = "Total Pieces", DataType = GridDataType.String.ToString(), Width = 35
                    });
                    g.Column.Add(new GridColumn {
                        Field = "GrossWeight", IsLocked = false, Title = "GrossWeight", DataType = GridDataType.String.ToString(), Width = 35
                    });
                    g.Column.Add(new GridColumn {
                        Field = "TotalDN", IsLocked = false, Title = "Offloaded DN", DataType = GridDataType.Number.ToString(), Width = 35
                    });
                    g.Column.Add(new GridColumn {
                        Field = "ULDNo", Title = "ULD No", FixTooltip = "ULD No", Template = "<input type=\"hidden\" name=\"ULDNo_#=SNo#\" id=\"ULDNo_#=SNo#\" value=\"#=ULDNo#\" /><input type=\"text\" class=\"\" name=\"Text_ULDNo_#=SNo#\"  id=\"Text_ULDNo_#=SNo#\"  tabindex=1002  controltype=\"autocomplete\"   maxlength=\"10\" data-width=\"50px\" value=\"#=CN_ULDNo#\" placeholder=\"ULD No\" />", DataType = GridDataType.String.ToString(), Width = 150
                    });

                    g.ExtraParam = new List <GridExtraParams>();
                    g.ExtraParam.Add(new GridExtraParams {
                        Field = "GroupFlightSNo", Value = GroupFlightSNo
                    });

                    //#region Nested Grid Section
                    g.NestedPrimaryID        = "TransSNo";
                    g.NestedModuleName       = this.MyModuleID;
                    g.NestedAppsName         = this.MyAppID;
                    g.NestedParentID         = "SNo";
                    g.SuccessGrid            = "ChildSuccessGridLyingList";
                    g.NestedIsShowEdit       = false;
                    g.NestedDefaultPageSize  = 1000;
                    g.NestedIsPageable       = false;
                    g.IsNestedAllowedSorting = false;
                    g.NestedDataSoruceUrl    = "Services/Mail/AirMailManifestService.svc/GetAirMailChildLyingListRecord";
                    g.NestedColumn           = new List <GridColumn>();
                    g.NestedColumn.Add(new GridColumn {
                        Field = "SNo", Title = "SNo", DataType = GridDataType.Number.ToString(), IsHidden = true, Width = 40
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "TransSNo", Title = "TransSNo", DataType = GridDataType.Number.ToString(), IsHidden = true, Width = 40
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "IsManifested", Title = "Select", DataType = GridDataType.String.ToString(), Width = 20, Template = "# if( IsManifested==\"1\"){#<input type=\"checkbox\" id=\"chkChildLyingList_#=SNo#_#=TransSNo#\" checked=\"checked\" />#} else {#<input type=\"checkbox\" id=\"chkChildLyingList_#=SNo#_#=TransSNo#\" /># }#"
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "DNNo", Title = "DN No", DataType = GridDataType.String.ToString(), Width = 40
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "OriCityCode", Title = "Origin City", DataType = GridDataType.String.ToString(), Width = 90
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "DestCityCode", Title = "Destination City", DataType = GridDataType.String.ToString(), Width = 40
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "ReceptacleNumber", Title = "Receptacle Number", DataType = GridDataType.String.ToString(), Width = 70
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "HNRIndicator", Title = "HNR Indicator", DataType = GridDataType.String.ToString(), Width = 40
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "RIICode", Title = "RII Code", DataType = GridDataType.String.ToString(), Width = 90
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "ReceptacleWeight", Title = "Receptacle Weight", DataType = GridDataType.String.ToString(), Width = 90
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "DNULDNo", Title = "DN ULD No", FixTooltip = "ULD No", Template = "<input type=\"hidden\" name=\"DNULDNo_#=TransSNo#\" id=\"DNULDNo_#=TransSNo#\" value=\"#=DNULDNo#\" /><input type=\"text\" class=\"\" name=\"Text_DNULDNo_#=TransSNo#\"  id=\"Text_DNULDNo_#=TransSNo#\"  tabindex=1002  controltype=\"autocomplete\"   maxlength=\"10\" data-width=\"50px\" value=\"#=DN_ULDNo#\" placeholder=\"DN ULD No\" />", DataType = GridDataType.String.ToString(), Width = 100
                    });


                    g.InstantiateIn(Container);
                }
            }
            catch (Exception ex)//
            {
                throw ex;
            }
        }
Esempio n. 4
0
        private void CreateNestedFligthArrivalalLDGrid(StringBuilder Container, string FlightSNo = "")
        {
            try
            {
                using (NestedGrid g = new NestedGrid())
                {
                    //g.Height = 100;
                    //g.PrimaryID = this.MyPrimaryID;
                    //g.ModuleName = this.MyModuleID;
                    //g.AppsName = this.MyAppID;
                    //g.DefaultPageSize = 5;
                    //g.DataSoruceUrl = "Services/Import/FlightArrivalService.svc/GetFlightArrivalULDGridData";
                    //g.PrimaryID = "ULDNo";
                    //g.NewURL = MyPageName + "?" + GetWebURLString("New", false);
                    //g.ModuleName = this.MyModuleID;
                    //g.FormCaptionText = "ULD Details";
                    //g.IsFormHeader = false;
                    //g.IsModule = true;
                    //g.IsShowEdit = false;
                    //g.IsAllowedFiltering = false;
                    //g.IsAllowedSorting = true;
                    //g.IsProcessPart = true;
                    //g.ProcessName = "FAULDInfo";
                    //g.IsSaveChanges = false;

                    g.Height             = 100;
                    g.PageName           = this.MyPageName;
                    g.PrimaryID          = this.MyPrimaryID;
                    g.ModuleName         = this.MyModuleID;
                    g.AppsName           = this.MyAppID;
                    g.DataSoruceUrl      = "Services/Import/FlightArrivalService.svc/GetFlightArrivalULDGridData";
                    g.NewURL             = MyPageName + "?" + GetWebURLString("New", false);
                    g.FormCaptionText    = "ULD Details";
                    g.DefaultPageSize    = 5;
                    g.IsDisplayOnly      = true;
                    g.IsAllowedFiltering = false;
                    g.IsProcessPart      = true;
                    g.IsDisplayOnly      = false;
                    g.ProcessName        = "FAULDInfo";


                    g.Column = new List <GridColumn>();

                    g.Column.Add(new GridColumn {
                        Field = "SNo", Title = "SNo", IsHidden = true, DataType = GridDataType.String.ToString(), Width = 50
                    });
                    g.Column.Add(new GridColumn {
                        Field = "ULDNo", Title = "ULD No", IsHidden = false, DataType = GridDataType.String.ToString(), Width = 50
                    });
                    g.Column.Add(new GridColumn {
                        Field = "BUP", Title = "BUP", IsHidden = false, DataType = GridDataType.String.ToString(), Width = 50
                    });
                    g.Column.Add(new GridColumn {
                        Field = "TotalPieces", Title = "Total Pcs", DataType = GridDataType.String.ToString(), Width = 60
                    });
                    g.Column.Add(new GridColumn {
                        Field = "TotalGrossWeight", Title = "Gross Wt", DataType = GridDataType.String.ToString(), Width = 60
                    });
                    g.Column.Add(new GridColumn {
                        Field = "SPHC", Title = "SHC", DataType = GridDataType.String.ToString(), Width = 60
                    });
                    g.Column.Add(new GridColumn {
                        Field = "Transit", Title = "Transit", DataType = GridDataType.String.ToString(), Width = 60
                    });
                    g.Column.Add(new GridColumn {
                        Field = "CleanLoad", Title = "Clean Load", IsHidden = false, DataType = GridDataType.String.ToString(), Width = 90
                    });
                    g.Column.Add(new GridColumn {
                        Field = "BreakDownStart", Title = "Breakdown Start", DataType = GridDataType.String.ToString(), Width = 60
                    });
                    g.Column.Add(new GridColumn {
                        Field = "BreakDownEnd", Title = "Breakdown End", DataType = GridDataType.String.ToString(), Width = 60
                    });

                    g.Column.Add(new GridColumn {
                        Field = "ULDCheckedIn", Title = "ULD/BULK Checked In", DataType = GridDataType.String.ToString(), Width = 60
                    });

                    g.ExtraParam = new List <GridExtraParams>();
                    g.ExtraParam.Add(new GridExtraParams {
                        Field = "DailyFlightSno", Value = FlightSNo
                    });
                    //#region Nested Grid Section
                    g.NestedPrimaryID          = "AWBNo";
                    g.NestedModuleName         = this.MyModuleID;
                    g.NestedAppsName           = this.MyAppID;
                    g.NestedParentID           = "ULDNo";
                    g.NestedIsShowEdit         = false;
                    g.NestedDefaultPageSize    = 1000;
                    g.NestedIsPageable         = false;
                    g.IsNestedAllowedFiltering = false;
                    g.IsNestedAllowedSorting   = true;
                    g.IsNestedChild            = true;
                    g.IsNestedProcessPart      = true;
                    g.NestedProcessName        = "FAShipmentInfo";
                    //g.SuccessGrid = "DisableFlight";
                    g.NestedDataSoruceUrl = "Services/Import/FlightArrivalService.svc/GetFlightArrivalShipmentGridData";
                    g.NestedColumn        = new List <GridColumn>();
                    g.NestedColumn.Add(new GridColumn {
                        Field = "DailyFlightSno", Title = "DailyFlightSno", DataType = GridDataType.String.ToString(), IsHidden = true, Width = 90
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "AWBNo", IsLocked = false, Title = "MAWB", DataType = GridDataType.String.ToString(), Width = 90
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "ShipmentDestinationAirportCode", IsLocked = false, Title = "Origin", DataType = GridDataType.String.ToString(), Width = 35
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "ShipmentDestinationAirportCode", IsLocked = false, Title = "Dest", DataType = GridDataType.String.ToString(), Width = 35
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "Commodity", IsLocked = false, Title = "Commodity", DataType = GridDataType.String.ToString(), Width = 70
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "SPHC", Title = "SHC", IsHidden = false, DataType = GridDataType.String.ToString(), Width = 35
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "Document", Title = "Document", IsHidden = false, DataType = GridDataType.String.ToString(), Width = 50
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "Pieces", Title = "AWB Pcs", DataType = GridDataType.Number.ToString(), Width = 40
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "FFMPcs", Title = "FFM Pcs", DataType = GridDataType.Number.ToString(), Width = 40
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "ReceivedPcs", Title = "Rcd Pcs", DataType = GridDataType.Number.ToString(), Width = 40, Template = "<input title=\"U\" id=\"txtFAMAWBRcdPieces\" type=\"text\"  process=\"FA Shp RcdPcs\" width=\"35px\" >"
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "GrossWeight", Title = "Gross Weight", IsHidden = false, DataType = GridDataType.Number.ToString(), Width = 50
                    });
                    g.NestedColumn.Add(new GridColumn {
                        Field = "Remarks", Title = "Remarks", Template = "<input title=\"U\" id=\"txtFAMAWBRemarks\" type=\"text\"  process=\"FA Shp Remarks\">", DataType = GridDataType.String.ToString(), Width = 55
                    });
                    g.NestedExtraParam = new List <NestedGridExtraParam>();
                    g.NestedExtraParam.Add(new NestedGridExtraParam {
                        Field = "DailyFlightSno", Value = FlightSNo
                    });

                    // Nested Child Grid

                    //g.NestedChildPrimaryID = "AWBNo";
                    //g.NestedChildModuleName = this.MyModuleID;
                    //g.NestedChildAppsName = this.MyAppID;
                    //g.NestedChildParentID = "ULDNo";
                    //g.NestedChildIsShowEdit = false;
                    //g.NestedChildDefaultPageSize = 1000;
                    //g.NestedChildIsPageable = false;
                    //g.IsNestedChildAllowedFiltering = false;
                    //g.IsNestedChildAllowedSorting = true;
                    //g.IsNestedChildChild = true;
                    //g.IsNestedChildProcessPart = true;
                    //g.NestedChildProcessName = "FAShipmentInfo";
                    ////g.SuccessGrid = "DisableFlight";
                    //g.NestedChildDataSoruceUrl = "Services/Import/FlightArrivalService.svc/GetFlightArrivalShipmentGridData";
                    //g.NestedChildColumn = new List<GridColumn>();
                    //g.NestedChildColumn.Add(new GridColumn { Field = "DailyFlightSno", Title = "DailyFlightSno", DataType = GridDataType.String.ToString(), IsHidden = true, Width = 90 });
                    //g.NestedChildColumn.Add(new GridColumn { Field = "AWBNo", IsLocked = false, Title = "MAWB", DataType = GridDataType.String.ToString(), Width = 90 });
                    //g.NestedChildColumn.Add(new GridColumn { Field = "ShipmentDestinationAirportCode", IsLocked = false, Title = "Origin", DataType = GridDataType.String.ToString(), Width = 35 });
                    //g.NestedChildColumn.Add(new GridColumn { Field = "ShipmentDestinationAirportCode", IsLocked = false, Title = "Dest", DataType = GridDataType.String.ToString(), Width = 35 });
                    //g.NestedChildColumn.Add(new GridColumn { Field = "Commodity", IsLocked = false, Title = "Commodity", DataType = GridDataType.String.ToString(), Width = 70 });
                    //g.NestedChildColumn.Add(new GridColumn { Field = "SPHC", Title = "SHC", IsHidden = false, DataType = GridDataType.String.ToString(), Width = 35 });
                    //g.NestedChildColumn.Add(new GridColumn { Field = "Document", Title = "Document", IsHidden = false, DataType = GridDataType.String.ToString(), Width = 50 });
                    //g.NestedChildColumn.Add(new GridColumn { Field = "Pieces", Title = "AWB Pcs", DataType = GridDataType.Number.ToString(), Width = 40 });
                    //g.NestedChildColumn.Add(new GridColumn { Field = "FFMPcs", Title = "FFM Pcs", DataType = GridDataType.Number.ToString(), Width = 40 });
                    //g.NestedChildColumn.Add(new GridColumn { Field = "ReceivedPcs", Title = "Rcd Pcs", DataType = GridDataType.Number.ToString(), Width = 40, Template = "<input title=\"U\" id=\"txtFAMAWBRcdPieces\" type=\"text\"  process=\"FA Shp RcdPcs\" width=\"35px\" >" });
                    //g.NestedChildColumn.Add(new GridColumn { Field = "GrossWeight", Title = "Gross Weight", IsHidden = false, DataType = GridDataType.Number.ToString(), Width = 50, Format = "n" });
                    //g.NestedChildColumn.Add(new GridColumn { Field = "Remarks", Title = "Remarks", Template = "<input title=\"U\" id=\"txtFAMAWBRemarks\" type=\"text\"  process=\"FA Shp Remarks\">", DataType = GridDataType.String.ToString(), Width = 55 });
                    //g.NestedChildExtraParam = new List<NestedChildGridExtraParam>();
                    //g.NestedChildExtraParam.Add(new NestedChildGridExtraParam { Field = "DailyFlightSno", Value = FlightSNo });

                    g.InstantiateIn(Container);
                }
            }
            catch (Exception ex)//
            {
                throw ex;
            }
        }