Example #1
0
        public ActionResult ICS150_GetGroupName(DateTime?paymentDate, string createBy)
        {
            try
            {
                IIncomeHandler handler = ServiceContainer.GetService <IIncomeHandler>() as IIncomeHandler;
                if (string.IsNullOrEmpty(createBy) && CommonUtil.dsTransData != null)
                {
                    createBy = CommonUtil.dsTransData.dtUserData.EmpNo;
                }
                List <doGetMatchGroupNamePayment> lstGroupname = handler.getMatchGroupNameCbo(paymentDate, createBy);

                ComboBoxModel cboModel = new ComboBoxModel();
                cboModel.SetList <doGetMatchGroupNamePayment>(lstGroupname, "MatchRGroupName", "MatchRGroupName", true);
                return(Json(cboModel));
            }
            catch (Exception ex)
            {
                ObjectResultData res = new ObjectResultData();
                res.MessageType = MessageModel.MESSAGE_TYPE.INFORMATION;
                res.AddErrorMessage(ex);
                return(Json(res));
            }
        }