プロジェクト

全般

プロフィール

リビジョン 187

山内7年以上前に追加

入金確認画面修正(列固定、色合い、メッセージを修正)

差分を表示:

branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmEntryDeposit.Designer.cs
95 95
            this.dgv1.RowHeadersDefaultCellStyle = dataGridViewCellStyle6;
96 96
            this.dgv1.RowHeadersVisible = false;
97 97
            this.dgv1.RowTemplate.Height = 21;
98
            this.dgv1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
98
            this.dgv1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
99 99
            this.dgv1.Size = new System.Drawing.Size(652, 172);
100 100
            this.dgv1.TabIndex = 9;
101 101
            this.dgv1.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgv1_CellBeginEdit);
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmEntryDeposit.cs
47 47
        private string oldCellValue = "";
48 48

  
49 49
        private List<DepositList> Dlist;
50
        private bool isDirty = false;
50 51

  
51 52
        #endregion
52 53

  
......
365 366
            int trow = e.RowIndex;
366 367

  
367 368
            try
368
            {
369
            {                    
370

  
371
                if(tcol == (int)DispColumn.depositAmountCash ||
372
                   tcol == (int)DispColumn.depositAmountBill ||
373
                   tcol == (int)DispColumn.depositDate)
374
                {
375
                    // 数字系の時はIMEモードをオフにする
376
                    dgv1.ImeMode = System.Windows.Forms.ImeMode.Off;
377
                }
378
                else if (tcol == (int)DispColumn.note)
379
                {
380
                    // 備考欄のときはIMEモードをオンにする
381
                    dgv1.ImeMode = System.Windows.Forms.ImeMode.Hiragana;
382
                }
369 383
                if ((tcol == (int)DispColumn.depositAmountCash) ||
370 384
                (tcol == (int)DispColumn.depositAmountBill))
371 385
                {
......
386 400

  
387 401
                    // 文字色は一律黒
388 402
                    dgv1[tcol, trow].Style.ForeColor = Color.Black;
389

  
390 403
                }
391 404
                dgv1.CellBeginEdit += dgv1_CellBeginEdit;
392 405
                dgv1.CellValueChanged += dgv1_CellValueChanged;
......
551 564
                    if (seqno == Dlist.Count)
552 565
                    {
553 566
                        Dlist[e.RowIndex].AddEdit = 1;
567
                        isDirty = true;
554 568
                    }
555 569
                    else
556 570
                    {
557 571
                        Dlist[e.RowIndex].AddEdit = 2;
572
                        isDirty = true;
558 573
                    }
559 574
                }
560 575
            }
