コード例 #1
0
        private void ControlButton_Click(object sender, EventArgs e)
        {
            FormCheck fc = new FormCheck();

            fc.Owner     = this;
            this.Visible = false;
            fc.ShowDialog();
            this.Visible = true;
        }
コード例 #2
0
        private void LL_DefineVariables(object sender, DefineElementsEventArgs e)
        {
            FormCheck fch         = (FormCheck)this.Owner;
            int       selectedRow = fch.CheckDGV.SelectedRows[0].Index;

            LL.Variables.Add("FID", fch.CheckDGV.Rows[selectedRow].Cells[0].Value.ToString());
            LL.Variables.Add("FDATE", DateTime.Now.ToLongDateString());
            LL.Variables.Add("FGUESTFIO", fch.CheckDGV.Rows[selectedRow].Cells[1].Value.ToString());
            LL.Variables.Add("FAUTO", fch.CheckDGV.Rows[selectedRow].Cells[2].Value.ToString() + " " + fch.CheckDGV.Rows[selectedRow].Cells[3].Value.ToString());
            LL.Variables.Add("FLOCATION", fch.CheckDGV.Rows[selectedRow].Cells[4].Value.ToString());
            LL.Variables.Add("FMEETFIO", fch.CheckDGV.Rows[selectedRow].Cells[10].Value.ToString());
            LL.Variables.Add("FFACTDATEBEGIN", fch.CheckDGV.Rows[selectedRow].Cells[8].Value?.ToString());
            LL.Variables.Add("FWHCOMMENT", fch.CheckDGV.Rows[selectedRow].Cells[14].Value?.ToString());
            LL.Variables.Add("JPGTYPE", e.UserData.ToString());
            if (!e.IsDesignMode)
            {
                e.IsLastRecord = true;
            }
        }