プロジェクト

全般

プロフィール

リビジョン 391

山内6年以上前に追加

請求書発送状況入力:郵送日判定用の正規表現にミスがあったため修正

差分を表示:

trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqBillingStatInput/FrmBillingStatInput.cs
56 56
        /// ?f?[?^??X?t???O
57 57
        /// </summary>
58 58
        private bool m_DataChangeFlg = false;
59

  
60 59
        #endregion
61 60

  
62 61
        #region ?????????
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqBillingStatInput/FrmBillingStatInputAuxiliary.cs
20 20
using ProcessManagement.DB.Core;
21 21
using ProcessManagement.Forms.CustomControls;
22 22
using ProcessManagement.Forms.ControlsAction;
23
using System.Text.RegularExpressions;
23 24

  
24 25
namespace ProcessManagement.Forms.DataEntry
25 26
{
......
368 369
        {
369 370
            try
370 371
            {
372
                //??????X???b?V???L????O???????????????????
373
                if (Regex.IsMatch(strTxt, @"[^0-9/]"))
374
                {
375
                    return strTxt;
376
                }
371 377

  
372 378
                // ??????o????J?E???g
373 379
                if (CommonMotions.chkNumeric(strTxt))
......
380 386
                    }
381 387
                }
382 388
                else
383
                {   // 99/99?????
389
                {
384 390
                    if (strTxt.ToString().Length <= 5)
385 391
                    {
392
                        // ?u??/???v??`????????i1/1?A4/01?A12/24???j
386 393
                        strTxt = DateTime.Now.Year.ToString()
387 394
                                        + "/" + CommonMotions.cnvInt(strTxt.Substring(0, strTxt.IndexOf("/"))).ToString("00")
388 395
                                        + "/" + CommonMotions.cnvInt(strTxt.Substring(strTxt.IndexOf("/") + 1)).ToString("00");
396
                    }else if (strTxt.ToString().Length <= 10)
397
                    {
398
                        // ?u?N/??/???v??`????????i2018/1/1?A2011/4/01?A1998/12/24???j
399
                        strTxt = CommonMotions.cnvInt(strTxt.Substring(0, strTxt.IndexOf("/"))).ToString("0000")
400
                                        + "/" + CommonMotions.cnvInt(strTxt.Substring(strTxt.IndexOf("/")+1, strTxt.LastIndexOf("/") - (strTxt.IndexOf("/") + 1))).ToString("00")
401
                                        + "/" + CommonMotions.cnvInt(strTxt.Substring(strTxt.LastIndexOf("/") + 1)).ToString("00");
389 402
                    }
390 403
                }
391 404

  

他の形式にエクスポート: Unified diff