Exemplo n.º 1
0
        public void saveAssigment(Dictionary <string, int> containerList, string bookingNumber, bool shouldHoldCOnt)
        {
            int recordID;
            var ContainerMinibooking = new ContainerMinibookingService();

            foreach (var containerNumb in containerList)
            {
                recordID = containerNumb.Value;
                dbCeres.saveContrAssignment(recordID, bookingNumber, SelectedMBObj.MiniBookingId, true, true, false, false, false, shouldHoldCOnt);
                EmployeeActivityLogService.Insert(My.MyProject.Forms.FrmLoginWindow._userID, "CanID: " + recordID.ToString() + " | MbID: " + SelectedMBObj.MiniBookingId.ToString(), "ASSIGN", "CONTAINER", "Container assigned to booking " + SelectedMBObj.MinibookingNumber);
                ContainerMinibooking.Insert(recordID, SelectedMBObj.MiniBookingId);
            }
        }
Exemplo n.º 2
0
        private void saveAssigment(Dictionary <string, int> containerList, string bookingNumber)
        {
            int focusedIndex  = bookingsBunifuDataGridView1.CurrentRow.Index;
            var miniBookingID = bookingsBunifuDataGridView1.Rows[focusedIndex].Cells[3].Value;
            int recordID;
            var ContainerMinibooking = new ContainerMinibookingService();

            foreach (var containerNumb in containerList)
            {
                recordID = containerNumb.Value;
                dbCeres.saveContrAssignment(recordID, bookingNumber, Conversions.ToInteger(miniBookingID), true, true, false, false, true, false);
                EmployeeActivityLogService.Insert(My.MyProject.Forms.FrmLoginWindow._userID, "CanID: " + recordID.ToString() + " | MbID: " + miniBookingID.ToString(), "ASSIGN", "CONTAINER", "Container reassigned to booking");
                ContainerMinibooking.Insert(recordID, Conversions.ToInteger(miniBookingID));
            }
        }