Ejemplo n.º 1
0
 /// <summary>
 /// 更新者コード入力チェック
 /// </summary>
 /// <returns></returns>
 public CheckResult InputKoushinshaCode(CheckResult checkResult)
 {
     if (string.IsNullOrEmpty(this.KoushinshaCode))
     {
         checkResult.Message = MessageConstants.WARNING_MESSAGE_001.Replace("{0}", "更新者コード");
         checkResult.SetWarningType();
         return(checkResult);
     }
     checkResult.SetSuccessType();
     return(checkResult);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 品名入力チェック
 /// </summary>
 /// <returns></returns>
 public CheckResult InputHimmei(CheckResult checkResult)
 {
     if (string.IsNullOrEmpty(this.Himmei))
     {
         checkResult.Message = MessageConstants.WARNING_MESSAGE_001.Replace("{0}", "品名");
         checkResult.SetWarningType();
         this.IsHimmeiError = true;
         return checkResult;
     }
     checkResult.SetSuccessType();
     return checkResult;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 団体名入力チェック
 /// </summary>
 /// <returns></returns>
 public CheckResult InputDantaiName(CheckResult checkResult)
 {
     if (string.IsNullOrEmpty(this.DantaiName))
     {
         checkResult.Message = MessageConstants.WARNING_MESSAGE_001.Replace("{0}", "団体コード");
         checkResult.SetWarningType();
         this.IsDantaiNameError = true;
         return(checkResult);
     }
     checkResult.SetSuccessType();
     return(checkResult);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 更新日終了入力チェック
 /// </summary>
 /// <returns></returns>
 public CheckResult InputKoushinDateEnd(CheckResult checkResult)
 {
     if (string.IsNullOrEmpty(this.KoushinDateEnd))
     {
         checkResult.Message = MessageConstants.WARNING_MESSAGE_001.Replace("{0}", "更新日終了");
         checkResult.SetWarningType();
         //this.IsDantaiCodeError = true;
         return(checkResult);
     }
     checkResult.SetSuccessType();
     return(checkResult);
 }
Ejemplo n.º 5
0
        /// <summary>
        /// 団体を登録
        /// </summary>
        public CheckResult EntryDantai()
        {
            AN22020RetentionData.DantaiDataList.Add(new DantaiDto()
            {
                HimmeiCode      = this.HimmeiCode,
                Himmei          = this.Himmei,
                DantaiCode      = this._dantaiCode,
                DantaiName      = this._dantaiName,
                KoushinDateTime = DateTime.Now,
                KoushinshaCode  = this._koushinshaCode,
                KoushinshaName  = this._koushinshaName,
                StopKubun       = '0'
                                  //StopKubun = this._stopKubun,
            });

            var result = new CheckResult();

            result.SetSuccessType();
            result.Message = MessageConstants.INFO_MESSAGE_001.Replace("{0}", "団体登録");
            return(result);
        }