private void RouterSet(object sender, EventArgs e) { #region 编辑工艺 if (gridControl3.DataSource == null || gridRouter.RowCount < 1) { MsgBox.ShowInfoMsg("当前指令单没有记录!"); return; } string woGuid = gridRouter.GetFocusedRowCellValue("guid").ToString(); FmWORouter frm = new FmWORouter(woGuid); if (frm.ShowDialog() == DialogResult.OK) { gridControl3.DataSource = new WorkOrderDAL().GetRouter(woGuid); } #endregion }
private void RouterSet(object sender, EventArgs e) { if (gridControl2.DataSource == null || gridView2.RowCount < 1) { MsgBox.ShowInfoMsg("当前指令单没有记录!"); return; } string woGuid = gridView2.GetFocusedRowCellValue("guid").ToString(); FmWORouter frm = new FmWORouter(woGuid); if (frm.ShowDialog() == DialogResult.OK) { int modid = Convert.ToInt32(gridView1.GetFocusedDataRow()["modid"]); this.LoadDetails(modid); } }
private void BtnEdit_Click(object sender, EventArgs e) { //string guid = gridView1.GetFocusedRowCellValue("guid").ToString(); //FmWODetail frm = new FmWODetail(guid); //frm.ShowDialog(); #region 修改工序 if (dal.ExistRef(model.Guid)) { throw new Exception("已经生成流转卡,不能修改!"); } FmWORouter frm = new FmWORouter(model.Guid); if (frm.ShowDialog() == DialogResult.OK) { gridControl3.DataSource = dal.GetRouter(model.Guid); } #endregion }