Esempio n. 1
0
 private void btnNewInventory_Click(object sender, EventArgs e)
 {
     My.MyProject.Forms.FrmAddEditGrainInventory.LoadForm();
     My.MyProject.Forms.FrmAddEditGrainInventory.isNewInventory = true;
     MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmAddEditGrainInventory, this);
     dgvInventory.DataSource = GrainInventoryService.GetAllGrainInventory();
 }
Esempio n. 2
0
        private void createTransfeRButton_Click(object sender, EventArgs e)
        {
            selectedTransfers.Clear();
            selectedTransfers.Columns.Clear();
            selectedTransfers.Columns.Add("id");
            selectedTransfers.Columns.Add("cont");
            selectedTransfers.Columns.Add("size");
            selectedTransfers.Columns.Add("status");
            selectedTransfers.Columns.Add("weight");
            selectedTransfers.Columns.Add("due");
            selectedTransfers.Columns.Add("trucker");
            selectedTransfers.Columns.Add("from");
            selectedTransfers.Columns.Add("to");
            // selectedTransfers.Clear()
            // selectedTransfers.Copy(FrmCreateTransfer.transfersBunifuDataGridView)
            foreach (DataGridViewRow row in transfersBunifuDataGridView.Rows)
            {
                if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(row.Cells[1].Value, true, false)))
                {
                    selectedTransfers.Rows.Add(row.Cells[0].Value, row.Cells[2].Value, row.Cells[3].Value, row.Cells[4].Value, row.Cells[5].Value, row.Cells[6].Value, row.Cells[7].Value, row.Cells[8].Value, row.Cells[9].Value);
                }
            }

            MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmCreateTransfer, this);
        }
Esempio n. 3
0
 private void sendEDIBunifuToggleSwitch_OnValuechange(object sender, EventArgs e)
 {
     if (sendEDIBunifuToggleSwitch.Value == true)
     {
         string ssLineCode;
         bool   isAllowedssLine;
         ssLineCode      = Strings.Trim(shippingLineBunifuDropdown.SelectedItem.ToString().Split('(')[0]);
         isAllowedssLine = companies.Select("[RequireEDI] = true and CompanyCode = '" + ssLineCode + "'").Count() > 0;
         if (isAllowedssLine)
         {
             My.MyProject.Forms.FrmChangeEDI.focusedToggle = sendEDIBunifuToggleSwitch;
             DateTime gateDateTime;
             DateTime gateDateTimeTR;
             gateDateTimeTR = Conversions.ToDate(dateDateTimePicker.Value.ToShortDateString() + " " + timeDateTimePicker.Value.ToShortTimeString());
             gateDateTime   = Convert.ToDateTime(gateDateTimeTR);
             My.MyProject.Forms.FrmChangeEDI.ediMode = "OUT-GATE";
             My.MyProject.Forms.FrmChangeEDI.currentEDILabel.Text = "Gate DateTime EDI (" + gateDateTime.ToString("dd-MMM-yyyy hh:mm tt") + ")";
             MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmChangeEDI, this);
         }
         // EDIdateTimeSrt = FrmChangeEDI.EDIDateTimePicker.Value.ToShortDateString + " " + FrmChangeEDI.EdiTimePicker.Value.ToShortTimeString
         // EDIDateTime = Convert.ToDateTime(EDIdateTimeSrt)
         else
         {
             sendEDILabel.Text      = "(EDI will NOT be sent)";
             sendEDILabel.ForeColor = Color.FromArgb(64, 64, 0);
             MessageBox.Show("This Shipping Line does not require EDI");
             sendEDIBunifuToggleSwitch.Value = false;
         }
     }
     else
     {
         sendEDILabel.Text      = "(EDI will NOT be sent)";
         sendEDILabel.ForeColor = Color.FromArgb(64, 64, 0);
     }
 }
