protected void ProcessDescInfoDeluxeGrid_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow || e.Row.RowType == DataControlRowType.Header) { if (e.Row.RowType == DataControlRowType.DataRow) { if (DateTime.Parse(e.Row.Cells[6].Text) == DateTime.MinValue) { e.Row.Cells[6].Text = string.Empty; } if (DateTime.Parse(e.Row.Cells[7].Text) == DateTime.MinValue) { e.Row.Cells[7].Text = string.Empty; } } e.Row.Cells[8].Visible = WfSimulationSettings.GetConfig().Enabled; } }
protected void Page_Load(object sender, EventArgs e) { this.xapPath.Attributes["value"] = WfRuntimeViewerSettings.GetConfig().DesignerXapUrl; this.enableSimulation.Text = "<param name=\"InitParams\" value=\"enableSimulation=" + WfSimulationSettings.GetConfig().Enabled.ToString() + "\" />"; PropertyEditorRegister(); InitializeTemplate(); //InitializeEnumStore(); if (Request["processid"].IsNotEmpty()) { InitInstanceDescription(Request["processid"]); } else if (Request["processDescKey"].IsNotEmpty()) { InitInstanceByProcessDescKey(Request["processDescKey"]); } }