Ejemplo n.º 1
0
    public string loadForm(string branchTypeId, string branchId, string status)
    {
        string result = ""; int i = 1;
        var    m      = db.sp_web_loadExportMaterial(branchTypeId.Trim(), branchId.Trim(), status.Trim());
        var    userId = Session["cm_userId"].ToString();

        foreach (var item in m.ToList())
        {
            result += "<tr data-toggle='modal' data-target='#addDept' class='detail-rows' onclick ='update_modal(\"" + item.Id.ToString() + "\",\"" + item.BranchTypeId.ToString() + "\",\"" + item.BranchId + "\",\"" + item.FormId.ToString() + "\",\"" + item.Description + "\");' id ='delete" + item.Id.ToString() + "' title='Click để xem chi tiết'>";
            result += "<td class='center'>" + i.ToString() + "</td>";
            result += "<td>" + item.BranchName + "</td>";
            result += "<td>" + item.CreateAt + "</td>";
            result += "<td>" + item.FullName + "</td>";
            result += "<td>" + item.ExportCode + "</td>";
            result += "<td>" + item.DesignName + "</td>";
            result += "<td>" + item.Name + " - " + item.Code + "</td>";
            result += "<td>" + item.Description + "</td>";
            result += "</tr>";
            i++;
        }
        return(result);
    }