Exemple #1
0
        private void LoadRplInfo()
        {
            var oHeader = InvtBatchRPL_HeaderEx.Get(this.RplId);

            if (oHeader != null)
            {
                txtTxNumber.Text = oHeader.TxNumber;

                cboFromLocation.Text          = oHeader.FromLocation;
                cboToLocation.Text            = oHeader.ToLocation;
                cboOperatorCode.SelectedValue = oHeader.StaffId;
                cboStatus.Text = (oHeader.Status == 0) ? "HOLD" : "POST";

                dtpTxDate.Value    = oHeader.TxDate.Value;
                dtpTxferDate.Value = oHeader.TXFOn.Value;
                dtpCompDate.Value  = oHeader.CompletedOn.Value;

                txtRemarks.Text = oHeader.Remarks;

                txtLastUpdateOn.Text = DateTimeHelper.DateTimeToString(oHeader.ModifiedOn, false);
                txtLastUpdateBy.Text = StaffEx.GetStaffNumberById(oHeader.ModifiedBy);

                txtTxConfirmed.Text    = oHeader.Confirmed ? "Y" : "N";
                txtConfirmedBy.Text    = StaffEx.GetStaffNumberById(oHeader.ConfirmedBy.Value);
                txtConfirmedOn.Text    = DateTimeHelper.DateTimeToString(oHeader.ConfirmedOn.Value, false);
                txtSpecialRequest.Text = oHeader.SpecialRequest ? "Y" : "N";

                this.tbWizardAction.Buttons[0].Enabled = !oHeader.Confirmed;
                this.tbWizardAction.Buttons[2].Enabled = !oHeader.Confirmed;
                this.tbWizardAction.Buttons[4].Enabled = !oHeader.Confirmed;

                BindRplDetailsInfo();
            }
        }
Exemple #2
0
        private void DeleteConfirmationHandler(object sender, EventArgs e)
        {
            if (((Form)sender).DialogResult == DialogResult.Yes)
            {
                InvtBatchRPL_HeaderEx.DeleteChildToo(this.RplId); // Delete();

                this.Close();
            }
        }
Exemple #3
0
        private void FillFromList()
        {
            InvtBatchRPL_HeaderEx.LoadCombo(ref cboFrom, "TxNumber", false);

            /**
             * cboFrom.Items.Clear();
             *
             * string[] orderBy = { "TxNumber" };
             * InvtBatchRPL_HeaderCollection headerList = InvtBatchRPL_Header.LoadCollection(orderBy, true);
             * cboFrom.DataSource = headerList;
             * cboFrom.DisplayMember = "TxNumber";
             * cboFrom.ValueMember = "HeaderId";
             */
        }
Exemple #4
0
        private void FillToList()
        {
            InvtBatchRPL_HeaderEx.LoadCombo(ref cboTo, "TxNumber", false);

            /**
             * cboTo.Items.Clear();
             *
             * string[] orderBy = { "TxNumber" };
             * InvtBatchRPL_HeaderCollection headerList = InvtBatchRPL_Header.LoadCollection(orderBy, true);
             * cboTo.DataSource = headerList;
             * cboTo.DisplayMember = "TxNumber";
             * cboTo.ValueMember = "HeaderId";
             */
            cboTo.SelectedIndex = cboTo.Items.Count - 1;
        }