コード例 #1
0
ファイル: tempUserController.cs プロジェクト: franky1984/PTMS
        public ActionResult SaveForm(string keyValue, string strEntity)
        {
            LR_Base_TempUserEntity entity = strEntity.ToObject <LR_Base_TempUserEntity>();

            try
            {
                tempUserIBLL.SaveEntity(keyValue, entity);
                return(Success("保存成功!"));
            }
            catch
            {
                return(Fail("身份证号重复!"));
            }
        }
コード例 #2
0
ファイル: tempUserController.cs プロジェクト: franky1984/PTMS
        public ActionResult WorkSubstituteSaveForm(string keyValue, string orderID, string strEntity)
        {
            LR_Base_TempUserEntity entity = strEntity.ToObject <LR_Base_TempUserEntity>();

            int checkError = tempUserIBLL.WorkSubstituteSaveForm(keyValue, orderID, entity);

            if (checkError == 2)
            {
                return(Fail("该用户在活动中已存在!"));
            }
            else
            {
                return(Success("保存成功!"));
            }
        }
コード例 #3
0
        public ActionResult SaveForm(string keyValue, string strEntity, string orderID)
        {
            if (string.IsNullOrEmpty(keyValue))
            {
                keyValue = string.Empty;
            }

            LR_Base_TempUserEntity entity = strEntity.ToObject <LR_Base_TempUserEntity>();
            int checkError = orderUsersDetailIBLL.SaveEntity(ref keyValue, entity, orderID);

            if (checkError == 2)
            {
                return(Fail("该用户在活动中已存在!"));
            }
            else
            {
                return(Success("保存成功!", new{ userid = keyValue }));
            }
        }