예제 #1
0
        private void toolStripButton5_Click(object sender, EventArgs e)//修改
        {
            Dictionary <string, ObjItem> dr = this.dataGView1.getRowData();

            if (dr != null)
            {
                //string str= LData.Es("EQIfChoscodeIsZero", "LKWZ", new object[] { dr["SUPPLYID"] });
                if (dr["医疗机构编码"].ToString() == His.his.Choscode)

                {
                    rowid = this.dataGView1.CurrentRow.Index;
                    Producters_Add form = new Producters_Add(dr);
                    form.Main = this;
                    form.ShowDialog();
                }
                else
                {
                    WJs.alert("只能修改本医疗机构的厂商信息!");
                }
            }
            else
            {
                WJs.alert("请选择要编辑的厂商信息!");
            }
        }
예제 #2
0
        private void toolStripButton2_Click(object sender, EventArgs e)//新增
        {
            Producters_Add form = new Producters_Add();

            form.Main = this;
            form.ShowDialog();
        }