Ejemplo n.º 1
0
 protected void effective_OnClick(object sender, EventArgs e)
 {
     var effectiveManifest = new BLL.Workflows.EffectiveMunkiTemplate().Computer(Computer.Id);
     Response.Write(Encoding.UTF8.GetString(effectiveManifest.ToArray()));
     Response.ContentType = "text/plain";
     Response.End();
 }
Ejemplo n.º 2
0
    protected void effective_OnClick(object sender, EventArgs e)
    {
        var effectiveManifest = new BLL.Workflows.EffectiveMunkiTemplate().Group(Group.Id);

        Response.Write(Encoding.UTF8.GetString(effectiveManifest.ToArray()));
        Response.ContentType = "text/plain";
        Response.End();
    }
Ejemplo n.º 3
0
 protected void btnPreview_OnClick(object sender, EventArgs e)
 {
     var control = sender as Control;
     if (control != null)
     {
         var gvRow = (GridViewRow) control.Parent.Parent;
         var dataKey = gvManifestTemplates.DataKeys[gvRow.RowIndex];
         if (dataKey != null)
         {
             var effectiveManifest = new BLL.Workflows.EffectiveMunkiTemplate().MunkiTemplate(Convert.ToInt32(dataKey.Value));
             Response.Write(Encoding.UTF8.GetString(effectiveManifest.ToArray()));
             Response.ContentType = "text/plain";
             Response.End();
         }
     }
 }
Ejemplo n.º 4
0
    protected void btnPreview_OnClick(object sender, EventArgs e)
    {
        var control = sender as Control;

        if (control != null)
        {
            var gvRow   = (GridViewRow)control.Parent.Parent;
            var dataKey = gvManifestTemplates.DataKeys[gvRow.RowIndex];
            if (dataKey != null)
            {
                var effectiveManifest = new BLL.Workflows.EffectiveMunkiTemplate().MunkiTemplate(Convert.ToInt32(dataKey.Value));
                Response.Write(Encoding.UTF8.GetString(effectiveManifest.ToArray()));
                Response.ContentType = "text/plain";
                Response.End();
            }
        }
    }