protected void Page_Load(object sender, EventArgs e) { switch (this.DoType) { case "DelSln": //删除sln. FrmField sln = new FrmField(); sln.Delete(FrmFieldAttr.FK_MapData, this.FK_MapData, FrmFieldAttr.KeyOfEn, this.KeyOfEn, FrmFieldAttr.FK_Flow, this.FK_Flow, FrmFieldAttr.FK_Node, this.FK_Node); this.WinClose(); return; case "EditSln": //编辑sln. this.EditSln(); return; case "Copy": //编辑sln. this.Copy(); return; case "CopyIt": //编辑sln. BP.WF.Glo.CopyFrmSlnFromNodeToNode(this.FK_Flow, this.FK_MapData, int.Parse(this.FK_Node), int.Parse(this.Request.QueryString["FromSln"])); this.WinClose(); return; default: break; } }
protected void Page_Load(object sender, EventArgs e) { switch (this.DoType) { case "DelSln": //删除sln. FrmField sln = new FrmField(); sln.Delete(FrmFieldAttr.FK_MapData, this.FK_MapData, FrmFieldAttr.KeyOfEn, this.KeyOfEn, FrmFieldAttr.FK_Flow, this.FK_Flow, FrmFieldAttr.FK_Node, this.FK_Node); this.WinClose(); return; case "EditSln": //编辑sln. this.EditSln(); return; case "Copy": //编辑sln. this.Copy(); return; case "CopyIt": //编辑sln. FrmFields fss = new FrmFields(); fss.Delete(FrmFieldAttr.FK_MapData, this.FK_MapData, FrmFieldAttr.FK_Flow, this.FK_Flow, FrmFieldAttr.FK_Node, this.FK_Node); fss = new FrmFields(this.FK_MapData, int.Parse(this.Request.QueryString["FromSln"])); //fss.Retrieve(FrmFieldAttr.FK_MapData, this.FK_MapData, // FrmFieldAttr.FK_Node, this.Request.QueryString["FromSln"]); foreach (FrmField sl in fss) { sl.FK_Node = int.Parse(this.FK_Node); sl.FK_Flow = this.FK_Flow; sl.MyPK = this.FK_MapData + "_" + this.FK_Flow + "_" + this.FK_Node + "_" + sl.KeyOfEn; sl.Insert(); } this.WinClose(); return; default: break; } }