Esempio n. 4
0
 private void BunifuButton1_Click(object sender, EventArgs e)
 {
     My.MyProject.Forms.FrmAddEditBagInventoryLocation.loadForm();
     MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmAddEditBagInventoryLocation, this);
     dgvBagLocations.DataSource = BagLocationList.ToList();
     calculateTotalBags();
 }
Esempio n. 5
0
 private void btnAddCompanyToDriver_Click(object sender, EventArgs e)
 {
     if (VerifyLine() == true)
     {
         MdlLoadingSetting.showDialogForm(frmAddCompanyToDriver, this);
     }
 }
Esempio n. 6
0
        private void dgvReleaseDistribution_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvReleaseDistribution.Columns["MessageColumn"].Index == e.ColumnIndex)
            {
                SelecDistReq = (VW_ReleaseDistributionRequest)dgvReleaseDistribution.CurrentRow.DataBoundItem;
                if (!SelecDistReq.msg.Equals(""))
                {
                    My.MyProject.Forms.FrmDistributeRecChangeMsg.LoadForm(SelecDistReq);
                    MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmDistributeRecChangeMsg, this);
                    LoadInformation(inboutTabs.SelectedIndex);
                }
            }

            if (e.ColumnIndex == 0)
            {
                var value = dgvReleaseDistribution.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
                if (!Information.IsNothing(value) && value.Equals("   "))
                {
                    dgvReleaseDistribution.Rows[e.RowIndex].Cells[0].Value = "✔";
                }
                else
                {
                    dgvReleaseDistribution.Rows[e.RowIndex].Cells[0].Value = "   ";
                }
            }

            CheckButtons();
        }
Esempio n. 7
0
        public DialogResult ShowDialog(VW_BookingMinibooking mbRow, object muRow, Form assgnForm)
        {
            bkgNumbLabel.Text     = mbRow.BookingNumber;
            bkgCustomerLabel.Text = mbRow.CustomerName;
            VW_UnitSourceMiniUnit mu = (VW_UnitSourceMiniUnit)muRow;


            unitSourvceNumbLabel.Text = Conversions.ToString(mu.MiniunitNumber);
            try
            {
                unitSourceCustomLabel.Text = Conversions.ToString(mu.CustomerName);
            }
            catch
            {
                unitSourceCustomLabel.Text = Conversions.ToString(mu.CustomerName);
            }

            _muID = Conversions.ToInteger(mu.MiniUnitId);
            PictureBox1.Hide();
            changeUnitCustRadioButton.Checked = false;
            dontAsnRadioButton.Checked        = true;
            checkUnit();
            MdlLoadingSetting.showDialogForm(this, assgnForm);
            return(DialogResult);
        }
Esempio n. 8
0
 private void BunifuButton1_Click(object sender, EventArgs e)
 {
     My.MyProject.Forms.FrmEditAddBags.isNewInventory = true;
     My.MyProject.Forms.FrmEditAddBags.loadForm();
     MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmEditAddBags, this);
     VWBagBindingSource.DataSource = BagInventoryService.GetAllBags();
 }
Esempio n. 9
0
 public DialogResult ShowDialog(string titleMessage, string message, Form assgnForm)
 {
     titleLabel.Text   = titleMessage;
     messageLabel.Text = message;
     MdlLoadingSetting.showDialogForm(this, assgnForm);
     return(DialogResult);
 }
