Exemple #1
0
        /// <summary>
        /// “修改”控件触发事件
        /// </summary>
        private void but_edit_Click(object sender, EventArgs e)
        {
            SortedList slindata = new SortedList();

            try
            {
                slindata.Add("id", dgv_01.SelectedRows[0].Cells["id"].Value);
                slindata.Add("ca_name", dgv_01.SelectedRows[0].Cells["ca_name"].Value);
                slindata.Add("bar_code", dgv_01.SelectedRows[0].Cells["bar_code"].Value);
                slindata.Add("customer_code", dgv_01.SelectedRows[0].Cells["ca_customer"].Value);//值是barcode
                slindata.Add("cost_center", dgv_01.SelectedRows[0].Cells["cost_center"].Value);
                slindata.Add("ca_weight", dgv_01.SelectedRows[0].Cells["ca_weight"].Value);
                slindata.Add("ca_size", dgv_01.SelectedRows[0].Cells["ca_size"].Value);
                slindata.Add("handle_price", dgv_01.SelectedRows[0].Cells["ca_price"].Value);
                slindata.Add("sterilizer_type", dgv_01.SelectedRows[0].Cells["sterilizer_type"].Value); //值是灭菌程序id
                slindata.Add("ca_material", dgv_01.SelectedRows[0].Cells["ca_material"].Value);         //值是包装材料id
                slindata.Add("ca_remarks", dgv_01.SelectedRows[0].Cells["ca_remarks"].Value);
            }
            catch
            {
                MessageBox.Show("请选择要修改的敷料包。", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            HCSCM_dressing_set_manage_new hcsm = new HCSCM_dressing_set_manage_new(getdt01, getdt02, slindata);

            hcsm.ShowDialog();
            Loaddata(null);
        }
Exemple #2
0
        //“新建”按钮触发事件
        private void but_new_Click(object sender, EventArgs e)
        {
            HCSCM_dressing_set_manage_new hcsm = new HCSCM_dressing_set_manage_new(getdt01, getdt02, null);

            //获取一个值,指是否在Windows任务栏中显示窗体。
            hcsm.ShowInTaskbar = false;
            hcsm.ShowDialog();
            Loaddata(null);
        }