Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            frmForeignRetreatOutStorageDetail frmMO = new frmForeignRetreatOutStorageDetail(m_strStorageID);

            frmMO.FormClosed += new FormClosedEventHandler(frmMO_FormClosed);
            frmMO.intInitial  = 1;
            frmMO.ShowDialog();
        }
Example #2
0
        private void m_cmdModify_Click(object sender, EventArgs e)
        {
            clsMS_OutStorage_VO objMain = null;

            clsMS_OutStorageDetail_VO[] objDetail = null;
            ((clsCtl_ForeignRetreatOutStorage)objController).m_mthModify(out objMain, out objDetail);

            if (objMain == null)
            {
                return;
            }

            int intSelectedSubRow = 0;

            if (m_dgvDetail.SelectedRows != null && m_dgvDetail.SelectedRows.Count > 0)
            {
                intSelectedSubRow = m_dgvDetail.SelectedRows[0].Index;
            }
            frmForeignRetreatOutStorageDetail frmMO = new frmForeignRetreatOutStorageDetail(m_strStorageID, objMain, objDetail, intSelectedSubRow);

            frmMO.FormClosed += new FormClosedEventHandler(frmMO_FormClosed);
            if (objDetail != null)
            {
                frmMO.m_txtVendor.Enabled = false;
            }

            if (objMain.m_intFORMTYPE_INT == 5)
            {
                frmMO.intInitial = 1;
            }
            else
            {
                frmMO.intInitial = 0;
            }

            frmMO.ShowDialog();
        }