Пример #1
0
        protected void btnSaveCancelHotel_click(object sender, EventArgs e)
        {
            try
            {
                CrewAssistBLL BLL = new CrewAssistBLL();

                if (uoHiddenFieldIsVehicle.Value == "1")
                {
                    //AlertMessage("Request for hotel Transportation has been sent successfully.");
                    List <SeafarerDetailHeader> _SDetailList = new List <SeafarerDetailHeader>();
                    Session["SeafarerDetailList"] = null;
                    //_SDetailList = BLL.GetCrewAssistCancelTransportationRequest(GlobalCode.Field2TinyInt(uoHiddenFieldVendorType.Value == "PA" ? 1 : 0), GlobalCode.Field2Long(uoHiddenFieldHotelID.Value)

                    _SDetailList = BLL.GetCrewAssistCancelTransportationRequest(GlobalCode.Field2TinyInt(GlobalCode.Field2String(uoHiddenFieldVendorType.Value) == "True" ? 1 : 0), GlobalCode.Field2Long(uoHiddenFieldHotelID.Value)
                                                                                , GlobalCode.Field2Long(uoHiddenFieldHTravelRequestID.Value)
                                                                                , GlobalCode.Field2Long(uoHiddenFieldHIDBigint.Value)
                                                                                , GlobalCode.Field2Int(uoHiddenFieldSeqNo.Value)
                                                                                , GlobalCode.Field2String(uoHiddenFieldUser.Value)
                                                                                , GlobalCode.Field2String(txtEmailTo.Text)
                                                                                , GlobalCode.Field2String(txtEmailCC.Text)
                                                                                , GlobalCode.Field2String(uoTextBoxConfirmedBy.Text)
                                                                                , GlobalCode.Field2String(uoTextBoxComment.Text)
                                                                                , GlobalCode.Field2DateTime(uoHiddenFieldCurrentDate.Value)
                                                                                , GlobalCode.Field2String(uoHiddenFieldTimeZone.Value)
                                                                                , GlobalCode.Field2String(uoHiddenFieldCurrentDate.Value));
                    Session["SeafarerDetailList"] = _SDetailList;
                }
                else
                {
                    List <SeafarerDetailHeader> _SDetailList = new List <SeafarerDetailHeader>();
                    Session["SeafarerDetailList"] = null;
                    _SDetailList = BLL.GetCancelCrewAssistHotelRequest(GlobalCode.Field2TinyInt(uoHiddenFieldVendorType.Value == "PA" ? 1 : 0), GlobalCode.Field2Long(uoHiddenFieldHotelID.Value)
                                                                       , GlobalCode.Field2String(uoHiddenFieldUser.Value)
                                                                       , GlobalCode.Field2String(txtEmailTo.Text)
                                                                       , GlobalCode.Field2String(txtEmailCC.Text)
                                                                       , GlobalCode.Field2String(uoTextBoxConfirmedBy.Text)
                                                                       , GlobalCode.Field2String(uoTextBoxComment.Text)
                                                                       , GlobalCode.Field2DateTime(uoHiddenFieldCurrentDate.Value)
                                                                       , GlobalCode.Field2String(uoHiddenFieldTimeZone.Value)
                                                                       , GlobalCode.Field2String(uoHiddenFieldCurrentDate.Value));
                    Session["SeafarerDetailList"] = _SDetailList;
                    //AlertMessage("Request for hotel cancellation has been sent successfully.");
                }

                ClosePage();
            }
            catch (Exception ex)
            {
                AlertMessage(ex.Message);
            }
        }