예제 #1
0
        public static bool ShowSelectGz(out string gzname, out string id)
        {
            frmSelectGz frm = new frmSelectGz();

            frm.ShowDialog();
            bool ret = frm.DialogResult == DialogResult.OK;

            gzname = "";
            id     = "";
            if (ret)
            {
                gzname = frm.dgvBill.SelectedRows[0].Cells["gzName"].Value.ToString();
                id     = frm.dgvBill.SelectedRows[0].Cells["parternerid"].Value.ToString();
            }
            return(ret);
        }
예제 #2
0
        public static bool ShowSelectGz(out string gzname, out string id, out string telephone, out string relaperson)
        {
            frmSelectGz frm = new frmSelectGz();

            frm.ShowDialog();
            bool ret = frm.DialogResult == DialogResult.OK;

            gzname     = "";
            id         = "";
            telephone  = "";
            relaperson = "";
            if (ret)
            {
                gzname     = frm.dgvBill.SelectedRows[0].Cells["gzName"].Value.ToString();
                id         = frm.dgvBill.SelectedRows[0].Cells["code"].Value.ToString();
                telephone  = frm.dgvBill.SelectedRows[0].Cells["telephone"].Value.ToString();
                relaperson = frm.dgvBill.SelectedRows[0].Cells["relaperson"].Value.ToString();
            }
            return(ret);
        }