1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
 
namespace BLL
{
    /// <summary>
    /// Íø¸ñÑéÖ¤
    /// </summary>
    public class ClsCheckGridView
    {
        //ÊýÁ¿²»Ð¡ÓÚÁã
        public static bool Fun_CheckQty(DataGridView grd,int HQtyCol,int i)
        {
            if (DBUtility.ClsPub.isDoule(grd.Rows[i].Cells[HQtyCol].Value) <= 0)
            {
                return false;
            }
            return true;
        }
 
        //²Ö¿â²»ÄÜΪ¿Õ
        public static bool Fun_CheckWareHouse(DataGridView grd, int HWhIDCol, int i)
        {
            if (DBUtility.ClsPub.isLong(grd.Rows[i].Cells[HWhIDCol].Value) == 0)
            {
                return false;
            }
            return true;
        }
 
        //²Öλ²»ÄÜΪ¿Õ
        public static bool Fun_CheckStockPlace(DataGridView grd, int HSPIDCol, int i)
        {
            if (DBUtility.ClsPub.isLong(grd.Rows[i].Cells[HSPIDCol].Value) == 0)
            {
                return false;
            }
            return true;
        }
 
        //¼ÆÁ¿µ¥Î»²»ÄÜΪ¿Õ
        public static bool Fun_CheckUnit(DataGridView grd, int HUnitIDCol, int i)
        {
            if (DBUtility.ClsPub.isLong(grd.Rows[i].Cells[HUnitIDCol].Value) == 0)
            {
                return false;
            }
            return true;
        }
    }
}