......
928 943
        {
929 944
            try
930 945
            {
946
                if (isDirty && MessageBox.Show("データに変更があります、登録せずに終了してよろしいですか?", "終了確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
947
                {
948
                    return;
949
                }
931 950
                this.Close();
932 951
            }
933 952
            catch (Exception ex)
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.Designer.cs
55 55
            this.label2 = new System.Windows.Forms.Label();
56 56
            this.button1 = new System.Windows.Forms.Button();
57 57
            this.dgvMaster = new System.Windows.Forms.DataGridView();
58
            this.Registration = new System.Windows.Forms.Button();
59
            this.btnEnd = new System.Windows.Forms.Button();
58 60
            this.No = new System.Windows.Forms.DataGridViewTextBoxColumn();
59 61
            this.RequestMonth = new System.Windows.Forms.DataGridViewTextBoxColumn();
60 62
            this.RequestNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
......
83 85
            this.DepartmentCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
84 86
            this.PersonName = new System.Windows.Forms.DataGridViewTextBoxColumn();
85 87
            this.NoteDD = new System.Windows.Forms.DataGridViewTextBoxColumn();
86
            this.Registration = new System.Windows.Forms.Button();
87
            this.btnEnd = new System.Windows.Forms.Button();
88 88
            this.panel1.SuspendLayout();
89 89
            ((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).BeginInit();
90 90
            this.SuspendLayout();
......
304 304
            this.dgvMaster.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dgvMaster_CellFormatting);
305 305
            this.dgvMaster.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.dgvMaster_CellValidating);
306 306
            // 
307
            // Registration
308
            // 
309
            this.Registration.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
310
            this.Registration.BackColor = System.Drawing.Color.GreenYellow;
311
            this.Registration.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
312
            this.Registration.ForeColor = System.Drawing.Color.Black;
313
            this.Registration.Location = new System.Drawing.Point(1161, 597);
314
            this.Registration.Name = "Registration";
315
            this.Registration.Size = new System.Drawing.Size(120, 30);
316
            this.Registration.TabIndex = 6;
317
            this.Registration.Text = "登 録";
318
            this.Registration.UseVisualStyleBackColor = false;
319
            this.Registration.Click += new System.EventHandler(this.Registration_Click);
320
            // 
321
            // btnEnd
322
            // 
323
            this.btnEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
324
            this.btnEnd.BackColor = System.Drawing.Color.Magenta;
325
            this.btnEnd.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
326
            this.btnEnd.ForeColor = System.Drawing.Color.Black;
327
            this.btnEnd.Location = new System.Drawing.Point(1287, 597);
328
            this.btnEnd.Name = "btnEnd";
329
            this.btnEnd.Size = new System.Drawing.Size(120, 30);
330
            this.btnEnd.TabIndex = 7;
331
            this.btnEnd.Text = "終 了";
332
            this.btnEnd.UseVisualStyleBackColor = false;
333
            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
334
            // 
307 335
            // No
308 336
            // 
309 337
            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
310 338
            this.No.DefaultCellStyle = dataGridViewCellStyle2;
339
            this.No.Frozen = true;
311 340
            this.No.HeaderText = "No.";
312 341
            this.No.Name = "No";
313 342
            this.No.ReadOnly = true;
......
352 381
            // 
353 382
            // OrderersName
354 383
            // 
384
            this.OrderersName.Frozen = true;
355 385
            this.OrderersName.HeaderText = "請求先名/請求日";
356 386
            this.OrderersName.Name = "OrderersName";
357
            this.OrderersName.ReadOnly = true;
358 387
            this.OrderersName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
359 388
            this.OrderersName.Width = 200;
360 389
            // 
......
368 397
            // 
369 398
            // ConstructionName
370 399
            // 
400
            this.ConstructionName.Frozen = true;
371 401
            this.ConstructionName.HeaderText = "現場名";
372 402
            this.ConstructionName.Name = "ConstructionName";
373 403
            this.ConstructionName.ReadOnly = true;
......
570 600
            this.NoteDD.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
571 601
            this.NoteDD.Width = 250;
572 602
            // 
573
            // Registration
574
            // 
575
            this.Registration.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
576
            this.Registration.BackColor = System.Drawing.Color.GreenYellow;
577
            this.Registration.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
578
            this.Registration.ForeColor = System.Drawing.Color.Black;
579
            this.Registration.Location = new System.Drawing.Point(1161, 597);
580
            this.Registration.Name = "Registration";
581
            this.Registration.Size = new System.Drawing.Size(120, 30);
582
            this.Registration.TabIndex = 6;
583
            this.Registration.Text = "登 録";
584
            this.Registration.UseVisualStyleBackColor = false;
585
            this.Registration.Click += new System.EventHandler(this.Registration_Click);
586
            // 
587
            // btnEnd
588
            // 
589
            this.btnEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
590
            this.btnEnd.BackColor = System.Drawing.Color.Magenta;
591
            this.btnEnd.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
592
            this.btnEnd.ForeColor = System.Drawing.Color.Black;
593
            this.btnEnd.Location = new System.Drawing.Point(1287, 597);
594
            this.btnEnd.Name = "btnEnd";
595
            this.btnEnd.Size = new System.Drawing.Size(120, 30);
596
            this.btnEnd.TabIndex = 7;
597
            this.btnEnd.Text = "終 了";
598
            this.btnEnd.UseVisualStyleBackColor = false;
599
            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
600
            // 
601 603
            // FrmSelectPayment
602 604
            // 
603 605
            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 15F);

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