Grid的check

private bool CheckInputOfEdit1()
{
// 開始ログを出力する
GetLogger().LogMethodBegin("OS0304.CheckInputOfEdit");

//背景色設定
this.inputColorCheck();

foreach (DataGridViewRow row in this.dgvD_Haisya.Rows)
{

// 受入日

if (null == row.Cells["dgvc_UKEDATE"].Value
|| ValidationUtil.IsEmpty(row.Cells["dgvc_UKEDATE"].Value.ToString()))
{
this.dgvD_Haisya.SelectionChanged -= new System.EventHandler(this.dgvD_Haisya_SelectionChanged);
row.Selected = true;
this.dgvD_Haisya.SelectionChanged += new System.EventHandler(this.dgvD_Haisya_SelectionChanged);

FormControlUtil.SetControlBackColor(this.dtpS_UKE_DATE, false);
ShowMsgById(MessageIdDef.COM_00010, "受入日");
this.ActiveControl = this.dtpS_UKE_DATE;

// 終了ログを出力する
GetLogger().LogMethodEnd("OS0304.ValidateGridView");
return false;
}

//事業所コード

if (null == row.Cells["dgvc_JIGYOUSYOCD"].Value
|| ValidationUtil.IsEmpty(row.Cells["dgvc_JIGYOUSYOCD"].Value.ToString()))
{
row.Selected = true;
FormControlUtil.SetControlBackColor(this.cmbS_JIGYOUSYO_CD, false);
ShowMsgById(MessageIdDef.COM_00010, "事業所");
this.ActiveControl = this.cmbS_JIGYOUSYO_CD;

//終了ログを出力する
GetLogger().LogMethodEnd("OS0304.ValidateGridView");
return false;
}

//取引先(バイオマス業者)

if (null == row.Cells["dgvC_TORIHIKISAKIRK"].Value
|| ValidationUtil.IsEmpty(row.Cells["dgvC_TORIHIKISAKIRK"].Value.ToString()))
{
row.Selected = true;
FormControlUtil.SetControlBackColor(this.cmbE_TORIHIKISAKI_BIO_CD, false);
ShowMsgById(MessageIdDef.COM_00010, "取引先(??????業者)");
this.ActiveControl = this.cmbE_TORIHIKISAKI_BIO_CD;

//終了ログを出力する
GetLogger().LogMethodEnd("OS0304.ValidateGridView");
return false;
}

//時間帯

if (null == row.Cells["dgvC_JIKANTAI"].Value
|| ValidationUtil.IsEmpty(row.Cells["dgvC_JIKANTAI"].Value.ToString()))
{
row.Selected = true;
FormControlUtil.SetControlBackColor(this.decE_JIKAN_TAI, false);
ShowMsgById(MessageIdDef.COM_00010, "時間帯");
this.ActiveControl = this.decE_JIKAN_TAI;

//終了ログを出力する
GetLogger().LogMethodEnd("OS0304.ValidateGridView");
return false;
}

// 時間帯半角数字チェック

if (null != row.Cells["dgvC_JIKANTAI"].Value
&& !ValidationUtil.IsEmpty(row.Cells["dgvC_JIKANTAI"].Value.ToString())
&& !ValidationUtil.IsNumbericFormat(row.Cells["dgvC_JIKANTAI"].Value.ToString(), 2, 1))
{
row.Selected = true;
FormControlUtil.SetControlBackColor(this.decE_JIKAN_TAI, false);
ShowMsgById(MessageIdDef.COM_00030, "時間帯", "半角数字");
this.ActiveControl = this.decE_JIKAN_TAI;

//終了ログを出力する
GetLogger().LogMethodEnd("OS0304.ValidateGridView");
return false;
}

// 時間帯 範囲チェック

if (null != row.Cells["dgvC_JIKANTAI"].Value
&& !ValidationUtil.IsEmpty(this.decE_JIKAN_TAI.Text)
&& (Convert.ToDecimal(this.decE_JIKAN_TAI.Text) < 0
|| Convert.ToDecimal(this.decE_JIKAN_TAI.Text) > 23))
{
row.Selected = true;
FormControlUtil.SetControlBackColor(this.decE_JIKAN_TAI, false);
ShowMsgById(MessageIdDef.COM_00050, "時間帯", "0", "23");
this.ActiveControl = this.decE_JIKAN_TAI;

// 終了ログを出力する
GetLogger().LogMethodEnd("OS0304.ValidateGridView");
return false;
}

// 数量
if (null == row.Cells["dgvC_SURYO"].Value
|| ValidationUtil.IsEmpty(row.Cells["dgvC_SURYO"].Value.ToString()))
{
row.Selected = true;
FormControlUtil.SetControlBackColor(this.decE_SURYO, false);
ShowMsgById(MessageIdDef.COM_00010, "数量");
this.ActiveControl = this.decE_SURYO;

// 終了ログを出力する
GetLogger().LogMethodEnd("OS0304.ValidateGridView");
return false;
}

//数量(t) 半角数字チェック

if (null != row.Cells["dgvC_SURYO"].Value
&& !ValidationUtil.IsEmpty(row.Cells["dgvC_SURYO"].Value.ToString())
&& !ValidationUtil.IsNumbericFormat(row.Cells["dgvC_SURYO"].Value.ToString(), 3, 3))
{
row.Selected = true;
FormControlUtil.SetControlBackColor(this.decE_SURYO, false);
ShowMsgById(MessageIdDef.COM_00030, "数量(t", "半角数字");
this.ActiveControl = this.decE_SURYO;

// 終了ログを出力する
GetLogger().LogMethodEnd("OS0304.ValidateGridView");
return false;
}

//数量(t) 0以上チェック

if (null != row.Cells["dgvC_SURYO"].Value
&& !ValidationUtil.IsEmpty(row.Cells["dgvC_SURYO"].Value.ToString())
&& Convert.ToDecimal(row.Cells["dgvC_SURYO"].Value) <= 0)
{
row.Selected = true;
FormControlUtil.SetControlBackColor(this.decE_SURYO, false);
ShowMsgById(MessageIdDef.COM_00030, "数量(t)", "0以上");
this.ActiveControl = this.decE_SURYO;

// 終了ログを出力する
GetLogger().LogMethodEnd("OS0304.ValidateGridView");
return false;
}
}

//終了ログを出力する
GetLogger().LogMethodEnd("OS0304.CheckInputOfEdit");

return true ;
}

