private void btn_save_Click(object sender, EventArgs e)
 {
     Models.dd_shop_windows shopWindows = new Models.dd_shop_windows();
     MyForm.More.dangkouManage.EditdangkouForm editdangkou = new MyForm.More.dangkouManage.EditdangkouForm(shopWindows, 0);
     editdangkou.StartPosition = FormStartPosition.CenterScreen;
     editdangkou.ShowDialog();
     GetGrid();
 }
        private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            string windowid     = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "windowid"));
            string windowname   = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "windowname"));
            string windowdesc   = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "windowdesc"));
            string status       = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "status"));
            string printname    = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "printname"));
            string isdefault    = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "isdefault"));
            string isyicaiyidan = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "isyicaiyidan"));
            string isprintexcep = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "isprintexcep"));
            string printnum     = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "printnum"));

            Models.dd_shop_windows shopWindows = new Models.dd_shop_windows();
            shopWindows.isdefault    = Convert.ToBoolean(isdefault);
            shopWindows.isprintexcep = Convert.ToBoolean(isprintexcep);
            shopWindows.isyicaiyidan = Convert.ToBoolean(isyicaiyidan);
            shopWindows.printname    = printname;
            shopWindows.printnum     = Convert.ToInt32(printnum);
            shopWindows.status       = (status == "使用")?1:0;
            shopWindows.windowdesc   = windowdesc;
            shopWindows.windowname   = windowname;
            shopWindows.windowid     = Convert.ToInt32(windowid);
            if (e.Button.Index == 0)
            {
                MyForm.More.dangkouManage.EditdangkouForm editdangkou = new MyForm.More.dangkouManage.EditdangkouForm(shopWindows, 1);
                editdangkou.StartPosition = FormStartPosition.CenterScreen;
                editdangkou.ShowDialog();
            }
            else if (e.Button.Index == 1)
            {
            }
            else if (e.Button.Index == 2)
            {
                BizSPInfo.Delwindow(Convert.ToInt32(windowid));
            }
            GetGrid();
        }