Exemplo n.º 1
0
 protected override void InitNewRow()
 {
     base.InitNewRow();
     objBLDetail.InitNewRow(DsDictionary.Employee);
     BsDetail.MoveFirst();
     txtEmployeeCode.Focus();
 }
Exemplo n.º 2
0
 protected override void InitNewRow()
 {
     base.InitNewRow();
     objBLDetail.InitNewRow(DsDictionary.InventoryItem);
     BsDetail.MoveFirst();
     txtInventoryItemCode.Focus();
 }
Exemplo n.º 3
0
 protected override void InitNewRow()
 {
     base.InitNewRow();
     objBLDetail.InitNewRow(DsDictionary.Customer);
     BsDetail.MoveFirst();
     txtCustomerCode.Focus();
 }
Exemplo n.º 4
0
 protected override void InitNewRow()
 {
     base.InitNewRow();
     objBLDetail.InitNewRow(DsDictionary.Unit);
     BsDetail.MoveFirst();
     txtUnitName.Focus();
 }
Exemplo n.º 5
0
 protected override void InitCopyRow()
 {
     base.InitNewRow();
     DictionaryDataSet.InventoryItemRow drCurrent = (DictionaryDataSet.InventoryItemRow)((DataRowView)bsDetail.Current).Row;
     objBLDetail.InitCopyRow(DsDictionary.InventoryItem, drCurrent);
     BsDetail.MoveFirst();
     txtInventoryItemCode.Focus();
 }
Exemplo n.º 6
0
 protected override void InitCopyRow()
 {
     base.InitNewRow();
     DictionaryDataSet.EmployeeRow drCurrent = (DictionaryDataSet.EmployeeRow)((DataRowView)bsDetail.Current).Row;
     objBLDetail.InitCopyRow(DsDictionary.Employee, drCurrent);
     BsDetail.MoveFirst();
     txtEmployeeCode.Focus();
 }
Exemplo n.º 7
0
 protected override void InitNewRow()
 {
     base.InitNewRow();
     objBLDetail.InitNewRow(DsDictionary.Booking);
     if (FormActionMode == ActionMode.AddNew)
     {
         dteFromTime.Value = Session.Today;
     }
     BsDetail.MoveFirst();
     txtBookingNo.Focus();
 }
Exemplo n.º 8
0
 protected override void InitNewRow()
 {
     base.InitNewRow();
     DictionaryDataSet.OrderRow row = (DictionaryDataSet.OrderRow)objBLDetail.InitNewRow(DsDictionary.Order);
     if (BookingID != Guid.Empty)
     {
         row.BookingID = BookingID;
         var bookingRow = ShareDictionary.DsDictionary.Booking.FindByBookingID(BookingID);
         if (bookingRow != null)
         {
             row.CustomerID     = ShareDictionary.DsDictionary.Booking.FindByBookingID(BookingID).CustomerID;
             row.NumberOfPeople = bookingRow.NumberOfPeople;
             row.OrderDate      = bookingRow.FromTime;
         }
         else
         {
             row.OrderDate = Session.Today;
         }
     }
     BsDetail.MoveFirst();
     txtOrderNo.Focus();
 }