时间: 2024-11-15 02:20:51

Grid的check的相关文章

rac_进行grid自检时提示运行runfixup.sh脚本一例

原创作品,出自 "深蓝的blog" 博客,欢迎转载,转载时请务必注明下面出处,否则追究版权法律责任. 深蓝的blog:http://blog.csdn.net/huangyanlong/article/details/40779253 环境:CentOS 6.4 64bit.grid 64bit.oracle11g 64bit 简述: 安装grid之前,手工进行环境检验,例如以下提示须要运行runfixup.sh脚本,下面将此 过程展现例如以下: [[email protected]

DBCA Does Not Display ASM Disk Groups In 11.2

DBCA Does Not Display ASM Disk Groups In?11.2 https://oraclehowto.wordpress.com/2011/08/15/dbca-does-not-display-asm-disk-groups-in-11-2/ Posted by cloeffel on August 15, 2011 I get this problem when trying to create a database with a different user

ICON案例运行

1.案例介绍 2.配置ICON的编译脚本 3.运行编译脚本 4.配置ICON的运行脚本 5.执行运行脚本 1.案例介绍 ICON案例处理流程 检查和执行ICON编译脚本 复制ICON运行脚本.设置脚本参数 检查ICON输入文件 执行ICON运行脚本 检查ICON输出文件及日志文件 2.配置ICON的编译脚本 A:进入ICON目录,复制bldit.icon并重命名: >cd $M3HOME/scripts/Icon >cp bldit.icon bidit.icon.profile B:对bld

centos6.5 x86_64安装oracle 11.2.0.3grid

 1.安装前的准备 工作 1.1.配置node1 1.1.1.配置虚拟机并安装centos 安装node1----- 1.安装node1 1.1.加入30G的硬盘,1G内存,2个处理器,加入两个网卡NAT 1.2.设置主机名同一时候配置网络 node1.localdomain  192.168.0.3/255.255.255.0/192.168.0.1  eth0 node1-priv.localdomain  10.10.10.31/255.255.255.0/10.10.10.1 eth

CRS-0184问题解决过程

近日,公司搭建的ORACLE 11G RAC 出现故障,整个故障的排错思路大概持续了一周左右,最终确定了问题原因,现在简介下ORACLE 11G RAC的环境: jbdb1 IBM P740  AIX 6100-08-02-1316 jbdb2 IBM P740  AIX 6100-08-02-1316 Oracle 11G 11.2.0.3 grid and database 当日,软件人员说无法连接数据库,我就很纳闷,于是就登录到系统,通过查看群集发现整个RAC有异常,正当我查看群集状态时候

asm的启动依赖

原文http://blog.sina.com.cn/s/blog_70a2bdb80100xdth.html [[email protected]] /home/grid> sqlplus "/as sysasm" SQL*Plus: Release 11.2.0.1.0 Production on Sun Oct 25 10:16:21 2009 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected t

PRVF-7593 : CRS is not found to be installed on node &quot;rac2&quot;

进行节点信息更新的时候报错了: [[email protected] bin]$ ./runInstaller -updateNodeList ORACLE_HOME=/u01/app/11.2.0.1/grid/ "CLUSTER_NODES={rac2}" CRS=TRUE -silent Starting Oracle Universal Installer... Checking swap space: must be greater than 500 MB. Actual 1

Oracle 11gR2 RAC搭建(虚拟机搭建)

安装环境说明与虚拟机规化: 安装环境主机操作系统:windows 10 虚拟机VMware15:两台CentOS-7.6Oracle Database software: Oracle11gR2 (11.2.0.1.0)Cluster software: Oracle grid infrastructure 11gR2(11.2.0.1.0) 共享存储:ASMoracle传送门 https://www.oracle.com/technetwork/database/enterprise-edit

LeetCode 1139. Largest 1-Bordered Square

原题链接在这里:https://leetcode.com/problems/largest-1-bordered-square/ 题目: Given a 2D grid of 0s and 1s, return the number of elements in the largest square subgrid that has all 1s on its border, or 0 if such a subgrid doesn't exist in the grid. Example 1: