public void MyDataGrid_Delete(object sender,DataGridCommandEventArgs e) { string StepID = dgStepList.DataKeys[e.Item.ItemIndex].ToString(); UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); df.DeleteStep(FlowID,Int32.Parse(StepID)); df = null; Bind(); }
public void MyDataGrid_Delete(object sender, DataGridCommandEventArgs e) { string StepID = dgStepList.DataKeys[e.Item.ItemIndex].ToString(); UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); df.DeleteStep(FlowID, Int32.Parse(StepID)); df = null; Bind(); }
private void cmdDelete_Click(object sender, System.EventArgs e) { //删除此步 UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); df.DeleteStep(FlowID, StepID); df = null; if (StepID > 1) { StepID -= 1; Server.Transfer("EditTache.aspx?FlowID=" + FlowID.ToString() + "&StepID=" + StepID.ToString()); } else { Server.Transfer("EditFlow.aspx?FlowID=" + FlowID.ToString()); } }
private void cmdDelete_Click(object sender, System.EventArgs e) { //ɾ���˲� UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); df.DeleteStep(FlowID,StepID); df = null; if(StepID>1) { StepID -=1; Server.Transfer("EditTache.aspx?FlowID=" + FlowID.ToString() + "&StepID=" + StepID.ToString()); } else { Server.Transfer("EditFlow.aspx?FlowID=" + FlowID.ToString()); } }