private Stream BuildWebForm(string processName, string moduleName, string appName, string formAction, string recordID = "", bool IsSubModule = true, string ULDNo = "", string CreatedOn = "") { this.DisplayMode = "FORMACTION." + formAction.ToUpper().Trim(); StringBuilder myCurrentForm = new StringBuilder(); switch (this.DisplayMode) { case DisplayModeNew: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.New; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeSearch: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.Search; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeDuplicate: break; case DisplayModeEdit: break; case DisplayModeDelete: break; case DisplayModeIndexView: //switch (processName) //{ // case "ULDRepair": // if (appName.ToUpper().Trim() == "ULDREPAIR") // CreateGrid(myCurrentForm, processName, ULDNo, CreatedOn); // break; // default: // break; //} break; case DisplayModeReadView: break; default: break; } byte[] resultMyForm = Encoding.UTF8.GetBytes(myCurrentForm.ToString()); WebOperationContext.Current.OutgoingResponse.ContentType = "text/html"; return(new MemoryStream(resultMyForm)); }
private Stream BuildWebForm(string processName, string moduleName, string appName, string formAction, string recordID = "", bool IsSubModule = true, string AWBSNo = "", string CheckListTypeSNo = "", string OriginCity = "", string DestinationCity = "", string FlightNo = "", string FlightDate = "", string AWBPrefix = "", string AWBNo = "", string HAWBNo = "", string LoggedInCity = "", string FlightStatus = "", string FlightSNo = "") { this.DisplayMode = "FORMACTION." + formAction.ToUpper().Trim(); StringBuilder myCurrentForm = new StringBuilder(); switch (this.DisplayMode) { case DisplayModeNew: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.New; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeSearch: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.Search; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeDuplicate: break; case DisplayModeEdit: break; case DisplayModeDelete: break; case DisplayModeIndexView: switch (processName) { case "RESERVATION": if (appName.ToUpper().Trim() == "BOOKING") { CreateResGrid(myCurrentForm, processName, OriginCity, DestinationCity, FlightNo, FlightDate, AWBPrefix, AWBNo, LoggedInCity); } break; case DisplayModeReadView: break; default: break; } break; } byte[] resultMyForm = Encoding.UTF8.GetBytes(myCurrentForm.ToString()); WebOperationContext.Current.OutgoingResponse.ContentType = "text/html"; return(new MemoryStream(resultMyForm)); }
private Stream BuildWebForm(string processName, string moduleName, string appName, string formAction, string recordID = "", bool IsSubModule = true, string SearchFlightNo = "", string FromDate = "", string ToDate = "", string SearchDestination = "", string SearchAirline = "", string ProcessStatus = "") { this.DisplayMode = "FORMACTION." + formAction.ToUpper().Trim(); StringBuilder myCurrentForm = new StringBuilder(); switch (this.DisplayMode) { case DisplayModeNew: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.New; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeSearch: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.Search; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); //CreateGrid(myCurrentForm, SearchFlightNo, SearchFlightDate, SearchDestination, SearchAirline); } break; case DisplayModeDuplicate: break; case DisplayModeEdit: break; case DisplayModeDelete: break; case DisplayModeIndexView: switch (processName) { case "ExportFlightMonitoringSearch": if (appName.ToUpper().Trim() == "SEARCHRECORD") { CreateGrid(myCurrentForm, SearchFlightNo, FromDate, ToDate, SearchDestination, SearchAirline); } break; default: break; } break; } byte[] resultMyForm = Encoding.UTF8.GetBytes(myCurrentForm.ToString()); WebOperationContext.Current.OutgoingResponse.ContentType = "text/html"; return(new MemoryStream(resultMyForm)); }
private Stream BuildWebForm(string processName, string moduleName, string appName, string formAction, string recordID = "", bool IsSubModule = true, string AWBSNo = "", string CheckListTypeSNo = "", string OriginCity = "", string DestinationCity = "", string FlightNo = "", string FlightDate = "", string AWBPrefix = "", string AWBNo = "", string HAWBNo = "", string LoggedInCity = "", string FlightStatus = "", string FlightSNo = "", string SPHCSNo = "", string ChecklistTypeName = "", string Column1Name = "", string Column2Name = "", string Column3Name = "") { try { LoggedInCity = (((CargoFlash.Cargo.Model.UserLogin)(System.Web.HttpContext.Current.Session["UserDetail"]))).CityCode; this.DisplayMode = "FORMACTION." + formAction.ToUpper().Trim(); StringBuilder myCurrentForm = new StringBuilder(); switch (this.DisplayMode) { case DisplayModeNew: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.New; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeSearch: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.Search; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; default: break; } byte[] resultMyForm = Encoding.UTF8.GetBytes(myCurrentForm.ToString()); WebOperationContext.Current.OutgoingResponse.ContentType = "text/html"; return(new MemoryStream(resultMyForm)); } catch (Exception ex)// { throw ex; } }
private Stream BuildWebForm(string processName, string moduleName, string appName, string formAction, string recordID = "", bool IsSubModule = true, string SearchFlightNo = "", string FlightDate = "", string searchFromDate = "", string searchToDate = "", string StartTime = "", string EndTime = "", string DailyFlightSNo = "0", string ULDNo = "0", string SearchFFMRcvd = "0", string SearchQRT = "0", string SearchSHCDGR = "0", string SearchTransitFlight = "0", string SearchConnectingFlights = "0", string SearchFilterULDCounts = "0", string SearchFilterMCT = "0") { try { this.DisplayMode = "FORMACTION." + formAction.ToUpper().Trim(); StringBuilder myCurrentForm = new StringBuilder(); switch (this.DisplayMode) { case DisplayModeNew: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.New; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeSearch: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.Search; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeDuplicate: break; case DisplayModeEdit: break; case DisplayModeDelete: break; case DisplayModeIndexView: switch (processName) { case "RampOffloadFlightArrival": { switch (appName) { case "RampOffloadFlightArrivalShipment": CreateNestedFligthArrivalalLDGrid(myCurrentForm, SearchFlightNo, searchFromDate, searchToDate); break; } break; } default: break; } break; case DisplayModeReadView: break; default: break; } byte[] resultMyForm = Encoding.UTF8.GetBytes(myCurrentForm.ToString()); WebOperationContext.Current.OutgoingResponse.ContentType = "text/html"; return(new MemoryStream(resultMyForm)); } catch (Exception ex)// { throw ex; } }
private Stream BuildWebForm(string processName, string moduleName, string appName, string formAction, string recordID = "", bool IsSubModule = true, string SpecialCargoType = "", string SpecialCargoNo = "") { try { this.DisplayMode = "FORMACTION." + formAction.ToUpper().Trim(); StringBuilder myCurrentForm = new StringBuilder(); switch (this.DisplayMode) { case DisplayModeNew: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.New; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeSearch: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.Search; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeDuplicate: break; case DisplayModeEdit: break; case DisplayModeDelete: break; case DisplayModeIndexView: switch (processName) { case "SpecialCargo": if (appName.ToUpper().Trim() == "SPECIALCARGOSEARCH") { CreateGrid(myCurrentForm, processName, SpecialCargoType, SpecialCargoNo); } break; default: break; } break; case DisplayModeReadView: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.ReadOnly; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; default: break; } byte[] resultMyForm = Encoding.UTF8.GetBytes(myCurrentForm.ToString()); WebOperationContext.Current.OutgoingResponse.ContentType = "text/html"; return(new MemoryStream(resultMyForm)); } catch (Exception ex)// { throw new System.ServiceModel.Web.WebFaultException <string>("Bad Request.", HttpStatusCode.BadRequest); } }
private Stream BuildWebForm(string processName, string moduleName, string appName, string formAction, string recordID = "", bool IsSubModule = true, string searchAirline = "", string searchFlightNo = "", string searchAWBNo = "", string searchFromDate = "", string searchToDate = "", string SearchIncludeTransitAWB = "", string SearchExcludeDeliveredAWB = "", string LoggedInCity = "", string searchSPHC = "", string searchConsignee = "") { try { LoggedInCity = (((CargoFlash.Cargo.Model.UserLogin)(System.Web.HttpContext.Current.Session["UserDetail"]))).CityCode; this.DisplayMode = "FORMACTION." + formAction.ToUpper().Trim(); StringBuilder myCurrentForm = new StringBuilder(); switch (this.DisplayMode) { case DisplayModeNew: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.New; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeSearch: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.Search; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeDuplicate: break; case DisplayModeEdit: break; case DisplayModeDelete: break; case DisplayModeIndexView: switch (processName) { case "FHLExport": if (appName.ToUpper().Trim() == "FHLEXPORT") { CreateGrid(myCurrentForm, processName, searchAirline, searchFlightNo, searchAWBNo, searchFromDate, searchToDate, SearchIncludeTransitAWB, SearchExcludeDeliveredAWB, searchSPHC, searchConsignee); } break; default: break; } break; case DisplayModeReadView: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.ReadOnly; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; default: break; } byte[] resultMyForm = Encoding.UTF8.GetBytes(myCurrentForm.ToString()); WebOperationContext.Current.OutgoingResponse.ContentType = "text/html"; return(new MemoryStream(resultMyForm)); } catch (Exception ex) // { throw ex; } }
private Stream BuildWebForm(string processName, string moduleName, string appName, string formAction, string recordID = "", bool IsSubModule = true, string PageName = "", string AWBSNo = "", string CheckListTypeSNo = "", string userid = "", string module = "", string pageName = "", string actionName = "", string fromDate = "", string toDate = "") { try { this.DisplayMode = "FORMACTION." + formAction.ToUpper().Trim(); StringBuilder myCurrentForm = new StringBuilder(); switch (this.DisplayMode) { case DisplayModeNew: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.New; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeSearch: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.Search; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeDuplicate: break; case DisplayModeEdit: break; case DisplayModeDelete: break; case DisplayModeIndexView: switch (processName) { //case "FWB": // if (appName.ToUpper().Trim() == "BOOKING") // CreateGrid(myCurrentForm, processName, OriginCity, DestinationCity, FlightNo, FlightDate, AWBPrefix, AWBNo, LoggedInCity); // else if (appName.ToUpper().Trim() == "HOUSEWAYBILL") // CreateHAWBGrid(myCurrentForm, AWBSNo); // else if (appName.ToUpper().Trim() == "SHIPPINGBILL") // CreateShippingBillGrid(myCurrentForm, AWBSNo: AWBSNo); // else if (appName.ToUpper().Trim() == "CHECKLIST") // CreateCheckListDetailGrid(myCurrentForm, AWBSNo: AWBSNo, CheckListTypeSNo: "5"); // //-- RH 030815 starts // else if (appName.ToUpper().Trim() == "CHECKLIST_SPHC") // CreateCheckListDetailGrid(myCurrentForm, AWBSNo: AWBSNo, CheckListTypeSNo: "-1"); // else if (appName.ToUpper().Trim() == "EDIDETAILS") // CreateEDIGrid(myCurrentForm, AWBNo, FlightDate, FlightNo); // //-- RH 030815 ends // break; //case "TRANSITFWB": // if (appName.ToUpper().Trim() == "BOOKING") // CreateTransitGrid(myCurrentForm, processName, OriginCity, DestinationCity, FlightNo, FlightDate, AWBPrefix, AWBNo, LoggedInCity); // break; //default: // break; } //if (processName == "HOUSE" && appName.ToUpper().Trim() == "BOOKING") //{ //} //else if (appName.ToUpper().Trim() == "FLIGHTCONTROL") // CreateFlightControlGrid(myCurrentForm, OriginCity, DestinationCity, FlightNo, FlightDate,FlightStatus, LoggedInCity); //else if (appName.ToUpper().Trim() == "FLIGHTAWB") // CreateFlightAWBGrid(myCurrentForm,FlightSNo); break; case DisplayModeReadView: break; default: break; } byte[] resultMyForm = Encoding.UTF8.GetBytes(myCurrentForm.ToString()); WebOperationContext.Current.OutgoingResponse.ContentType = "text/html"; return(new MemoryStream(resultMyForm)); } catch (Exception ex)// { throw ex; } }
private Stream BuildWebForm(string processName, string moduleName, string appName, string formAction, string recordID = "", bool IsSubModule = true, int CitySNo = 0, string FlightNo = "", string FlightDate = "", bool IsBondedWareHouse = false) { //LoggedInCity = (((CargoFlash.Cargo.Model.UserLogin)(System.Web.HttpContext.Current.Session["UserDetail"]))).CityCode; try { this.DisplayMode = "FORMACTION." + formAction.ToUpper().Trim(); StringBuilder myCurrentForm = new StringBuilder(); switch (this.DisplayMode) { case DisplayModeNew: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.New; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeSearch: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.Search; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeDuplicate: break; case DisplayModeEdit: break; case DisplayModeDelete: break; case DisplayModeIndexView: switch (processName) { case "CTM": if (appName.ToUpper().Trim() == "CTM") { CreateGrid(myCurrentForm, processName, CitySNo, FlightNo, FlightDate, IsBondedWareHouse, isV2: true); } break; default: break; } break; case DisplayModeReadView: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.ReadOnly; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; default: break; } byte[] resultMyForm = Encoding.UTF8.GetBytes(myCurrentForm.ToString()); WebOperationContext.Current.OutgoingResponse.ContentType = "text/html"; return(new MemoryStream(resultMyForm)); } catch (Exception ex)// { throw ex; } }
private Stream BuildWebForm(string processName, string moduleName, string appName, string formAction, string recordID = "", bool IsSubModule = true, string FlightNo = "0", string FlightDate = "", string Origin = "0", string Destination = "0", string OffPoint = "0", string FlightStatus = "0", string GroupFlightSNo = "") { this.DisplayMode = "FORMACTION." + formAction.ToUpper().Trim(); StringBuilder myCurrentForm = new StringBuilder(); switch (this.DisplayMode) { case DisplayModeNew: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.New; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeSearch: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.Search; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeDuplicate: break; case DisplayModeEdit: break; case DisplayModeDelete: break; case DisplayModeIndexView: switch (processName) { case "AIRMAILMANIFEST": if (appName.ToUpper().Trim() == "SEARCHMAIL") { CreateAirMailGrid(myCurrentForm, processName, FlightNo, FlightDate, Origin, Destination, OffPoint, FlightStatus); } else if (appName.ToUpper().Trim() == "SEARCHRECORD") { CreateAirMailRecordGrid(myCurrentForm, processName, GroupFlightSNo); } else if (appName.ToUpper().Trim() == "SEARCHLYINGLIST") { CreateAirMailLyingListGrid(myCurrentForm, processName, GroupFlightSNo); } break; default: break; } break; case DisplayModeReadView: break; default: break; } byte[] resultMyForm = Encoding.UTF8.GetBytes(myCurrentForm.ToString()); WebOperationContext.Current.OutgoingResponse.ContentType = "text/html"; return(new MemoryStream(resultMyForm)); }
private Stream BuildWebForm(string processName, string moduleName, string appName, string formAction, string recordID = "", bool IsSubModule = true, string searchAWBSNo = "", string LoggedInCity = "") { LoggedInCity = (((CargoFlash.Cargo.Model.UserLogin)(System.Web.HttpContext.Current.Session["UserDetail"]))).AirportCode; this.DisplayMode = "FORMACTION." + formAction.ToUpper().Trim(); StringBuilder myCurrentForm = new StringBuilder(); switch (this.DisplayMode) { case DisplayModeNew: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.New; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeSearch: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.Search; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeDuplicate: break; case DisplayModeEdit: break; case DisplayModeDelete: break; case DisplayModeIndexView: switch (processName) { case "ADDSHIPMENTADJUSTMENT": if (appName.ToUpper().Trim() == "ADDSHIPMENTADJUSTMENT") { CreateGrid(myCurrentForm, processName, searchAWBSNo, LoggedInCity, isV2: true); } break; default: break; } break; case DisplayModeReadView: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.ReadOnly; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; default: break; } byte[] resultMyForm = Encoding.UTF8.GetBytes(myCurrentForm.ToString()); WebOperationContext.Current.OutgoingResponse.ContentType = "text/html"; return(new MemoryStream(resultMyForm)); }
private Stream BuildWebForm(string processName, string moduleName, string appName, string formAction, string recordID = "", bool IsSubModule = true, string RecID = "0", string searchComplainNo = "", string searchComplainStatus = "", string searchAWBNo = "", string searchFromDate = "", string searchToDate = "", string SearchClaim = "", string LoggedInCity = "") { try { //LoggedInCity = (((CargoFlash.Cargo.Model.UserLogin)(System.Web.HttpContext.Current.Session["UserDetail"]))).CityCode; this.DisplayMode = "FORMACTION." + formAction.ToUpper().Trim(); StringBuilder myCurrentForm = new StringBuilder(); switch (this.DisplayMode) { case DisplayModeNew: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.New; if (RecID != "0") { if (appName.ToUpper() == "COMPLAINTAWBDETAILS") { htmlFormAdapter.objFormData = (AWBDetails)GetRecordAWBDetails(RecID); } else { htmlFormAdapter.objFormData = (ComplaintNew)GetRecordComplaint(RecID); } } myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeSearch: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.Search; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeDuplicate: break; case DisplayModeEdit: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.objFormData = (ComplaintNew)GetRecordComplaint(RecID); htmlFormAdapter.DisplayMode = DisplayModeType.Edit; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeDelete: break; case DisplayModeIndexView: switch (processName) { case "COMPLAINT": if (appName.ToUpper().Trim() == "COMPLAINT") { CreateGrid(myCurrentForm, processName, searchComplainNo, searchComplainStatus, searchAWBNo, searchFromDate, searchToDate, SearchClaim, LoggedInCity, isV2: true); } break; default: break; } break; case DisplayModeReadView: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.ReadOnly; htmlFormAdapter.objFormData = (ComplaintNew)GetRecordComplaint(RecID); myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; default: break; } byte[] resultMyForm = Encoding.UTF8.GetBytes(myCurrentForm.ToString()); WebOperationContext.Current.OutgoingResponse.ContentType = "text/html"; return(new MemoryStream(resultMyForm)); } catch (Exception ex)//(Exception ex) { throw ex; } }
private Stream BuildWebForm(string processName, string moduleName, string appName, string formAction, string recordID = "", bool IsSubModule = true, string SearchAirlineSNo = "", string SearchFlightNo = "", string SearchBoardingPoint = "", string searchFromDate = "", string searchToDate = "", string StartTime = "", string EndTime = "", string FetchAWBList = "0", string LoggedInCity = "", string DailyFlightSno = "") { this.DisplayMode = "FORMACTION." + formAction.ToUpper().Trim(); StringBuilder myCurrentForm = new StringBuilder(); switch (this.DisplayMode) { case DisplayModeNew: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.New; //htmlFormAdapter.objFormData = GetRecordFlightInformation(DailyFlightSno); myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeSearch: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.Search; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeDuplicate: break; case DisplayModeEdit: break; case DisplayModeDelete: break; case DisplayModeIndexView: switch (processName.ToUpper()) { case "FLIGHTARRIVAL": if (appName.ToUpper().Trim() == "FLIGHTARRIVAL") { CreateGrid(myCurrentForm, processName, SearchAirlineSNo, SearchFlightNo, SearchBoardingPoint, searchFromDate, searchToDate, StartTime, EndTime, FetchAWBList, LoggedInCity); } else if (appName.ToUpper().Trim() == "FlightArrivalShipment".ToUpper()) { CreateNestedFligthArrivalalLDGrid(myCurrentForm, DailyFlightSno); } //CreateFlightArrivalShipmentGrid(myCurrentForm, "FAShipmentInfo", DailyFlightSno); break; default: break; } break; case DisplayModeReadView: break; default: break; } byte[] resultMyForm = Encoding.UTF8.GetBytes(myCurrentForm.ToString()); WebOperationContext.Current.OutgoingResponse.ContentType = "text/html"; return(new MemoryStream(resultMyForm)); }
private Stream BuildWebForm(string processName, string moduleName, string appName, string formAction, string recordID = "", bool IsSubModule = true, string SearchFlightNo = "", string SearchFromFlightDate = "", string SearchToFlightDate = "", string SearchFlightStatus = "", string ProcessStatus = "", string FlightSNo = "", string RFSTruckDetailsSNo = "") { this.DisplayMode = "FORMACTION." + formAction.ToUpper().Trim(); StringBuilder myCurrentForm = new StringBuilder(); switch (this.DisplayMode) { case DisplayModeNew: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.New; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeSearch: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.Search; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; case DisplayModeDuplicate: break; case DisplayModeEdit: break; case DisplayModeDelete: break; case DisplayModeIndexView: switch (processName) { case "ImportRFS": if (appName.ToUpper().Trim() == "IMPORTRFS") { CreateRFSGrid(myCurrentForm, SearchFlightNo, SearchFromFlightDate, SearchToFlightDate, SearchFlightStatus); } //if (appName.ToUpper().Trim() == "MANIFESTULD") // CreateManifestULDGrid(myCurrentForm, ProcessStatus, FlightSNo); break; case "IMPORTRFSCHARGE": if (appName.ToUpper().Trim() == "IMPORTRFS") { CreateRFSChargeGridData(myCurrentForm, RFSTruckDetailsSNo); } break; case "RFSCUSTOMCHARGE": if (appName.ToUpper().Trim() == "IMPORTRFS") { CreateRFSCustomChargesGridData(myCurrentForm, RFSTruckDetailsSNo); } break; case DisplayModeReadView: using (HtmlFormGenerator htmlFormAdapter = new HtmlFormGenerator(processName)) { htmlFormAdapter.DisplayMode = DisplayModeType.ReadOnly; myCurrentForm.Append(htmlFormAdapter.InstantiateIn(moduleName, appName, formAction, IsSubModule: IsSubModule)); } break; default: break; } break; } byte[] resultMyForm = Encoding.UTF8.GetBytes(myCurrentForm.ToString()); WebOperationContext.Current.OutgoingResponse.ContentType = "text/html"; return(new MemoryStream(resultMyForm)); }