Esempio n. 10
0
        private void deleteOutBunifuButton_Click(object sender, EventArgs e)
        {
            int     focusedRow = 0;
            int     recordID   = 0;
            DataRow recordInfo;

            for (int i = 0, loopTo = OutGateDataGridView.Rows.Count - 1; i <= loopTo; i++)
            {
                if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(OutGateDataGridView.Rows[i].Cells[1].Value, true, false)))
                {
                    recordID = Conversions.ToInteger(OutGateDataGridView.Rows[i].Cells[0].Value);
                    break;
                }
            }

            recordInfo = dbCeres.getTableInfo("[Containers In-Out]", "*", "where [Unique ID] = " + recordID.ToString()).Rows[0];
            My.MyProject.Forms.FrmdeleteWarning.deleteRecord          = "OutGate";
            MdlContainerManagement.deleteRecordType                   = "OutGate";
            My.MyProject.Forms.FrmdeleteWarning.confirmationKey       = Strings.Trim(recordInfo["Container Number"].ToString());
            My.MyProject.Forms.FrmdeleteWarning.mainMessageLabel.Text = "This can not be undone. This will permanently delete the record and " + " all the other informations associated with it (Out Gate info, Time/Date Out, etc)." + Constants.vbNewLine + "Container #: " + Strings.Trim(recordInfo["Container Number"].ToString());
            My.MyProject.Forms.FrmdeleteWarning.confirmationPanel.Show();
            My.MyProject.Forms.FrmdeleteWarning.ButtonPanel.Show();
            My.MyProject.Forms.FrmdeleteWarning.yesBunifuButton.Enabled = false;
            MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmdeleteWarning, this);
            numbOfSelecCans = 0;
            for (int i = 0, loopTo1 = InGateDataGridView.Rows.Count - 1; i <= loopTo1; i++)
            {
                InGateDataGridView.Rows[i].Cells[1].Value = false;
            }
            checkButtons();
        }
Esempio n. 11
0
        private void dgvRequests_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvRequests.Columns["btnReqAction"].Index == e.ColumnIndex)
            {
                InReq = (VW_InboundRequest)dgvRequests.Rows[e.RowIndex].DataBoundItem;
                My.MyProject.Forms.FrmUpdateReqStatus.PopulateInfo(InReq);
                My.MyProject.Forms.FrmUpdateReqStatus.firstLoad = true;
                MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmUpdateReqStatus, this);
                LoadInformation(inboutTabs.SelectedIndex);
            }

            if (e.ColumnIndex == 0)
            {
                var value = dgvRequests.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
                if (!Information.IsNothing(value) && value.Equals("   "))
                {
                    dgvRequests.Rows[e.RowIndex].Cells[0].Value = "✔";
                }
                else
                {
                    dgvRequests.Rows[e.RowIndex].Cells[0].Value = "   ";
                }
            }

            CheckButtons();
        }
Esempio n. 12
0
 public void CloseForm()
 {
     Close();
     My.MyProject.Forms.frmWebBrowserPDF.LoadPDFWebBrowser(ftpfileName);
     MdlLoadingSetting.showDialogForm(My.MyProject.Forms.frmWebBrowserPDF, this);
     ftpser.CleanDirectory();
 }
Esempio n. 13
0
        public DialogResult ShowDialog(Form assgnForm)
        {
            if (reasignCans == true)
            {
                cboMinibooking.Items.Clear();
                {
                    var withBlock = My.MyProject.Forms.FrmEditAddBooking;
                    foreach (var mb in withBlock.originalMBTable)
                    {
                        if (withBlock.originalMBTable.Count == 1)
                        {
                            cboMinibooking.Items.Add(Strings.Trim(withBlock.bkgNumbTextBox1.Text));
                        }
                        else
                        {
                            cboMinibooking.Items.Add(mb.MiniBookingOrder.ToString());
                        }
                    }
                }

                cboMinibooking.SelectedIndex = 0;
            }

            MdlLoadingSetting.showDialogForm(this, assgnForm);
            return(DialogResult);
        }
Esempio n. 14
0
 private void btnUpdateDriver_Click(object sender, EventArgs e)
 {
     if (VerifyLine() == true)
     {
         MdlLoadingSetting.showDialogForm(My.MyProject.Forms.frmEditTruckDrivers, this);
     }
 }
Esempio n. 15
0
 private void btnAddDistribution_Click(object sender, EventArgs e)
 {
     My.MyProject.Forms.FrmListDistributions.loadForm();
     My.MyProject.Forms.FrmListDistributions.firstLoad = true;
     MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmListDistributions, this);
     LoadInformation(inboutTabs.SelectedIndex);
 }
