Exemplo n.º 1
0
 public void AddEnumInt(string name, Enum value)
 {
     DL.Param4DT c = new DL.Param4DT()
     {
         ParamType = "int", ParName = name, ParValue = Convert.ToInt32(value)
     };
     _lis.Add(c);
 }
Exemplo n.º 2
0
 public void AddBool(string name, bool value)
 {
     DL.Param4DT c = new DL.Param4DT()
     {
         ParamType = "bool", ParName = name, ParValue = value
     };
     _lis.Add(c);
 }
Exemplo n.º 3
0
 public void AddDateTime(string name, DateTime?value)
 {
     DL.Param4DT c = new DL.Param4DT()
     {
         ParamType = "datetime", ParName = name, ParValue = value
     };
     _lis.Add(c);
 }
Exemplo n.º 4
0
 public void Add(string name, object value)
 {
     DL.Param4DT c = new DL.Param4DT()
     {
         ParName = name, ParValue = value
     };
     _lis.Add(c);
 }
Exemplo n.º 5
0
 public void AddInt(string name, int value, bool bolIsDbKey = false)
 {
     DL.Param4DT c = new DL.Param4DT()
     {
         ParamType = "int", ParName = name, ParValue = value
     };
     if (bolIsDbKey)
     {
         c.ParValue = BO.BAS.TestIntAsDbKey(value);
     }
     _lis.Add(c);
 }
Exemplo n.º 6
0
 public void AddDouble(string name, double?value)
 {
     if (value != null && value == 0)
     {
         value = null;
     }
     DL.Param4DT c = new DL.Param4DT()
     {
         ParamType = "double", ParName = name, ParValue = value
     };
     _lis.Add(c);
 }
Exemplo n.º 7
0
 public void AddString(string name, string value)
 {
     if (System.String.IsNullOrEmpty(value) == true || value.TrimEnd() == "")
     {
         value = null;
     }
     DL.Param4DT c = new DL.Param4DT()
     {
         ParamType = "string", ParName = name, ParValue = String2Db(value)
     };
     _lis.Add(c);
 }