protected void LiveCaller_BackFromWalking_Button_Click(object sender, EventArgs e)
        {
            var user = (User)Session["User"];

            if (user == null)
            {
                return;
            }

            var AhwalMappingID = Request.Form["LiveCaller_AwahlMappingID"];

            if (AhwalMappingID == null)
            {
                return;
            }
            var personState = new PatrolPersonState();

            personState.PatrolPersonStateID = Core.Handler_AhwalMapping.PatrolPersonState_BackFromWalking;
            var result = Core.Handler_AhwalMapping.Ops_ChangePersonState(user, Convert.ToInt64(AhwalMappingID), personState);

            if (result.StatusID == Core.Handler_Operations.Opeartion_Status_Success)
            {
                OpsLiveGrid.DataBind();
            }
            LiveCaller_PopUp.ShowOnPageLoad = false;
        }
        protected void OpsLiveGrid_CustomButtonCallback(object sender, ASPxGridViewCustomButtonCallbackEventArgs e)
        {
            var user = (User)Session["User"];

            if (user == null)
            {
                return;
            }
            var value       = OpsLiveGrid.GetRowValues(e.VisibleIndex, "AhwalMappingID").ToString();
            var personState = new PatrolPersonState();

            if (e.ButtonID == "Away")
            {
                personState.PatrolPersonStateID = Core.Handler_AhwalMapping.PatrolPersonState_Away;
                var result = Core.Handler_AhwalMapping.Ops_ChangePersonState(user, Convert.ToInt64(value), personState);
                if (result.StatusID == Core.Handler_Operations.Opeartion_Status_Success)
                {
                    OpsLiveGrid.DataBind();
                }
            }
            else if (e.ButtonID == "Land")
            {
                personState.PatrolPersonStateID = Core.Handler_AhwalMapping.PatrolPersonState_Land;
                var result = Core.Handler_AhwalMapping.Ops_ChangePersonState(user, Convert.ToInt64(value), personState);
                if (result.StatusID == Core.Handler_Operations.Opeartion_Status_Success)
                {
                    OpsLiveGrid.DataBind();
                }
            }
            else if (e.ButtonID == "BackFromAway")
            {
                personState.PatrolPersonStateID = Core.Handler_AhwalMapping.PatrolPersonState_Back;
                var result = Core.Handler_AhwalMapping.Ops_ChangePersonState(user, Convert.ToInt64(value), personState);
                if (result.StatusID == Core.Handler_Operations.Opeartion_Status_Success)
                {
                    OpsLiveGrid.DataBind();
                }
            }
            else if (e.ButtonID == "BackFromLand")
            {
                personState.PatrolPersonStateID = Core.Handler_AhwalMapping.PatrolPersonState_Sea;
                var result = Core.Handler_AhwalMapping.Ops_ChangePersonState(user, Convert.ToInt64(value), personState);
                if (result.StatusID == Core.Handler_Operations.Opeartion_Status_Success)
                {
                    OpsLiveGrid.DataBind();
                }
            }
            else if (e.ButtonID == "WalkingPatrol")
            {
                personState.PatrolPersonStateID = Core.Handler_AhwalMapping.PatrolPersonState_WalkingPatrol;
                var result = Core.Handler_AhwalMapping.Ops_ChangePersonState(user, Convert.ToInt64(value), personState);
                if (result.StatusID == Core.Handler_Operations.Opeartion_Status_Success)
                {
                    OpsLiveGrid.DataBind();
                }
            }
            else if (e.ButtonID == "BackFromWalking")
            {
                personState.PatrolPersonStateID = Core.Handler_AhwalMapping.PatrolPersonState_BackFromWalking;
                var result = Core.Handler_AhwalMapping.Ops_ChangePersonState(user, Convert.ToInt64(value), personState);
                if (result.StatusID == Core.Handler_Operations.Opeartion_Status_Success)
                {
                    OpsLiveGrid.DataBind();
                }
            }
        }