Exemplo n.º 1
0
 public DataRow InitCopyRow(DictionaryDataSet.CustomerDataTable table, DictionaryDataSet.CustomerRow row)
 {
     DictionaryDataSet.CustomerRow drNewRow = table.NewCustomerRow();
     drNewRow.CustomerID   = Guid.NewGuid();
     drNewRow.CustomerCode = row.CustomerCode;
     drNewRow.CustomerName = row.CustomerName;
     drNewRow.Email        = row.Email;
     drNewRow.Mobile       = row.Mobile;
     drNewRow.Address      = row.Address;
     drNewRow.Description  = row.Description;
     drNewRow.Inactive     = row.Inactive;
     table.Rows.InsertAt(drNewRow, 0);
     return(drNewRow);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Khởi tạo dữ liệu
 /// </summary>
 /// <param name="table"></param>
 public DataRow InitNewRow(DictionaryDataSet.CustomerDataTable table)
 {
     DictionaryDataSet.CustomerRow drNewRow = table.NewCustomerRow();
     drNewRow.CustomerID   = Guid.NewGuid();
     drNewRow.CustomerCode = "";
     drNewRow.CustomerName = "";
     drNewRow.Birthday     = DateTime.Now.AddYears(-10);
     drNewRow.Email        = "";
     drNewRow.Mobile       = "";
     drNewRow.Address      = "";
     drNewRow.Description  = "";
     drNewRow.Inactive     = false;
     table.Rows.InsertAt(drNewRow, 0);
     return(drNewRow);
 }