Esempio n. 16
0
 public DialogResult ShowDialog(string titleMessage, string message, string textToConfirm, Form assgnForm)
 {
     titleLabel.Text       = titleMessage;
     mainMessageLabel.Text = message;
     textToCheck           = Strings.Trim(textToConfirm);
     MdlLoadingSetting.showDialogForm(this, assgnForm);
     return(DialogResult);
 }
Esempio n. 17
0
 public DialogResult ShowDialog(string titleMessage, string message, Image pictureWarning, Form assgnForm)
 {
     titleLabel.Text   = titleMessage;
     messageLabel.Text = message;
     PictureBox1.Image = pictureWarning;
     MdlLoadingSetting.showDialogForm(this, assgnForm);
     return(DialogResult);
 }
Esempio n. 18
0
        private void Button1_Click_1(object sender, EventArgs e)
        {
            int selectedRow = My.MyProject.Forms.FrmDisplayContacts.companiesBunifuDataGridView.CurrentCell.RowIndex;
            int companyID   = Conversions.ToInteger(My.MyProject.Forms.FrmDisplayContacts.companiesBunifuDataGridView.Rows[selectedRow].Cells[4].Value);

            MdlContactsModifySaveData.populateEdi(companyID);
            MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmEDI, this);
        }
Esempio n. 19
0
 private void dgvInventory_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     focusedRow = (VW_BagInventory)dgvInventory.Rows[e.RowIndex].DataBoundItem;
     if (e.ColumnIndex == 8)
     {
         MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmAdjustBagsInventoryQty, this);
     }
 }
Esempio n. 20
0
        private void dgvBagLocations_DoubleClick(object sender, EventArgs e)
        {
            VW_InventoryBagLocation selectedLocation = (VW_InventoryBagLocation)dgvBagLocations.Rows[dgvBagLocations.CurrentRow.Index].DataBoundItem;

            My.MyProject.Forms.FrmAddEditBagInventoryLocation.loadForm();
            My.MyProject.Forms.FrmAddEditBagInventoryLocation.populateEditInfo(selectedLocation);
            MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmAddEditBagInventoryLocation, this);
        }
Esempio n. 21
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     My.MyProject.Forms.FrmAddEditInventory.loadForm();
     My.MyProject.Forms.FrmAddEditInventory.isNewInventory = false;
     My.MyProject.Forms.FrmAddEditInventory.LoadEditInfo(selectedInventory);
     MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmAddEditInventory, this);
     PopulateInventoryInfo(selectedInventory);
 }
Esempio n. 22
0
        private void ToolStripMenuItem6_Click(object sender, EventArgs e)
        {
            isNewContact = false;
            int selectedRow = contactsBunifuDataGridView.CurrentRow.Index;

            editContactIsClicked = true;
            My.MyProject.Forms.FrmAddContact.Label14.Text = Conversions.ToString(Operators.AddObject(Operators.AddObject(Operators.AddObject("Edit ", contactsBunifuDataGridView.Rows[selectedRow].Cells[0].Value), " "), contactsBunifuDataGridView.Rows[selectedRow].Cells[1].Value));
            MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmAddContact, My.MyProject.Forms.FrmParentScreen);
        }
Esempio n. 23
0
        private void dgvLogos_DoubleClick(object sender, EventArgs e)
        {
            BagLogo BagLogoInfo = (BagLogo)dgvLogos.Rows[dgvLogos.CurrentRow.Index].DataBoundItem;

            My.MyProject.Forms.FrmAddEditBagLogo.isNewLogo = false;
            My.MyProject.Forms.FrmAddEditBagLogo.LoadForm();
            My.MyProject.Forms.FrmAddEditBagLogo.LoadEditInfo(BagLogoInfo);
            MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmAddEditBagLogo, this);
        }
