Exemple #1
0
        /// <summary>
        /// 批量设置
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripButton5_Click(object sender, EventArgs e)
        {
            if (this.dgv_model.SelectedRows.Count <= 0)
            {
                return;
            }
            if (this.dgv_model.SelectedRows[0].Cells["sysid"].Value == null)
            {
                return;
            }
            string sysid_ = this.dgv_model.SelectedRows[0].Cells["sysid"].Value.ToString().Trim();

            if (sysid_ == "")
            {
                return;
            }
            string m_ = this.dgv_model.SelectedRows[0].Cells["机型名"].Value.ToString().Trim();

            ModelSelectMats msm = new ModelSelectMats();

            msm.MatsSelect_ += new ModelSelectMats.MatsSelect(msm_MatsSelect_);
            msm.Model_       = m_;
            msm.ShowDialog();
        }
Exemple #2
0
        /// <summary>
        /// 批量设置
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripButton5_Click(object sender, EventArgs e)
        {
            if (this.dgv_model.SelectedRows.Count <= 0) return;
            if (this.dgv_model.SelectedRows[0].Cells["sysid"].Value == null) return;
            string sysid_ = this.dgv_model.SelectedRows[0].Cells["sysid"].Value.ToString().Trim();
            if (sysid_ == "") return;
            string m_ = this.dgv_model.SelectedRows[0].Cells["机型名"].Value.ToString().Trim();

            ModelSelectMats msm = new ModelSelectMats();
            msm.MatsSelect_+=new ModelSelectMats.MatsSelect(msm_MatsSelect_);
            msm.Model_ = m_;
            msm.ShowDialog();
        }