Пример #1
0
        private void btnDel_Click(object sender, EventArgs e)
        {
            if (txtMLoc.Text == "")
            {
                return;
            }

            string sData = SubGetGridData();

            clsASRS.gsHelpStyle = "DEL";
            Array.Resize <string>(ref clsASRS.gsHelpRtnData, 1);
            clsASRS.gsHelpRtnData[0] = "";
            clsASRS.gsHelpStyle_Data = sData;
            clsASRS.gsHelpStyle_MLoc = txtMLoc.Text;

            frm_LOC_MAINTAIN_Help frmHelp = new frm_LOC_MAINTAIN_Help();

            frmHelp.ShowDialog();

            string sRtnData = clsASRS.gsHelpRtnData[0];

            if (sRtnData == "Y")
            {
                SubQuery();
            }
        }
Пример #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            if (txtMLoc.Text == "")
            {
                return;
            }


            clsASRS.gsHelpStyle = "ADD";
            //Array.Resize<string>(ref clsASRS.gsHelpRtnData, 0);
            Array.Resize <string>(ref clsASRS.gsHelpRtnData, 1);
            clsASRS.gsHelpRtnData[0] = "";
            clsASRS.gsHelpStyle_Data = "";
            clsASRS.gsHelpStyle_MLoc = txtMLoc.Text;

            frm_LOC_MAINTAIN_Help frmHelp = new frm_LOC_MAINTAIN_Help();

            frmHelp.ShowDialog();



            //回傳值
            string sRtnData = clsASRS.gsHelpRtnData[0];

            if (sRtnData == "Y")
            {
                SubQuery();
            }
        }