private void btOK_Click(object sender, EventArgs e)
        {
            switch (strSign)
            {
            case "1":
                frmToMachineManage frmToMachineManage = (frmToMachineManage)this.Owner;
                frmToMachineManage.strSeniorFilter = labHaveSetUp.Text.Replace(",条件", "");
                if (labHaveSetUpHidden.Text.Trim() != "")
                {
                    frmToMachineManage.strSeniorFilterHidden = " AND (" + labHaveSetUpHidden.Text.Replace(",条件", "") + ")";
                }
                else
                {
                    frmToMachineManage.strSeniorFilterHidden = "";
                }
                this.DialogResult = DialogResult.OK;
                break;

            case "2":
                frmToMachineManageCustomData frmToMachineManageCustomData = (frmToMachineManageCustomData)this.Owner;
                frmToMachineManageCustomData.strSeniorFilter = labHaveSetUp.Text.Replace(",条件", "");
                if (labHaveSetUpHidden.Text.Trim() != "")
                {
                    frmToMachineManageCustomData.strSeniorFilterHidden = " AND (" + labHaveSetUpHidden.Text.Replace(",条件", "") + ")";
                }
                else
                {
                    frmToMachineManageCustomData.strSeniorFilterHidden = "";
                }
                this.DialogResult = DialogResult.OK;
                break;
            }
        }
Пример #2
0
        private void 向抄表机导入数据自定义ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmToMachineManageCustomData frm = new frmToMachineManageCustomData();

            frm.ShowDialog();
        }