//End Add

        /// <summary>
        /// Retrieve billing target dept summary information list of specific screen mode and search criteria information
        /// </summary>
        /// <param name="data">Search criteria from link</param>
        /// <returns></returns>
        public ActionResult ICS030_LoadGetBillingTargetDebtSummaryByOfficeData(ICS030_RegisterData data)
        {
            ICS030_ScreenParameter param = GetScreenObject <ICS030_ScreenParameter>();
            ObjectResultData       res   = new ObjectResultData();

            res.MessageType = MessageModel.MESSAGE_TYPE.WARNING;
            List <doGetBillingTargetDebtSummaryByOffice> _doGetBillingTargetDebtSummaryByOfficeList = new List <doGetBillingTargetDebtSummaryByOffice>();

            try
            {
                if (param != null)
                {
                    data.intMonth = data.RawdtpMonthYear.Month;
                    data.intYear  = data.RawdtpMonthYear.Year;

                    IIncomeHandler iincomeHandler = ServiceContainer.GetService <IIncomeHandler>() as IIncomeHandler;
                    _doGetBillingTargetDebtSummaryByOfficeList = iincomeHandler.GetBillingTargetDebtSummaryByOfficeList(data.strOfficeCode, data.intMonth, data.intYear);

                    foreach (var item in _doGetBillingTargetDebtSummaryByOfficeList)
                    {
                        if (item.DebtTracingRegisteredString == "Yes")
                        {
                            item.DebtTracingRegisteredGridFormat = param.conYes;
                        }
                        else
                        {
                            item.DebtTracingRegisteredGridFormat = param.conNo;
                        }

                        if (item.IncludeFirstFee == 1)
                        {
                            item.IncludeFirstFeeGridFormat = param.conYes;
                        }
                        else
                        {
                            item.IncludeFirstFeeGridFormat = param.conNo;
                        }
                    }

                    // Save RegisterData in session
                    param.RegisterData = data;
                }
            }
            catch (Exception ex)
            {
                res.MessageType = MessageModel.MESSAGE_TYPE.INFORMATION;
                res.AddErrorMessage(ex);
                return(Json(res));
            }
            res.ResultData = CommonUtil.ConvertToXml <doGetBillingTargetDebtSummaryByOffice>(_doGetBillingTargetDebtSummaryByOfficeList, "Income\\ICS030_ListOfUnPaidBillingTargetByBillingOffice", CommonUtil.GRID_EMPTY_TYPE.VIEW);
            return(Json(res));
        }