Esempio n. 1
0
        /// <summary>
        /// 下拉框选择更新数据,并赋值调用画面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void comboBox1_SelectionChangeCommitted(object sender, EventArgs e)
        {
            PivasDWard form1 = (PivasDWard)this.Owner;

            update.updatfz(comboBox1.SelectedValue.ToString(), dr.Cells["WardCode"].Value.ToString());
            dr.Cells["WardArea"].Value = comboBox1.SelectedValue.ToString();
            this.Close();
        }
Esempio n. 2
0
        /// <summary>
        /// 更新区域/并给调用画面赋值
        /// </summary>
        private void UpdateWardArea()
        {
            PivasDWard form1 = (PivasDWard)this.Owner;

            update.updatfz(comboBox1.Text, dr.Cells["WardCode"].Value.ToString());
            dr.Cells["WardArea"].Value = comboBox1.Text;
            this.Close();
        }
Esempio n. 3
0
        /// <summary>
        /// 更新区域/并给调用画面赋值
        /// </summary>
        private void UpdateWardArea()
        {
            PivasDWard form1 = (PivasDWard)this.Owner;

            update.updateLM(dateTimePicker1.Value.ToString("HH:mm"), dr.Cells["WardCode"].Value.ToString());
            dr.Cells["LimitSTTime"].Value = this.dateTimePicker1.Value.ToString("HH:mm");
            this.Close();
        }
Esempio n. 4
0
        /// <summary>
        /// 简称更新
        /// </summary>
        private void UpdateJianChen()
        {
            PivasDWard form1 = (PivasDWard)this.Owner;

            dr.Cells[y].Value = textBox1.Text;

            update.updatjc(dr.Cells["WardSimName"].Value.ToString(), dr.Cells["Spellcode"].Value.ToString(), dr.Cells["WardCode"].Value.ToString());

            //form1.ddrefresh(rowDWard.i, rowDWard.k);

            this.Close();
        }
Esempio n. 5
0
        /// <summary>
        /// 被选中排序更新
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void comboBox1_SelectionChangeCommitted(object sender, EventArgs e)
        {
            PivasDWard form1 = (PivasDWard)this.Owner;

            if (comboBox1.Text != "")
            {
                update.updatpxh(comboBox1.SelectedValue.ToString(), dr.Cells["WardCode"].Value.ToString());
                dr.Cells["WardSeqNo"].Value = comboBox1.SelectedValue.ToString();
                //form1.ddrefresh(rowDWard.i, rowDWard.k);
            }
            this.Close();
        }
Esempio n. 6
0
        /// <summary>
        /// 排序号更新
        /// </summary>
        private void UpdatePaiXu()
        {
            PivasDWard form1 = (PivasDWard)this.Owner;

            if (comboBox1.Text != "")
            {
                update.updatpxh(comboBox1.Text, dr.Cells["WardCode"].Value.ToString());

                dr.Cells["WardSeqNo"].Value = comboBox1.Text;
            }
            this.Close();
        }