Пример #1
0
 public int updateData(DTOCardType _dtoCardType)
 {
     if (_dtoCardType != null)
     {
         DataExecute.Instance.createSqlCmd("UpdateCardTypeValue", ref _dtoCardType);
         return DataExecute.Instance.updateData(DataConnection.Instance.m_cmd);
     }
     return 0;
 }
Пример #2
0
 public int updateData(DTOCardType _dtoCardType)
 {
     return m_dalCardType.updateData(_dtoCardType);
 }
Пример #3
0
 public int insertData(DTOCardType _dtoCardType)
 {
     return m_dalCardType.insertData(_dtoCardType);
 }
Пример #4
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            DTOCardType cartType = new DTOCardType();
            cartType.cardTypeID = "C0005";
            cartType.cardTypeName = "the xanh";

            BUSCardType busCardType = new BUSCardType();
            busCardType.insertData(cartType);
        }