Esempio n. 1
0
        /// <summary>
        /// Getting installation slip history
        /// </summary>
        /// <param name="ContractProjectCode"></param>
        /// <param name="MaintenanceNo"></param>
        /// <param name="SlipNo"></param>
        /// <returns></returns>
        public ActionResult CMS180_GetInstallationSlipHistory(string ContractProjectCode, string MaintenanceNo, string SlipNo)
        {
            ObjectResultData res = new ObjectResultData();

            try
            {
                IInstallationHandler hand = ServiceContainer.GetService <IInstallationHandler>() as IInstallationHandler;
                List <dtInstallationHistoryForView> lst = hand.GetTbt_InstallationHistoryForView(
                    ServiceType.C_SERVICE_TYPE_SALE,
                    ServiceType.C_SERVICE_TYPE_RENTAL,
                    MiscType.C_SALE_INSTALL_TYPE,
                    MiscType.C_RENTAL_INSTALL_TYPE,
                    ChangeReasonType.C_CHANGE_REASON_TYPE_CUSTOMER,
                    ChangeReasonType.C_CHANGE_REASON_TYPE_SECOM,
                    MiscType.C_CUSTOMER_REASON,
                    MiscType.C_SECOM_REASON,
                    ContractProjectCode, MaintenanceNo, SlipNo,
                    SECOM_AJIS.Common.Util.ConstantValue.CurrencyUtil.C_CURRENCY_LOCAL,
                    SECOM_AJIS.Common.Util.ConstantValue.CurrencyUtil.C_CURRENCY_US);
                if (lst.Count > 0)
                {
                    res.ResultData = lst[0];
                }
                //res.ResultData = lst;
            }
            catch (Exception ex)
            {
                res.AddErrorMessage(ex);
            }
            return(Json(res));
        }