Exemple #1
0
        /// <summary>
        /// 添加TimeSet  冲药或者拉单  根据构造函数参数确定
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            //参数WhichPage表示进哪个页面  1表示拉单 2表示冲药
            EditTimeSetView editTimeSet = new EditTimeSetView(WhichPage);

            this.ShowAsWindow("添加", editTimeSet);
            redArgs.Whichpage = WhichPage;
            this.OnLoadData(null, redArgs);
        }
Exemple #2
0
 /// <summary>
 /// 修改
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnUpdate_Click(object sender, EventArgs e)
 {
     if (gridView1.FocusedRowHandle >= 0)
     {
         DataRow         dr          = gridView1.GetFocusedDataRow();
         EditTimeSetView editTimeSet = new EditTimeSetView(WhichPage, 1, dr);
         this.ShowAsWindow("修改", editTimeSet);
         redArgs.Whichpage = WhichPage;
         this.OnLoadData(null, redArgs);
     }
     else
     {
         CJia.PIVAS.Tools.Message.Show("请选则数据");
     }
 }