Esempio n. 24
0
        private void clearanceButton_Click(object sender, EventArgs e)
        {
            selectedRow = BunifuDataGridView1.CurrentCell.RowIndex;
            string firstName = Conversions.ToString(BunifuDataGridView1.Rows[selectedRow].Cells[1].Value);
            string lastName  = Conversions.ToString(BunifuDataGridView1.Rows[selectedRow].Cells[2].Value);

            My.MyProject.Forms.FrmClearance.Label1.Text = "Check all functionalities you wish to grant to " + firstName + " " + lastName;
            MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmClearance, this);
        }
Esempio n. 25
0
 private void BunifuButton9_Click(object sender, EventArgs e)
 {
     My.MyProject.Forms.FrmAddEditDistRequest.isNewRecord = true;
     SelRelDistReq = (VW_ReleaseDistributionRequest)dgvRelDistReq.CurrentRow.DataBoundItem;
     My.MyProject.Forms.FrmAddEditDistRequest.LoadForm(SelRelDistReq, PUDOSchDateList);
     MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmAddEditDistRequest, this);
     RefreshList(2);
     CheckButtons();
 }
Esempio n. 26
0
        private void dgvBags_DoubleClick(object sender, EventArgs e)
        {
            VW_Bag bag = (VW_Bag)dgvBags.CurrentRow.DataBoundItem;

            My.MyProject.Forms.FrmEditAddBags.isNewInventory = false;
            My.MyProject.Forms.FrmEditAddBags.loadForm();
            My.MyProject.Forms.FrmEditAddBags.LoadEditInfo(bag);
            MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmEditAddBags, this);
        }
Esempio n. 27
0
 private void btnAddCarrier_Click(object sender, EventArgs e)
 {
     SelectedRelPUDORow = (VW_RelOrderPickUpDropOffLocation)dgvReleases.CurrentRow.DataBoundItem;
     My.MyProject.Forms.FrmAddEditCarrierReqDist.isNewRecord = true;
     My.MyProject.Forms.FrmAddEditCarrierReqDist.LoadForm(SelectedRelPUDORow);
     MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmAddEditCarrierReqDist, this);
     RefreshList(1);
     CheckButtons();
 }
Esempio n. 28
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            VW_Company c = (VW_Company)companiesBunifuDataGridView.CurrentRow.DataBoundItem;

            My.MyProject.Forms.FrmAddOrganization.loadForm();
            My.MyProject.Forms.FrmAddOrganization.PopulateInfo(c.CompanyId);
            MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmAddOrganization, My.MyProject.Forms.FrmParentScreen);
            companyList = new SortableBindingList <VW_Company>(CompanyService.GetAllActiveVWCompany().Where(cvw => cvw.CompanyId != 0).ToList());
            VWCompanyBindingSource.DataSource = companyList;
        }
Esempio n. 29
0
 private void btnAddNewPUDO_Click(object sender, EventArgs e)
 {
     My.MyProject.Forms.FrmAddEditReleasePickUpDropOff.LoadForm();
     My.MyProject.Forms.FrmAddEditReleasePickUpDropOff.isNewRecord = true;
     MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmAddEditReleasePickUpDropOff, this);
     PickUpDropOffLocations      = RelOrderPickUpDropOffLocationService.GetByReleaseOrderId(SelectedReleaseOrder.ReleaseOrderId);
     dgvPickUpDropOff.DataSource = null;
     dgvPickUpDropOff.DataSource = PickUpDropOffLocations;
     CalculateQtys();
 }
Esempio n. 30
0
 private void btnEditDistReq_Click(object sender, EventArgs e)
 {
     if (dgvPickUpDropOf.Rows.Count > 0)
     {
         var VWRel = ReleaseService.GetVWByReleaseId(SelectedReleaseOrder.ReleaseId);
         My.MyProject.Forms.FrmAddEditRelease.PopulateInfo(VWRel);
         MdlLoadingSetting.showDialogForm(My.MyProject.Forms.FrmAddEditRelease, this);
         VWRelOrderPickUpDropOffLocationBindingSource.DataSource = RelOrderPickUpDropOffLocationService.GetByReleaseOrderId(SelectedReleaseOrder.ReleaseOrderId);
     }
 }