public override void Execute() { #line 3 "..\..\Views\Feedback\Create.cshtml" using (Ajax.BeginForm("create", "feedback", new { area = "" }, new AjaxOptions { HttpMethod = "POST", OnSuccess = "resetForm(data)", OnFailure = "onFailure(xhr,status,error,'#ajaxresult','#submitFeedback')", OnBegin = "onBegin(xhr, '#ajaxresult','#submitFeedback')", OnComplete = "onComplete" }, new { @class = "contact-form well", id = "contactForm" })) { #line default #line hidden #line 12 "..\..\Views\Feedback\Create.cshtml" Write(Html.Partial("_contactform")); #line default #line hidden #line 12 "..\..\Views\Feedback\Create.cshtml" } #line default #line hidden WriteLiteral("<script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(">\r\n function resetForm(data) {\r\n var form = $(\'#feedbackForm\');\r\n " + " if (form.length > 0) {\r\n $(form).load(\'"); #line 18 "..\..\Views\Feedback\Create.cshtml" Write(Url.Action("create", "feedback", new { area = "" })); #line default #line hidden WriteLiteral(@"', function () { $(""#contactForm"").each(function () { $.data($(this)[0], 'validator', false); }); $.validator.unobtrusive.parse(""#contactForm""); }); } onSuccess(data, '#feedbacklist', '#ajaxresult', '', '#submitFeedback'); } </script> "); }
public override void Execute() { WriteLiteral("\r\n"); WriteLiteral("<div"); WriteLiteral(" class=\"col-md-6\""); WriteAttribute("id", Tuple.Create(" id=\"", 73), Tuple.Create("\"", 92) , Tuple.Create(Tuple.Create("", 78), Tuple.Create("user-", 78), true) #line 3 "..\..\Views\User\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 83), Tuple.Create <System.Object, System.Int32>(Model.Id #line default #line hidden , 83), false) ); WriteLiteral(">\r\n"); #line 4 "..\..\Views\User\_Edit.cshtml" #line default #line hidden #line 4 "..\..\Views\User\_Edit.cshtml" using (Ajax.BeginForm(MVC.User.Edit(), new AjaxOptions { HttpMethod = "POST", OnComplete = "editOnComplete(xhr, status, '" + Model.Id + "','#editButton" + Model.Id + "')" }, new { @class = "form-horizontal", id = Model.Id, autocomplete = "off", data_ajax_update = "user-" + Model.Id })) { #line default #line hidden #line 6 "..\..\Views\User\_Edit.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 6 "..\..\Views\User\_Edit.cshtml" #line default #line hidden #line 7 "..\..\Views\User\_Edit.cshtml" Write(Html.HiddenFor(a => a.Id)); #line default #line hidden #line 7 "..\..\Views\User\_Edit.cshtml" #line default #line hidden #line 8 "..\..\Views\User\_Edit.cshtml" Write(Html.HiddenFor(a => a.RowVersion)); #line default #line hidden #line 8 "..\..\Views\User\_Edit.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"panel panel-default\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"panel-heading\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 12 "..\..\Views\User\_Edit.cshtml" Write(Html.LabelFor(m => m.UserName, new { @class = "col-md-3 control-label" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-8\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 14 "..\..\Views\User\_Edit.cshtml" Write(Html.NoAutoCompleteTextBoxForLtr(m => m.UserName)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 15 "..\..\Views\User\_Edit.cshtml" Write(Html.ValidationMessageFor(m => m.UserName, "", new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n " + " <div"); WriteLiteral(" class=\"panel-body\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 22 "..\..\Views\User\_Edit.cshtml" Write(Html.LabelFor(m => m.DisplayName, new { @class = "col-md-3 control-label" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-8\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 24 "..\..\Views\User\_Edit.cshtml" Write(Html.NoAutoCompleteTextBoxFor(m => m.DisplayName)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 25 "..\..\Views\User\_Edit.cshtml" Write(Html.ValidationMessageFor(m => m.DisplayName, "", new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n " + " <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 29 "..\..\Views\User\_Edit.cshtml" Write(Html.LabelFor(m => m.Password, new { @class = "col-md-3 control-label" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-8\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 31 "..\..\Views\User\_Edit.cshtml" Write(Html.FormControlPasswordFor(m => m.Password)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 32 "..\..\Views\User\_Edit.cshtml" Write(Html.ValidationMessageFor(m => m.Password, "", new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n " + " <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 36 "..\..\Views\User\_Edit.cshtml" Write(Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-3 control-label" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-8\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 38 "..\..\Views\User\_Edit.cshtml" Write(Html.FormControlPasswordFor(m => m.ConfirmPassword)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 39 "..\..\Views\User\_Edit.cshtml" Write(Html.ValidationMessageFor(m => m.ConfirmPassword, "", new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n " + " <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 43 "..\..\Views\User\_Edit.cshtml" Write(Html.LabelFor(model => Model.RoleId, new { @class = "control-label col-md-3" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-8\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 45 "..\..\Views\User\_Edit.cshtml" Write(Html.DropDownListFor(model => model.RoleId, Model.Roles, "انتخاب گروه کاربری", new { @class = "form-control" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 46 "..\..\Views\User\_Edit.cshtml" Write(Html.ValidationMessageFor(model => model.RoleId, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n </d" + "iv>\r\n </div>\r\n <div"); WriteLiteral(" class=\"panel-footer block\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"pull-left\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" id=\"@*@($\"editButton{Model.Id}\")*@\""); WriteLiteral(" autocomplete=\"off\""); WriteAttribute("onclick", Tuple.Create(" onclick=\"", 3187), Tuple.Create("\"", 3237) , Tuple.Create(Tuple.Create("", 3197), Tuple.Create("AjaxForm.CustomSubmit(this,", 3197), true) , Tuple.Create(Tuple.Create(" ", 3224), Tuple.Create("\'", 3225), true) #line 53 "..\..\Views\User\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 3226), Tuple.Create <System.Object, System.Int32>(Model.Id #line default #line hidden , 3226), false) , Tuple.Create(Tuple.Create("", 3235), Tuple.Create("\')", 3235), true) ); WriteLiteral(" data-loading-text=\"در حال ارسال اطلاعات\""); WriteLiteral(" class=\"btn btn-success btn-sm\""); WriteLiteral(">\r\n <i"); WriteLiteral(" class=\"fa fa-check-square-o\""); WriteLiteral("></i>\r\n ذخیره تغییرات\r\n </button>\r\n " + " <a"); WriteLiteral(" class=\"btn btn-default btn-sm\""); WriteLiteral(" data-ajax=\"true\""); WriteLiteral("\r\n data-ajax-mode=\"REPLACE-WITH\""); WriteLiteral(" data-ajax-complete=\"cancelEditOnComplete(xhr, status)\""); WriteLiteral("\r\n data-ajax-update=\"#user-"); #line 59 "..\..\Views\User\_Edit.cshtml" Write(Model.Id); #line default #line hidden WriteLiteral("\""); WriteLiteral(" data-ajax-method=\"POST\""); WriteAttribute("href", Tuple.Create("\r\n href=\"", 3707), Tuple.Create("\"", 3780) #line 60 "..\..\Views\User\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 3738), Tuple.Create <System.Object, System.Int32>(Url.Action(MVC.User.CancelEdit(Model.Id)) #line default #line hidden , 3738), false) ); WriteLiteral(" role=\"button\""); WriteLiteral(">\r\n <i"); WriteLiteral(" class=\"fa fa-arrow-right\""); WriteLiteral("></i>\r\n انصراف\r\n </a>\r\n " + "</div>\r\n <div"); WriteLiteral(" class=\"clearfix\""); WriteLiteral("></div>\r\n </div>\r\n </div>\r\n"); #line 68 "..\..\Views\User\_Edit.cshtml" } #line default #line hidden WriteLiteral("</div>\r\n"); }
public override void Execute() { WriteLiteral("\r\n"); WriteLiteral("<div"); WriteLiteral(" class=\"modal-dialog modal-lg\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"modal-content \""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"modal-header alert alert-success\""); WriteLiteral(">\r\n <h5"); WriteLiteral(" class=\"modal-title\""); WriteLiteral(">درج سابقه کاری</h5>\r\n </div>\r\n <div"); WriteLiteral(" class=\"modal-body\""); WriteLiteral(">\r\n"); #line 10 "..\..\Views\WorkExperience\_Create.cshtml" #line default #line hidden #line 10 "..\..\Views\WorkExperience\_Create.cshtml" using (Ajax.BeginForm(MVC.WorkExperience.Create(), new AjaxOptions { HttpMethod = "POST", OnComplete = "createOnComplete(xhr, status, 'workExperienceList', '#modal','createWorkExperienceForm','#createWorkExperienceButton')" }, new { @class = "form-horizontal", id = "createWorkExperienceForm", autocomplete = "off" })) { #line default #line hidden #line 12 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 12 "..\..\Views\WorkExperience\_Create.cshtml" #line default #line hidden #line 13 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.HiddenFor(model => model.ApplicantId)); #line default #line hidden #line 13 "..\..\Views\WorkExperience\_Create.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 17 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.LabelFor(model => model.OfficeName, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-10\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 19 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.NoAutoCompleteTextBoxFor(model => model.OfficeName)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 20 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.OfficeName, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 23 "..\..\Views\WorkExperience\_Create.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 25 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.LabelFor(model => model.ClosedProjectCount, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-10\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 27 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.NoAutoCompleteTextBoxForNumber(model => model.ClosedProjectCount)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 28 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.ClosedProjectCount, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 31 "..\..\Views\WorkExperience\_Create.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 33 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.LabelFor(model => model.OpenProjectCount, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-10\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 35 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.NoAutoCompleteTextBoxForNumber(model => model.OpenProjectCount)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 36 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.OpenProjectCount, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 39 "..\..\Views\WorkExperience\_Create.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 41 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.LabelFor(model => model.ReferentialProjectCount, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-10\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 43 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.NoAutoCompleteTextBoxForNumber(model => model.ReferentialProjectCount)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 44 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.ReferentialProjectCount, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 47 "..\..\Views\WorkExperience\_Create.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 50 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.LabelFor(model => model.TenureBeginDate, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-4\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 52 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.EditorFor(model => model.TenureBeginDate, MVC.Shared.Views.EditorTemplates.PersianDatePicker)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 53 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.TenureBeginDate, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n"); WriteLiteral(" "); #line 55 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.LabelFor(model => model.TenureEndDate, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-4\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 57 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.EditorFor(model => model.TenureEndDate, MVC.Shared.Views.EditorTemplates.PersianDatePicker)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 58 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.TenureEndDate, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 61 "..\..\Views\WorkExperience\_Create.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 63 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.LabelFor(model => model.CooperationType, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-4\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 65 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.EditorFor(model => model.CooperationType)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 66 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.CooperationType, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n\r\n"); WriteLiteral(" "); #line 69 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.LabelFor(model => model.TitleId, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-4\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 71 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.DropDownListFor(model => model.TitleId, Model.Titles, "انتخاب عنوان", new { @class = "form-control", rows = 2 })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 72 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.TitleId, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n\r\n </div>\r\n </div>\r\n"); #line 76 "..\..\Views\WorkExperience\_Create.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 78 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.LabelFor(model => Model.State, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-4\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 80 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.DropDownListFor(model => model.State, Model.States, "انتخاب استان", new { data_url = Url.Action(MVC.City.GetCities()), data_tofill = "City", data_lable = "انتخاب شهر", data_selects = "City", @class = "form-control cascade", })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 88 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.State, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n"); WriteLiteral(" "); #line 90 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.LabelFor(model => model.City, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-4\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 92 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.DropDownListFor(model => model.City, Model.Cities, "انتخاب شهر", new { @class = "form-control", rows = 2 })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 93 "..\..\Views\WorkExperience\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.City, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 96 "..\..\Views\WorkExperience\_Create.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"col-md-6 col-md-offset-2\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" id=\"createWorkExperienceButton\""); WriteLiteral(" autocomplete=\"off\""); WriteLiteral(" onclick=\"AjaxForm.CustomSubmit(this, \'createWorkExperienceForm\')\""); WriteLiteral(" data-loading-text=\"در حال ارسال اطلاعات\""); WriteLiteral(" class=\"btn btn-success btn-sm\""); WriteLiteral(">\r\n ثبت سابقه کاری\r\n </button>\r" + "\n <button"); WriteLiteral(" class=\"btn btn-default btn-sm\""); WriteLiteral(" data-dismiss=\"modal\""); WriteLiteral(" aria-hidden=\"true\""); WriteLiteral(">\r\n انصراف\r\n </button>\r\n " + " </div>\r\n </div>\r\n"); #line 108 "..\..\Views\WorkExperience\_Create.cshtml" } #line default #line hidden WriteLiteral(" </div>\r\n </div>\r\n</div>\r\n"); }
public override void Execute() { #line 1 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Layout = null; #line default #line hidden WriteLiteral("\r\n\r\n"); #line 10 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Scripts.Render("~/bundles/saos")); #line default #line hidden WriteLiteral("\r\n"); #line 11 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Scripts.Render("~/bundles/ajaxAsync")); #line default #line hidden WriteLiteral("\r\n"); #line 12 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Scripts.Render("~/bundles/validate")); #line default #line hidden WriteLiteral("\r\n"); #line 13 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Styles.Render("~/appcss")); #line default #line hidden WriteLiteral("\r\n<style"); WriteLiteral(" type=\"text/css\""); WriteLiteral(">\r\n .form-horizontal .form-label {\r\n text-align: right;\r\n }\r\n</style" + ">\r\n<article"); WriteLiteral(" class=\"page-container\""); WriteLiteral(">\r\n"); #line 20 "..\..\Areas\manage\Views\Teacher\Add.cshtml" #line default #line hidden #line 20 "..\..\Areas\manage\Views\Teacher\Add.cshtml" using (Ajax.BeginForm("Add", "Teacher", new { }, new AjaxOptions() { HttpMethod = "Post", OnSuccess = "formSuccess(data)", OnBegin = "disSubmit('sub_btn')", OnComplete = "enSubmit('sub_btn')" }, new { id = "", @class = "form form-horizontal" })) { #line default #line hidden #line 22 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 22 "..\..\Areas\manage\Views\Teacher\Add.cshtml" #line default #line hidden #line 23 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Html.HiddenFor(m => m.Id, new { @Value = 0 })); #line default #line hidden #line 23 "..\..\Areas\manage\Views\Teacher\Add.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>证书类别:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"radio-list\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"radio-inline\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 29 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Html.RadioButtonFor(m => m.Category, CertificateType.Prize, new { id = "", @checked = "checked" })); #line default #line hidden WriteLiteral("获奖证书\r\n </label>\r\n <label"); WriteLiteral(" class=\"radio-inline\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 32 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Html.RadioButtonFor(m => m.Category, CertificateType.Train, new { id = "" })); #line default #line hidden WriteLiteral("师资认证\r\n </label>\r\n </div>\r\n </div>\r\n " + " </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>证书编号:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 40 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Html.TextBoxFor(m => m.Number, new { placeholder = "请输入证书编号", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 41 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Html.ValidationMessageFor(m => m.Number, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>教师姓名:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 47 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Html.TextBoxFor(m => m.TeacherName, new { placeholder = "请输入教师姓名", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 48 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Html.ValidationMessageFor(m => m.TeacherName, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 51 "..\..\Areas\manage\Views\Teacher\Add.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>性别:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"radio-list\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"radio-inline\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 57 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Html.RadioButtonFor(m => m.Gender, Gender.Female, new { id = "", @checked = "checked" })); #line default #line hidden WriteLiteral("女\r\n </label>\r\n <label"); WriteLiteral(" class=\"radio-inline\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 60 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Html.RadioButtonFor(m => m.Gender, Gender.Male, new { id = "" })); #line default #line hidden WriteLiteral("男\r\n </label>\r\n </div>\r\n </div>\r\n " + " </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>所在地区:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n <input"); WriteLiteral(" type=\"hidden\""); WriteLiteral(" name=\"Province\""); WriteAttribute("value", Tuple.Create(" value=\"", 3107), Tuple.Create("\"", 3141) #line 68 "..\..\Areas\manage\Views\Teacher\Add.cshtml" , Tuple.Create(Tuple.Create("", 3115), Tuple.Create <System.Object, System.Int32>(Constant.DEFAULT_PROVINCE #line default #line hidden , 3115), false) ); WriteLiteral(" />\r\n <select"); WriteLiteral(" class=\"select select-box inline\""); WriteLiteral(" disabled"); WriteLiteral(" style=\"width:45%;background:#eee\""); WriteLiteral(">\r\n"); #line 70 "..\..\Areas\manage\Views\Teacher\Add.cshtml" #line default #line hidden #line 70 "..\..\Areas\manage\Views\Teacher\Add.cshtml" foreach (KeyValuePair <int, string> item in ViewBag.AreaProvince) { #line default #line hidden WriteLiteral(" <option"); WriteAttribute("value", Tuple.Create(" value=\"", 3390), Tuple.Create("\"", 3407) #line 72 "..\..\Areas\manage\Views\Teacher\Add.cshtml" , Tuple.Create(Tuple.Create("", 3398), Tuple.Create <System.Object, System.Int32>(item.Key #line default #line hidden , 3398), false) ); WriteLiteral(">"); #line 72 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(item.Value); #line default #line hidden WriteLiteral("</option>\r\n"); #line 73 "..\..\Areas\manage\Views\Teacher\Add.cshtml" } #line default #line hidden WriteLiteral(" </select>\r\n <select"); WriteLiteral(" name=\"City\""); WriteLiteral(" class=\"select select-box inline float-right\""); WriteLiteral(" style=\"width:50%\""); WriteLiteral(">\r\n"); #line 76 "..\..\Areas\manage\Views\Teacher\Add.cshtml" #line default #line hidden #line 76 "..\..\Areas\manage\Views\Teacher\Add.cshtml" foreach (KeyValuePair <int, string> item in ViewBag.AreaCity) { #line default #line hidden WriteLiteral(" <option"); WriteAttribute("value", Tuple.Create(" value=\"", 3716), Tuple.Create("\"", 3733) #line 78 "..\..\Areas\manage\Views\Teacher\Add.cshtml" , Tuple.Create(Tuple.Create("", 3724), Tuple.Create <System.Object, System.Int32>(item.Key #line default #line hidden , 3724), false) ); WriteLiteral(">"); #line 78 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(item.Value); #line default #line hidden WriteLiteral("</option>\r\n"); #line 79 "..\..\Areas\manage\Views\Teacher\Add.cshtml" } #line default #line hidden WriteLiteral(" </select>\r\n\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral(">教师级别:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"radio-list\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"radio-inline\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 89 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Html.RadioButtonFor(m => m.Level, LevelType.General, new { id = "", @checked = "checked" })); #line default #line hidden #line 89 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(LevelType.General.GetDescription()); #line default #line hidden WriteLiteral("\r\n </label>\r\n <label"); WriteLiteral(" class=\"radio-inline\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 92 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Html.RadioButtonFor(m => m.Level, LevelType.Senior, new { id = "" })); #line default #line hidden #line 92 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(LevelType.Senior.GetDescription()); #line default #line hidden WriteLiteral("\r\n </label>\r\n <label"); WriteLiteral(" class=\"radio-inline\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 95 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(Html.RadioButtonFor(m => m.Level, LevelType.Super, new { id = "" })); #line default #line hidden #line 95 "..\..\Areas\manage\Views\Teacher\Add.cshtml" Write(LevelType.Super.GetDescription()); #line default #line hidden WriteLiteral("\r\n </label>\r\n </div>\r\n </div>\r\n " + " </div>\r\n"); #line 100 "..\..\Areas\manage\Views\Teacher\Add.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral(">状态:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n <select"); WriteLiteral(" class=\"select select-box\""); WriteLiteral(" name=\"State\""); WriteLiteral(">\r\n <option"); WriteAttribute("value", Tuple.Create(" value=\"", 4974), Tuple.Create("\"", 5008) #line 105 "..\..\Areas\manage\Views\Teacher\Add.cshtml" , Tuple.Create(Tuple.Create("", 4982), Tuple.Create <System.Object, System.Int32>((int)PublishState.Lower #line default #line hidden , 4982), false) ); WriteLiteral(">下架</option>\r\n <option"); WriteAttribute("value", Tuple.Create(" value=\"", 5050), Tuple.Create("\"", 5084) #line 106 "..\..\Areas\manage\Views\Teacher\Add.cshtml" , Tuple.Create(Tuple.Create("", 5058), Tuple.Create <System.Object, System.Int32>((int)PublishState.Upper #line default #line hidden , 5058), false) ); WriteLiteral(">上架</option>\r\n\r\n </select>\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"btn_submit\""); WriteLiteral(" class=\"col-xs-6 col-xs-offset-3 col-sm-offset-2 mt-10\""); WriteLiteral(">\r\n\r\n <button"); WriteLiteral(" class=\"btn btn-primary radius\""); WriteLiteral(" type=\"submit\""); WriteLiteral(" id=\"sub_btn\""); WriteLiteral(">保存</button>\r\n <input"); WriteLiteral(" name=\"\""); WriteLiteral(" type=\"button\""); WriteLiteral(" onclick=\"layer_close();\""); WriteLiteral(" class=\"btn btn-default radius \""); WriteLiteral(" value=\"取消\""); WriteLiteral(">\r\n </div>\r\n </div>\r\n"); #line 118 "..\..\Areas\manage\Views\Teacher\Add.cshtml" } #line default #line hidden WriteLiteral("</article>\r\n\r\n<script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(@"> function formSuccess(result) { if (result != null) { if (result.isSuccess) { var index = parent.layer.getFrameIndex(window.name); layer.alert('保存成功!', { icon: 6, closeBtn: 0, yes: function () { if (parent[1] != null) { parent[pageIndex()].table1.ajax.reload(); } else { parent.table1.ajax.reload(); } parent.layer.close(index); } }); } else layer.alert('保存失败!', { icon: 5 });//icon:6为开心图 } else layer.alert('保存失败!', { icon: 5 });//icon:6为开心图 } </script>"); }
public override void Execute() { WriteLiteral("\r\n<div"); WriteLiteral(" class=\"modal fade animate-modal\""); WriteAttribute("id", Tuple.Create(" id=\"", 39), Tuple.Create("\"", 59) #line 2 "..\..\Views\Shared\_ModalAnimate.cshtml" , Tuple.Create(Tuple.Create("", 44), Tuple.Create <System.Object, System.Int32>(ViewData["Id"] #line default #line hidden , 44), false) ); WriteLiteral(" tabindex=\"-1\""); WriteLiteral(" role=\"dialog\""); WriteLiteral(" aria-labelledby=\"lblAnimateModalDesc\""); WriteLiteral(" aria-hidden=\"true\""); WriteLiteral(" data-backdrop=\"static\""); WriteLiteral(" data-keyboard=\"false\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"modal-dialog modal-sm\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"modal-content\""); WriteLiteral(">\r\n"); #line 5 "..\..\Views\Shared\_ModalAnimate.cshtml" #line default #line hidden #line 5 "..\..\Views\Shared\_ModalAnimate.cshtml" using (Ajax.BeginForm(ViewData["Action"].ToString(), ViewData["Controller"].ToString(), null, new AjaxOptions { OnBegin = "dialogAnimation.begin", OnSuccess = "dialogAnimation.success", OnFailure = "dialogAnimation.error" }, new { autocomplete = "off" })) { #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"modal-header\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" class=\"btn-rounded btn-small btn-dismiss right\""); WriteLiteral(" data-dismiss=\"modal\""); WriteLiteral(" aria-hidden=\"true\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-sm icon-cancel\""); WriteLiteral("></span>\r\n </button>\r\n <h4"); WriteLiteral(" class=\"modal-title\""); WriteLiteral(" id=\"lblAnimateModalDesc\""); WriteLiteral(">"); #line 16 "..\..\Views\Shared\_ModalAnimate.cshtml" Write(ViewData["Desc"]); #line default #line hidden WriteLiteral("</h4>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"modal-body\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"col-xs-1\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" class=\"btn-rounded btn-small btn-turquoise btn-anim-modal-prev disabled\""); WriteLiteral(" tabindex=\"-1\""); WriteLiteral(" title=\"Poprzedni\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-sm icon-left\""); WriteLiteral("></span>\r\n </button>\r\n </div>\r\n" + " <div"); WriteLiteral(" class=\"col-xs-10\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"modal-body-content\""); WriteLiteral(">\r\n "); WriteLiteral("\r\n </div>\r\n </div>\r\n " + " <div"); WriteLiteral(" class=\"col-xs-1\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" class=\"btn-rounded btn-small btn-turquoise btn-anim-modal-next disabled\""); WriteLiteral(" tabindex=\"-1\""); WriteLiteral(" title=\"Następny\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-sm icon-right\""); WriteLiteral("></span>\r\n </button>\r\n </div>\r\n" + " </div>\r\n <div"); WriteLiteral(" class=\"row text-center\""); WriteLiteral(">\r\n <hr"); WriteLiteral(" class=\"separator\""); WriteLiteral(" />\r\n <div"); WriteLiteral(" class=\"col-xs-10 col-xs-offset-1\""); WriteLiteral(">\r\n <ol"); WriteLiteral(" class=\"items-indicators\""); WriteLiteral(" tabindex=\"-1\""); WriteLiteral("></ol>\r\n </div>\r\n <div"); WriteLiteral(" class=\"col-xs-1\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" class=\"btn-rounded btn-small btn-turquoise btn-anim-modal-del-last\""); WriteLiteral(" tabindex=\"-1\""); WriteLiteral(" title=\"Usuń\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-sm icon-trash\""); WriteLiteral("></span>\r\n </button>\r\n </div>\r\n" + " </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"modal-footer\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"submit\""); WriteLiteral(" class=\"btn-rounded btn-turquoise disabled\""); WriteLiteral(" title=\"Zapisz\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-lg icon-save\""); WriteLiteral("></span>\r\n </button>\r\n </div>\r\n"); #line 53 "..\..\Views\Shared\_ModalAnimate.cshtml" } #line default #line hidden WriteLiteral(" </div>\r\n </div>\r\n</div>"); }
public override void Execute() { #line 1 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" Layout = null; #line default #line hidden WriteLiteral("\r\n\r\n"); #line 10 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" Write(Scripts.Render("~/bundles/saos")); #line default #line hidden WriteLiteral("\r\n"); #line 11 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" Write(Scripts.Render("~/bundles/ajaxAsync")); #line default #line hidden WriteLiteral("\r\n"); #line 12 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" Write(Scripts.Render("~/bundles/validate")); #line default #line hidden WriteLiteral("\r\n"); #line 13 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" Write(Styles.Render("~/appcss")); #line default #line hidden WriteLiteral("\r\n<script"); WriteAttribute("src", Tuple.Create(" src=\"", 274), Tuple.Create("\"", 330) , Tuple.Create(Tuple.Create("", 280), Tuple.Create <System.Object, System.Int32>(Href("~/Content/lib/webuploader/0.1.5/webuploader.min.js") , 280), false) ); WriteLiteral(" type=\"text/javascript\""); WriteLiteral("></script>\r\n<style"); WriteLiteral(" type=\"text/css\""); WriteLiteral(">\r\n .form-horizontal .form-label {\r\n text-align: right;\r\n }\r\n</style" + ">\r\n\r\n<article"); WriteLiteral(" class=\"page-container\""); WriteLiteral(">\r\n"); #line 22 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" #line default #line hidden #line 22 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" using (Ajax.BeginForm("EditRotation", "Home", new { }, new AjaxOptions() { HttpMethod = "Post", OnSuccess = "formSuccess(data)", OnBegin = "disSubmit('sub_btn')", OnComplete = "enSubmit('sub_btn')" }, new { id = "", @class = "form form-horizontal" })) { #line default #line hidden #line 24 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 24 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" #line default #line hidden #line 25 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" Write(Html.HiddenFor(m => m.Id)); #line default #line hidden #line 25 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" #line default #line hidden #line 26 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" Write(Html.HiddenFor(m => m.RotationType)); #line default #line hidden #line 26 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>轮播图片:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-8 \""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(" "); #line 31 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" Write(string.IsNullOrEmpty(Model.HeadImg) ? "" : "style=position:relative"); #line default #line hidden WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"upfileImg\""); WriteAttribute("class", Tuple.Create(" class=\"", 1216), Tuple.Create("\"", 1290) , Tuple.Create(Tuple.Create("", 1224), Tuple.Create("up-img-left", 1224), true) #line 32 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" , Tuple.Create(Tuple.Create(" ", 1235), Tuple.Create <System.Object, System.Int32>(string.IsNullOrEmpty(Model.HeadImg) ?"":"up-imgBtn" #line default #line hidden , 1236), false) ); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 33 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" Write(string.IsNullOrEmpty(Model.HeadImg) ? "上传图片" : "更改图片"); #line default #line hidden WriteLiteral("\r\n </div>\r\n <span"); WriteAttribute("class", Tuple.Create(" class=\"", 1429), Tuple.Create("\"", 1517) , Tuple.Create(Tuple.Create("", 1437), Tuple.Create("help-block", 1437), true) , Tuple.Create(Tuple.Create(" ", 1447), Tuple.Create("help-tip", 1448), true) , Tuple.Create(Tuple.Create(" ", 1456), Tuple.Create("help-img", 1457), true) #line 35 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" , Tuple.Create(Tuple.Create(" ", 1465), Tuple.Create <System.Object, System.Int32>(string.IsNullOrEmpty(Model.HeadImg) ?"":"hidden" #line default #line hidden , 1466), false) ); WriteLiteral(" style=\"top:8px;position:absolute\""); WriteLiteral(">请上传jpg、jpeg、gif、bmp、png等图片类型的文件</span>\r\n <div"); WriteLiteral(" class=\"formControls\""); WriteLiteral(">\r\n <ul"); WriteLiteral(" id=\"imglist\""); WriteLiteral(" class=\"\""); WriteLiteral(">\r\n <li>\r\n"); #line 39 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" #line default #line hidden #line 39 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" if (!string.IsNullOrEmpty(Model.SmallHeadImg)) { #line default #line hidden WriteLiteral(" <img"); WriteAttribute("src", Tuple.Create(" src=\"", 1883), Tuple.Create("\"", 1908) #line 41 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" , Tuple.Create(Tuple.Create("", 1889), Tuple.Create <System.Object, System.Int32>(Model.SmallHeadImg #line default #line hidden , 1889), false) ); WriteLiteral(" style=\"max-width:125px\""); WriteLiteral(" onerror=\'nofind()\'"); WriteLiteral(" />\r\n"); #line 42 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" } #line default #line hidden WriteLiteral(" </li>\r\n </ul>\r\n " + " <input"); WriteLiteral(" type=\"hidden\""); WriteLiteral(" id=\"loc_temp_img\""); WriteLiteral(" />\r\n </div>\r\n </div>\r\n"); WriteLiteral(" "); #line 48 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" Write(Html.ValidationMessageFor(m => m.HeadImg, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 49 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" Write(Html.TextBoxFor(m => m.HeadImg, new { id = "memberFileImg", @class = "hide-area input-text" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>链接地址:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-8 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 55 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" Write(Html.TextAreaFor(m => m.WebLink, new { @class = "textarea", rows = "3", placeholder = "请输入链接地址..." })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 56 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" Write(Html.ValidationMessageFor(m => m.WebLink, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"btn_submit\""); WriteLiteral(" class=\"col-xs-6 col-xs-offset-3 col-sm-offset-2 mt-10\""); WriteLiteral(">\r\n <button"); WriteLiteral(" class=\"btn btn-primary radius\""); WriteLiteral(" type=\"submit\""); WriteLiteral(" id=\"sub_btn\""); WriteLiteral(">保存</button>\r\n <input"); WriteLiteral(" name=\"\""); WriteLiteral(" type=\"button\""); WriteLiteral(" onclick=\"layer_close();\""); WriteLiteral(" class=\"btn btn-default radius \""); WriteLiteral(" value=\"取消\""); WriteLiteral(">\r\n </div>\r\n </div>\r\n"); #line 65 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" } #line default #line hidden WriteLiteral("</article>\r\n\r\n<script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(@"> function formSuccess(result) { if (result != null) { if (result.isSuccess) { var index = parent.layer.getFrameIndex(window.name); layer.alert('保存成功!', { icon: 6, closeBtn: 0, yes: function () { if (parent[1] != null) { parent[pageIndex()].table1.ajax.reload(); } else { parent.table1.ajax.reload(); } parent.layer.close(index); } }); } else layer.alert('保存失败!', { icon: 5 });//icon:6为开心图 } else layer.alert('保存失败!', { icon: 5 });//icon:6为开心图 } </script> <script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(@"> var maxcount = 8; //上传参数 var jq_imgFormData = { BidFileDomain: ' ', uploadQueryData: { Suffix: 1 } }; if (!WebUploader.Uploader.support()) { $("".FJsp2"").html(""说明:当前浏览器不支持附件上传""); $(""#upfileImg"").hide(); //alert( 'Web Uploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器'); alert(""当前浏览器不支持附件上传,如果你使用的是IE浏览器,请尝试升级 flash 播放器""); throw new Error('WebUploader does not support the browser you are using.'); } var BASE_URL = ""/content/webuploader-0.1.5""; var file_ids = []; //已上传文件的路径 var file_info = []; //记录文件的GUID和存储路径 var isfilesuping = false; // 文件上传 jQuery(function () { var id = ""upfileImg""; var $ = jQuery, state = 'pending', $probar = $(""#"" + id).siblings(""div"").find("".pros""), uploader; uploader = WebUploader.create({ // 不压缩image resize: false, //发送后台时参数 formData: jq_imgFormData.uploadQueryData, fileVal: jq_imgFormData.BidFileDomain, method: ""POST"", //是否分块(大文件上传) chunked: true, //设置文件上传域名称 fileVal: 'file', //每块最大限制(默认5M 因为是.net 所以设置2M) chunkSize: 2097152, // swf文件路径 swf: BASE_URL + '/Uploader.swf', // 文件接收服务端。 server: jq_imgFormData.BidFileDomain + '"); #line 130 "..\..\Areas\manage\Views\Home\EditRotation.cshtml" Write(Url.Action("Upload", "Upload")); #line default #line hidden WriteLiteral("\',\r\n //创建选择文件按钮\r\n pick: { id: \"#\" + id, innerHTML: \"\", mult" + "iple: false },\r\n //选择文件自动上传\r\n auto: true,\r\n //a" + "ccept:{title:\"只能上传rar,zip文件\",extensions :\'rar,zip\',mimeTypes:\'application/x-zip-" + "compressed\'},\r\n fileNumLimit: maxcount\r\n });\r\n\r\n //文件大小" + "限制,超过则不加入队列\r\n uploader.on(\'beforeFileQueued\', function (file, han, msg) {" + "\r\n var xzlist = (\"jpg,jpeg,gif,bmp,png\").split(\",\");\r\n var" + " filenamelist = file.name.split(\'.\');\r\n var filehz = filenamelist[fil" + "enamelist.length - 1];\r\n\r\n if (xzlist.indexOf(filehz) < 0) {\r\n " + " layer.alert(\"请上传指定类型格式的文件\", 0);\r\n return false;\r\n " + " }\r\n\r\n if (file.size > (1024 * 1024 * 10)) {\r\n lay" + "er.alert(\"图片大小不可超过5M\", 0);\r\n return false;\r\n }\r\n\r\n " + " var filelen = $(\"#imglist>li\").length;\r\n if (filelen >= maxco" + "unt) {\r\n layer.alert(\"超出最大上传数量\", 0);\r\n return fals" + "e;\r\n }\r\n });\r\n //某个文件开始上传前触发,一个文件只会触发一次。\r\n uploa" + "der.on(\'uploadStart\', function (file) {\r\n uploader.options.formData.g" + "uid = WebUploader.Base.guid();\r\n });\r\n // 当有文件添加进来的时候\r\n upl" + "oader.on(\'fileQueued\', function (file) {\r\n $(\".help-img\").hide();\r\n " + " $(\".yangli\").hide()\r\n $(\".yulan\").show();\r\n uplo" + "ader.makeThumb(file, function (error, ret) {\r\n var file_list = []" + ";\r\n file_list.push(\"<li id=\'\" + file.id + \"\'>\");\r\n " + " file_list.push(\"<img src=\'\" + ret + \"\'/>\");\r\n file_list.push(\"<d" + "iv class=\'percent_small\'>\");\r\n file_list.push(\"<div class=\'per_pi" + "c2\'>\");\r\n file_list.push(\"<div class=\'change_per2\' style=\'width:1" + "%\'></div>\");\r\n file_list.push(\"</div>\");\r\n file_li" + "st.push(\"<span class=\'showtitle\'>正准备上传…</span></div>\");\r\n file_li" + "st.push(\"</div></li>\");\r\n $(\"#imglist\").empty().append(file_list." + "join(\'\'));\r\n });\r\n });\r\n //重置\r\n uploader.on(\'res" + "et\', function (file) {\r\n\r\n });\r\n // 文件上传过程中创建进度条实时显示。\r\n upl" + "oader.on(\'uploadProgress\', function (file, percentage) {\r\n var jd = p" + "arseInt(percentage * 100);\r\n if (jd > 1) {\r\n $(\"#\" + f" + "ile.id).find(\".change_per2\").css(\"width\", jd + \'%\');\r\n $(\"#\" + fi" + "le.id).find(\".per_pic2,.showtitle\").attr(\"title\", \'已上传\' + jd + \'%\');\r\n " + " $(\"#\" + file.id).find(\".showtitle\").text(\'已上传\' + jd + \'%\');\r\n }" + "\r\n if (jd >= 100) {\r\n $(\"#\" + file.id).find(\".per_pic2" + ",.showtitle\").attr(\"title\", \"处理中...\");\r\n }\r\n isfilesuping " + "= uploader.getStats().progressNum != 0;\r\n });\r\n\r\n uploader.on(\'upl" + "oadSuccess\', function (file, obj) {\r\n\r\n isfilesuping = uploader.getSt" + "ats().progressNum != 0;\r\n var jsonresult = obj._raw;\r\n jso" + "nresult = eval(\'(\' + jsonresult + \')\');\r\n if (jsonresult.FilePath) {\r" + "\n $(\"#\" + file.id).find(\".showtitle\").text(\"\");\r\n " + "$(\"#memberFileImg,#loc_temp_img\").val(jsonresult.FilePath);\r\n $(\"" + "#memberFileImg\").blur();\r\n $(\"#\" + file.id).find(\"span.title\").ht" + "ml(jsonresult.FileName);\r\n $(\"#upfileImg\").find(\"div.webuploader-" + "pick\").html(\"更改图片\");\r\n $(\"#upfileImg\").parent().attr(\"style\", \"po" + "sition:relative\");//\r\n $(\"#upfileImg\").addClass(\"up-imgBtn\");\r\n " + " }\r\n else {\r\n layer.msg(jsonresult.Message);\r" + "\n }\r\n\r\n uploader.reset();\r\n });\r\n\r\n uploader" + ".on(\'uploadError\', function (file, reason) {\r\n layer.msg(reason);\r\n " + " });\r\n uploader.on(\'error\', function (handler) {\r\n if (ha" + "ndler == \"Q_EXCEED_NUM_LIMIT\") {\r\n layer.alert(\"超出最大张数\");\r\n " + " }\r\n if (handler == \"F_DUPLICATE\") {\r\n layer.aler" + "t(\"该文件已在上传列表\", 3);\r\n }\r\n\r\n if (handler == \"Q_TYPE_DENIED\")" + " {\r\n layer.alert(\"该文件不满足上传要求,可能您上传的文件为0KB\");\r\n }\r\n " + " });\r\n uploader.on(\'uploadComplete\', function (file) {\r\n $(" + "\'#\' + file.id).find(\'.percent_small\').fadeOut();\r\n });\r\n\r\n });\r\n\r\n</sc" + "ript>"); }
public override void Execute() { WriteLiteral("<div"); WriteLiteral(" class=\"modal-dialog\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"modal-content\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"modal-header alert alert-success\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" class=\"close\""); WriteLiteral(" data-dismiss=\"modal\""); WriteLiteral(" aria-hidden=\"true\""); WriteLiteral(">×</button>\r\n <h6"); WriteLiteral(" class=\"modal-title\""); WriteLiteral(">درج سابقه پژوهشی</h6>\r\n </div>\r\n <div"); WriteLiteral(" class=\"modal-body\""); WriteLiteral(">\r\n"); #line 10 "..\..\Views\ResearchExperience\_Create.cshtml" #line default #line hidden #line 10 "..\..\Views\ResearchExperience\_Create.cshtml" using (Ajax.BeginForm(MVC.ResearchExperience.Create(), new AjaxOptions { HttpMethod = "POST", OnComplete = "createOnComplete(xhr, status, 'researchExperienceList', '#modal','createResearchExperienceForm','#createResearchExperienceButton')" }, new { @class = "form-horizontal", id = "createResearchExperienceForm", autocomplete = "off" })) { #line default #line hidden #line 12 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 12 "..\..\Views\ResearchExperience\_Create.cshtml" #line default #line hidden #line 13 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.HiddenFor(model => model.ApplicantId)); #line default #line hidden #line 13 "..\..\Views\ResearchExperience\_Create.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 15 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.LabelFor(model => model.Title, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-10\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 17 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.NoAutoCompleteTextBoxFor(model => model.Title)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 18 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.Title, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 21 "..\..\Views\ResearchExperience\_Create.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 23 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.LabelFor(model => model.Description, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-10\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 25 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.NoAutoCompleteTextBoxFor(model => model.Description)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 26 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.Description, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 30 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.LabelFor(model => model.PublishedIn, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-10\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 32 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.NoAutoCompleteTextBoxFor(model => model.PublishedIn)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 33 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.PublishedIn, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 37 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.LabelFor(model => model.PublishDate, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-10\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 39 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.EditorFor(model => model.PublishDate, MVC.Shared.Views.EditorTemplates.PersianDatePicker)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 40 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.PublishDate, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 44 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.LabelFor(model => model.ResearchType, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-10\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 46 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.EditorFor(model => model.ResearchType)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 47 "..\..\Views\ResearchExperience\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.ResearchType, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"col-md-6 col-md-offset-2\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" id=\"createResearchExperienceButton\""); WriteLiteral(" autocomplete=\"off\""); WriteLiteral(" onclick=\"AjaxForm.CustomSubmit(this, \'createResearchExperienceForm\')\""); WriteLiteral(" data-loading-text=\"در حال ارسال اطلاعات\""); WriteLiteral(" class=\"btn btn-success btn-md\""); WriteLiteral(">\r\n ثبت سابقه پژوهشی\r\n </button" + ">\r\n <button"); WriteLiteral(" class=\"btn btn-default btn-md\""); WriteLiteral(" data-dismiss=\"modal\""); WriteLiteral(" aria-hidden=\"true\""); WriteLiteral(">\r\n انصراف\r\n </button>\r\n " + " </div>\r\n </div>\r\n"); #line 60 "..\..\Views\ResearchExperience\_Create.cshtml" } #line default #line hidden WriteLiteral(" </div>\r\n </div>\r\n</div>\r\n"); }
public override void Execute() { #line 3 "..\..\Views\Expenses\_EditExpense.cshtml" var id = Model.Id; #line default #line hidden WriteLiteral("\r\n\r\n<div"); WriteLiteral(" class=\"row hidden-xs edit-expense\""); WriteLiteral(">\r\n"); #line 8 "..\..\Views\Expenses\_EditExpense.cshtml" #line default #line hidden #line 8 "..\..\Views\Expenses\_EditExpense.cshtml" using (Ajax.BeginForm("UpdateExpense", "Expenses", new AjaxOptions { OnBegin = "expensesManager.beforeExpenseUpdate(" + @id + ")", OnSuccess = "expensesManager.onExpenseUpdateSuccess", OnFailure = "expensesManager.onExpenseUpdateFailure(xhr, " + @id + ")", OnComplete = "expensesManager.onExpenseUpdateCompleted(" + @id + ")" }, new { id = "editExpenseForm-" + id })) { #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"col-sm-6\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"expense-update-area\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 18 "..\..\Views\Expenses\_EditExpense.cshtml" Write(Html.TextBoxFor(n => n.Description, new { id = id + "-Desc", @class = "expense-input" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"col-sm-1\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"expense-update-area\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 23 "..\..\Views\Expenses\_EditExpense.cshtml" Write(Html.TextBoxFor(n => n.Quantity, new { id = id + "-Quantity", @class = "expense-input int-input calcField-" + id })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"col-sm-2\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"expense-update-area\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 28 "..\..\Views\Expenses\_EditExpense.cshtml" Write(Html.TextBoxFor(n => n.UnitPrice, new { id = id + "-UnitPrice", @class = "expense-input float-input calcField-" + id })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"col-sm-3\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"expense-update-area price\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 33 "..\..\Views\Expenses\_EditExpense.cshtml" Write(Html.TextBoxFor(n => n.Price, new { id = id + "-Price", @class = "expense-input float-input" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n <div"); WriteLiteral(" class=\"expense-update-actions\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"submit\""); WriteLiteral(" class=\"btn-rounded btn-turquoise disabled\""); WriteLiteral(" title=\"Zapisz\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-lg icon-save\""); WriteLiteral("></span>\r\n </button>\r\n <button"); WriteAttribute("id", Tuple.Create(" id=\"", 1771), Tuple.Create("\"", 1793) , Tuple.Create(Tuple.Create("", 1776), Tuple.Create("btnCancelEdit-", 1776), true) #line 39 "..\..\Views\Expenses\_EditExpense.cshtml" , Tuple.Create(Tuple.Create("", 1790), Tuple.Create <System.Object, System.Int32>(id #line default #line hidden , 1790), false) ); WriteLiteral(" type=\"button\""); WriteLiteral(" class=\"btn-rounded btn-dismiss\""); WriteLiteral(" title=\"Anuluj\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-lg icon-cancel\""); WriteLiteral("></span>\r\n </button>\r\n </div> \r\n </div>\r\n"); #line 44 "..\..\Views\Expenses\_EditExpense.cshtml" #line default #line hidden #line 44 "..\..\Views\Expenses\_EditExpense.cshtml" Write(Html.Hidden("Id", id)); #line default #line hidden #line 44 "..\..\Views\Expenses\_EditExpense.cshtml" } #line default #line hidden WriteLiteral("\r\n <script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(">\r\n $(function () {\r\n expensesManager.manageEditFields("); #line 49 "..\..\Views\Expenses\_EditExpense.cshtml" Write(id); #line default #line hidden WriteLiteral(");\r\n });\r\n </script>\r\n</div>\r\n \r\n"); }
public override void Execute() { WriteLiteral("\r\n"); WriteLiteral("<div"); WriteLiteral(" class=\"modal-dialog\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"modal-content\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"modal-header alert alert-success\""); WriteLiteral(">\r\n <h6"); WriteLiteral(" class=\"modal-title\""); WriteLiteral(">درج آدرس</h6>\r\n </div>\r\n <div"); WriteLiteral(" class=\"modal-body\""); WriteLiteral(">\r\n"); #line 10 "..\..\Views\Address\_Create.cshtml" #line default #line hidden #line 10 "..\..\Views\Address\_Create.cshtml" using (Ajax.BeginForm(MVC.Address.Create(), new AjaxOptions { HttpMethod = "POST", OnComplete = "createOnComplete(xhr, status, 'addressList', '#modal','createAddressForm','#createAddressButton')" }, new { @class = "form-horizontal", id = "createAddressForm", autocomplete = "off" })) { #line default #line hidden #line 12 "..\..\Views\Address\_Create.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 12 "..\..\Views\Address\_Create.cshtml" #line default #line hidden #line 13 "..\..\Views\Address\_Create.cshtml" Write(Html.HiddenFor(model => model.ApplicantId)); #line default #line hidden #line 13 "..\..\Views\Address\_Create.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 15 "..\..\Views\Address\_Create.cshtml" Write(Html.LabelFor(model => model.Location, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-9\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 17 "..\..\Views\Address\_Create.cshtml" Write(Html.TextAreaFor(model => model.Location, new { @class = "form-control", rows = 2 })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 18 "..\..\Views\Address\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.Location, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 21 "..\..\Views\Address\_Create.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 23 "..\..\Views\Address\_Create.cshtml" Write(Html.LabelFor(model => model.CellPhone, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-9\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 25 "..\..\Views\Address\_Create.cshtml" Write(Html.NoAutoCompleteTextBoxForLtr(model => model.CellPhone)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 26 "..\..\Views\Address\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.CellPhone, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 30 "..\..\Views\Address\_Create.cshtml" Write(Html.LabelFor(model => model.PhoneNumber, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-9\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 32 "..\..\Views\Address\_Create.cshtml" Write(Html.NoAutoCompleteTextBoxForLtr(model => model.PhoneNumber)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 33 "..\..\Views\Address\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.PhoneNumber, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 37 "..\..\Views\Address\_Create.cshtml" Write(Html.LabelFor(model => model.Type, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-9\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 39 "..\..\Views\Address\_Create.cshtml" Write(Html.EditorFor(model => model.Type)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 40 "..\..\Views\Address\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.Type, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 44 "..\..\Views\Address\_Create.cshtml" Write(Html.LabelFor(model => Model.State, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-9\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 46 "..\..\Views\Address\_Create.cshtml" Write(Html.DropDownListFor(model => model.State, Model.States, "انتخاب استان", new { data_url = Url.Action(MVC.City.GetCities()), data_tofill = "City", data_lable = "انتخاب شهر", data_selects = "City", @class = "form-control cascade", })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 54 "..\..\Views\Address\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.State, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n \r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 59 "..\..\Views\Address\_Create.cshtml" Write(Html.LabelFor(model => Model.City, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-9\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 61 "..\..\Views\Address\_Create.cshtml" Write(Html.DropDownListFor(model => model.City, Model.Cities, "انتخاب شهر", new { @class = "form-control" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 62 "..\..\Views\Address\_Create.cshtml" Write(Html.ValidationMessageFor(model => model.City, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"col-md-6 col-md-offset-2\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" id=\"createAddressButton\""); WriteLiteral(" autocomplete=\"off\""); WriteLiteral(" onclick=\"AjaxForm.CustomSubmit(this, \'createAddressForm\')\""); WriteLiteral(" data-loading-text=\"در حال ارسال اطلاعات\""); WriteLiteral(" class=\"btn btn-success btn-md\""); WriteLiteral(">\r\n ثبت آدرس جدید\r\n </button>\r\n" + " <button"); WriteLiteral(" class=\"btn btn-default btn-md\""); WriteLiteral(" data-dismiss=\"modal\""); WriteLiteral(" aria-hidden=\"true\""); WriteLiteral(">\r\n انصراف\r\n </button>\r\n " + " </div>\r\n </div>\r\n"); #line 75 "..\..\Views\Address\_Create.cshtml" } #line default #line hidden WriteLiteral(" </div>\r\n </div>\r\n</div>\r\n"); }
public override void Execute() { #line 3 "..\..\Views\Feedback\List.cshtml" foreach (var item in Model) { #line default #line hidden WriteLiteral(" <blockquote"); WriteAttribute("id", Tuple.Create(" id=\"", 104), Tuple.Create("\"", 149) #line 5 "..\..\Views\Feedback\List.cshtml" , Tuple.Create(Tuple.Create("", 109), Tuple.Create <System.Object, System.Int32>(string.Format("feedback-{0}", @item.Id) #line default #line hidden , 109), false) ); WriteLiteral(" class=\"pull-left\""); WriteLiteral(">\r\n <strong>"); #line 6 "..\..\Views\Feedback\List.cshtml" Write(item.FeedbackSubject.Subject); #line default #line hidden WriteLiteral("</strong> - "); #line 6 "..\..\Views\Feedback\List.cshtml" Write(item.Comment); #line default #line hidden WriteLiteral("\r\n <small><strong>"); #line 7 "..\..\Views\Feedback\List.cshtml" Write(item.Name); #line default #line hidden WriteLiteral("</strong> - <a"); WriteLiteral(" href=\"mailto:#\""); WriteLiteral(">"); #line 7 "..\..\Views\Feedback\List.cshtml" Write(item.Email); #line default #line hidden WriteLiteral("</a></small><br />\r\n <small><strong>Published: </strong>"); #line 8 "..\..\Views\Feedback\List.cshtml" Write(item.PublishDate); #line default #line hidden WriteLiteral("</small>\r\n"); #line 9 "..\..\Views\Feedback\List.cshtml" #line default #line hidden #line 9 "..\..\Views\Feedback\List.cshtml" using (Ajax.BeginForm("delete", "feedback", new { area = "" }, new AjaxOptions { HttpMethod = "DELETE", Confirm = "Delete comment? Are you sure", OnSuccess = "onDelete(data, '#feedback-' + data.id, '#ajaxresult')", OnFailure = "onFailure(xhr,status,error,'#ajaxresult')", OnBegin = "onBegin(xhr, '#ajaxresult')", OnComplete = "onComplete" })) { #line default #line hidden #line 19 "..\..\Views\Feedback\List.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 19 "..\..\Views\Feedback\List.cshtml" #line default #line hidden #line 20 "..\..\Views\Feedback\List.cshtml" Write(Html.Hidden("Id", @item.Id)); #line default #line hidden #line 20 "..\..\Views\Feedback\List.cshtml" #line default #line hidden WriteLiteral(" <button"); WriteLiteral(" type=\"submit\""); WriteLiteral(" class=\"btn btn-danger pull-right\""); WriteLiteral(">Delete comment</button>\r\n"); #line 22 "..\..\Views\Feedback\List.cshtml" } #line default #line hidden WriteLiteral(" </blockquote>\r\n"); #line 24 "..\..\Views\Feedback\List.cshtml" } #line default #line hidden }
public override void Execute() { #line 1 "..\..\Areas\Administrator\Views\Role\List.cshtml" ViewBag.Title = "لیست گروه کاربری های کاربری"; #line default #line hidden WriteLiteral("\r\n<div"); WriteLiteral(" class=\"panel panel-default\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"panel-heading\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"col-md-2\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 8 "..\..\Areas\Administrator\Views\Role\List.cshtml" Write(Html.ActionLink("درج گروه کاربری جدید", MVC.Administrator.Role.ActionNames.Create, MVC.Administrator.Role.Name, new { area = MVC.Administrator.Name }, new { @class = "btn btn-sm btn-info" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n <div"); WriteLiteral(" class=\"col-md-6\""); WriteLiteral(">\r\n"); #line 11 "..\..\Areas\Administrator\Views\Role\List.cshtml" #line default #line hidden #line 11 "..\..\Areas\Administrator\Views\Role\List.cshtml" using (Ajax.BeginForm(MVC.Administrator.Role.ActionNames.ListAjax, MVC.Administrator.Role.Name, new { area = MVC.Administrator.Name }, new AjaxOptions { HttpMethod = "POST", InsertionMode = InsertionMode.Replace, UpdateTargetId = "roleList", OnComplete = "onComplete", OnSuccess = "AjaxForm.ResetButton('searchRoleButton')" }, new { @class = "form-horizontal", autocomplete = "off", id = "roleSearchForm" })) { #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"input-group\""); WriteLiteral(" dir=\"ltr\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"input-group-btn\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" id=\"searchRoleButton\""); WriteLiteral(" onclick=\"AjaxForm.CustomSubmit(this, \'roleSearchForm\')\""); WriteLiteral(" autocomplete=\"off\""); WriteLiteral(" data-loading-text=\"جستجو\""); WriteLiteral(" class=\"btn btn-info btn-sm\""); WriteLiteral(">\r\n جستجو\r\n </button>\r\n" + " </span>\r\n\r\n <input"); WriteLiteral(" dir=\"rtl\""); WriteLiteral(" type=\"text\""); WriteLiteral(" name=\"term\""); WriteLiteral(" class=\"form-control\""); WriteLiteral("\r\n placeholder=\"کلمه جستجو\""); WriteLiteral(">\r\n </div>\r\n"); #line 23 "..\..\Areas\Administrator\Views\Role\List.cshtml" } #line default #line hidden WriteLiteral(" </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div"); WriteLiteral(" class=\"panel panel-default\""); WriteLiteral(" id=\"roleList\""); WriteLiteral(">\r\n"); #line 29 "..\..\Areas\Administrator\Views\Role\List.cshtml" #line default #line hidden #line 29 "..\..\Areas\Administrator\Views\Role\List.cshtml" Html.RenderAction(MVC.Administrator.Role.ActionNames.ListAjax, MVC.Administrator.Role.Name); #line default #line hidden WriteLiteral("\r\n</div>\r\n\r\n"); DefineSection("Scripts", () => { WriteLiteral("\r\n"); WriteLiteral(" "); #line 34 "..\..\Areas\Administrator\Views\Role\List.cshtml" Write(Scripts.Render("~/bundles/jqueryval")); #line default #line hidden WriteLiteral("\r\n <script>\r\n $(function () {\r\n warningBeforeLoad();\r\n " + " })\r\n </script>\r\n"); }); }
public override void Execute() { #line 1 "..\..\Areas\manage\Views\Article\Add.cshtml" Layout = null; #line default #line hidden WriteLiteral("\r\n\r\n"); #line 10 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Scripts.Render("~/bundles/saos")); #line default #line hidden WriteLiteral("\r\n"); #line 11 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Scripts.Render("~/bundles/ajaxAsync")); #line default #line hidden WriteLiteral("\r\n"); #line 12 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Scripts.Render("~/bundles/validate")); #line default #line hidden WriteLiteral("\r\n"); #line 13 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Styles.Render("~/appcss")); #line default #line hidden WriteLiteral("\r\n<script"); WriteAttribute("src", Tuple.Create(" src=\"", 268), Tuple.Create("\"", 324) , Tuple.Create(Tuple.Create("", 274), Tuple.Create <System.Object, System.Int32>(Href("~/Content/lib/webuploader/0.1.5/webuploader.min.js") , 274), false) ); WriteLiteral(" type=\"text/javascript\""); WriteLiteral("></script>\r\n<script"); WriteLiteral(" type=\"text/javascript\""); WriteAttribute("src", Tuple.Create(" src=\"", 390), Tuple.Create("\"", 430) , Tuple.Create(Tuple.Create("", 396), Tuple.Create <System.Object, System.Int32>(Href("~/Content/lib/ckeditor/ckeditor.js") , 396), false) ); WriteLiteral("></script>\r\n<style"); WriteLiteral(" type=\"text/css\""); WriteLiteral(">\r\n .form-horizontal .form-label {\r\n text-align: right;\r\n }\r\n</style" + ">\r\n<nav"); WriteLiteral(" class=\"breadcrumb\""); WriteLiteral("><i"); WriteLiteral(" class=\"Hui-iconfont\""); WriteLiteral("></i> 首页 <span"); WriteLiteral(" class=\"c-gray en\""); WriteLiteral(">></span>"); #line 21 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Html.ActionLink("文章管理", "List")); #line default #line hidden WriteLiteral(" <span"); WriteLiteral(" class=\"c-gray en\""); WriteLiteral(">></span><a"); WriteLiteral(" href=\"javascript:void(0)\""); WriteLiteral(" onclick=\"location.reload()\""); WriteLiteral(">新建文章</a> </nav>\r\n<article"); WriteLiteral(" class=\"page-container\""); WriteLiteral(">\r\n"); #line 23 "..\..\Areas\manage\Views\Article\Add.cshtml" #line default #line hidden #line 23 "..\..\Areas\manage\Views\Article\Add.cshtml" using (Ajax.BeginForm("Add", "Article", new { }, new AjaxOptions() { HttpMethod = "Post", OnSuccess = "formSuccess(data)", OnBegin = "disSubmit('sub_btn')", OnComplete = "enSubmit('sub_btn')" }, new { id = "", @class = "form form-horizontal" })) { #line default #line hidden #line 25 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 25 "..\..\Areas\manage\Views\Article\Add.cshtml" #line default #line hidden #line 26 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Html.HiddenFor(m => m.Id, new { @Value = 0 })); #line default #line hidden #line 26 "..\..\Areas\manage\Views\Article\Add.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-sm-2 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>文章头图:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-sm-6 \""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"upfileImg\""); WriteLiteral(" class=\"up-img-left\""); WriteLiteral(">\r\n 上传图片\r\n </div>\r\n " + "<span"); WriteLiteral(" class=\"help-block help-tip help-img\""); WriteLiteral(" style=\"top:8px;position:absolute\""); WriteLiteral(">请上传jpg、jpeg、gif、bmp、png等图片类型的文件</span>\r\n <div"); WriteLiteral(" class=\"formControls\""); WriteLiteral(">\r\n <ul"); WriteLiteral(" id=\"imglist\""); WriteLiteral(" class=\"\""); WriteLiteral("></ul>\r\n <input"); WriteLiteral(" type=\"hidden\""); WriteLiteral(" id=\"loc_temp_img\""); WriteLiteral(" />\r\n </div>\r\n </div>\r\n"); WriteLiteral(" "); #line 40 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Html.ValidationMessageFor(m => m.HeadImg, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 41 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Html.TextBoxFor(m => m.HeadImg, new { id = "memberFileImg", @class = "hide-area input-text" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-sm-2 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>所属模块:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-sm-3 \""); WriteLiteral(">\r\n <select"); WriteLiteral(" class=\"select select-box\""); WriteLiteral(" name=\"Section\""); WriteLiteral(" id=\"sel_section\""); WriteLiteral(" onchange=\"bindData()\""); WriteLiteral(">\r\n <option"); WriteAttribute("value", Tuple.Create(" value=\"", 2418), Tuple.Create("\"", 2454) #line 48 "..\..\Areas\manage\Views\Article\Add.cshtml" , Tuple.Create(Tuple.Create("", 2426), Tuple.Create <System.Object, System.Int32>((int)SectionType.Industry #line default #line hidden , 2426), false) ); WriteLiteral(">"); #line 48 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(SectionType.Industry.GetDescription()); #line default #line hidden WriteLiteral("</option>\r\n <option"); WriteAttribute("value", Tuple.Create(" value=\"", 2532), Tuple.Create("\"", 2571) #line 49 "..\..\Areas\manage\Views\Article\Add.cshtml" , Tuple.Create(Tuple.Create("", 2540), Tuple.Create <System.Object, System.Int32>((int)SectionType.Association #line default #line hidden , 2540), false) ); WriteLiteral(">"); #line 49 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(SectionType.Association.GetDescription()); #line default #line hidden WriteLiteral("</option>\r\n <option"); WriteAttribute("value", Tuple.Create(" value=\"", 2652), Tuple.Create("\"", 2691) #line 50 "..\..\Areas\manage\Views\Article\Add.cshtml" , Tuple.Create(Tuple.Create("", 2660), Tuple.Create <System.Object, System.Int32>((int)SectionType.Examination #line default #line hidden , 2660), false) ); WriteLiteral(">"); #line 50 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(SectionType.Examination.GetDescription()); #line default #line hidden WriteLiteral("</option>\r\n <option"); WriteAttribute("value", Tuple.Create(" value=\"", 2772), Tuple.Create("\"", 2806) #line 51 "..\..\Areas\manage\Views\Article\Add.cshtml" , Tuple.Create(Tuple.Create("", 2780), Tuple.Create <System.Object, System.Int32>((int)SectionType.Social #line default #line hidden , 2780), false) ); WriteLiteral(">"); #line 51 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(SectionType.Social.GetDescription()); #line default #line hidden WriteLiteral("</option>\r\n </select>\r\n </div>\r\n <label"); WriteLiteral(" class=\"form-label col-sm-1 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>所属类别:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-sm-4 \""); WriteLiteral(">\r\n <select"); WriteLiteral(" class=\"select select-box inline hidden\""); WriteLiteral(" style=\"width:47%;\""); WriteLiteral(" id=\"sel_parCategory\""); WriteLiteral(">\r\n <option"); WriteLiteral(" value=\"0\""); WriteLiteral(">所属大类</option>\r\n"); #line 58 "..\..\Areas\manage\Views\Article\Add.cshtml" #line default #line hidden #line 58 "..\..\Areas\manage\Views\Article\Add.cshtml" foreach (CategoryDictionary item in ViewBag.ParentCategory) { #line default #line hidden WriteLiteral(" <option"); WriteAttribute("value", Tuple.Create(" value=\"", 3338), Tuple.Create("\"", 3354) #line 60 "..\..\Areas\manage\Views\Article\Add.cshtml" , Tuple.Create(Tuple.Create("", 3346), Tuple.Create <System.Object, System.Int32>(item.Id #line default #line hidden , 3346), false) ); WriteLiteral(">"); #line 60 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(item.Name); #line default #line hidden WriteLiteral("</option>\r\n"); #line 61 "..\..\Areas\manage\Views\Article\Add.cshtml" } #line default #line hidden WriteLiteral(" </select>\r\n <select"); WriteLiteral(" class=\"select select-box inline float-right hidden\""); WriteLiteral(" style=\"width:48%\""); WriteLiteral(" id=\"sel_exCategory\""); WriteLiteral(" >\r\n <option"); WriteLiteral(" value=\"0\""); WriteLiteral(">所属子类</option>\r\n </select>\r\n <select"); WriteLiteral(" class=\"select select-box\""); WriteLiteral(" id=\"sel_category\""); WriteLiteral(" >\r\n </select>\r\n"); WriteLiteral(" "); #line 68 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Html.HiddenFor(g => g.ParCategory, new { @Value = 0 })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 69 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Html.ValidationMessageFor(m => m.Category, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 70 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Html.TextBoxFor(m => m.Category, new { id = "Category", @class = "hide-area input-text" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-sm-2 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>文章标题:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-sm-8 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 76 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Html.TextBoxFor(m => m.Title, new { placeholder = "请输入文章标题", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 77 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Html.ValidationMessageFor(m => m.Title, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 80 "..\..\Areas\manage\Views\Article\Add.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-sm-2 \""); WriteLiteral(">文章详情:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-sm-8 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 84 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Html.TextAreaFor(m => m.Description, new { @class = "ckeditor textarea", rows = "10", placeholder = "请输入文章详情..." })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-2 \""); WriteLiteral(">状态:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"radio-list\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"radio-inline\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 92 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Html.RadioButtonFor(m => m.State, (int)PublishState.Upper, new { id = "", @checked = "checked" })); #line default #line hidden WriteLiteral("上架\r\n </label>\r\n <label"); WriteLiteral(" class=\"radio-inline\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 95 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Html.RadioButtonFor(m => m.State, (int)PublishState.Lower, new { id = "" })); #line default #line hidden WriteLiteral("下架\r\n </label>\r\n </div>\r\n </div>\r\n " + " </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"btn_submit\""); WriteLiteral(" class=\"col-xs-6 col-xs-offset-3 col-sm-offset-2 mt-10\""); WriteLiteral(">\r\n <button"); WriteLiteral(" class=\"btn btn-primary radius\""); WriteLiteral(" type=\"submit\""); WriteLiteral(" id=\"sub_btn\""); WriteLiteral(">保存</button>\r\n"); WriteLiteral(" "); #line 103 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Html.ActionLink("取消", "List", null, new { @class = "btn btn-default radius" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 106 "..\..\Areas\manage\Views\Article\Add.cshtml" } #line default #line hidden WriteLiteral("</article>\r\n\r\n<script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(">\r\n bindData();\r\n $(function () {\r\n var editor = CKEDITOR.replace(\'D" + "escription\',\r\n {\r\n height: 260,\r\n toolbar: \'Basi" + "c\',\r\n filebrowserImageUploadUrl: \""); #line 116 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Url.Action("UploadEditer", "Upload")); #line default #line hidden WriteLiteral("\"\r\n });\r\n\r\n editor.on(\"change\", pasteImg);\r\n\r\n $(\"#sel_parC" + "ategory\").change(function () {\r\n $(\"#ParCategory\").val($(this).val())" + ";\r\n $.ajax({\r\n url: \""); #line 124 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Url.Action("GetCategorysById")); #line default #line hidden WriteLiteral(@""", type: ""Get"", data: { ""parentId"": $(""#ParCategory"").val(), ""searchType"": 1 }, dataType: ""json"", success: function (data) { var stringBuild = new StringBuffer(); $.each(data, function (i, v) { stringBuild.append(""<option value='"" + v.Key + ""'>"" + v.Value + ""</option>""); }); $(""#sel_exCategory"").empty().append(""<option value=''>所属类别</option>"").append(stringBuild.toString()); $(""#sel_exCategory"").change(); } }) }); $(""#sel_exCategory,#sel_category"").on(""change"", function () { $(""#Category"").val($(this).val()).blur(); }); }); function bindData() { if ($(""#sel_section"").val() == '"); #line 146 "..\..\Areas\manage\Views\Article\Add.cshtml" Write((int)SectionType.Examination); #line default #line hidden WriteLiteral(@"') { $(""#sel_parCategory,#sel_exCategory"").removeClass(""hidden""); $(""#sel_category"").addClass(""hidden""); } else { $(""#sel_parCategory,#sel_exCategory"").addClass(""hidden""); $(""#sel_category"").removeClass(""hidden""); $(""#sel_parCategory"").val(0).change(); $.ajax({ url: """); #line 155 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Url.Action("GetCategorysBySection")); #line default #line hidden WriteLiteral(@""", type: ""Get"", data: { ""sectionType"": $(""#sel_section"").val(), ""searchType"": 1 }, dataType: ""json"", success: function (data) { var stringBuild = new StringBuffer(); $.each(data, function (i, v) { stringBuild.append(""<option value='"" + v.Key + ""'>"" + v.Value + ""</option>""); }); $(""#sel_category"").empty().append(""<option value=''>所属类别</option>"").append(stringBuild.toString()); $(""#sel_category"").change(); } }) } } function formSuccess(result) { if (result != null) { if (result.isSuccess) { top.layer.alert('添加成功!', { icon: 6, closeBtn: 0, yes: function () { window.location = '"); #line 178 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Url.Action("List", "Article")); #line default #line hidden WriteLiteral(@"'; parent.layer.closeAll(); } }); } else { top.layer.alert('添加失败!', { icon: 5 }); } } else { top.layer.alert('添加失败!', { icon: 5 }); } } </script> <script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(@"> var maxcount = 8; //上传参数 var jq_imgFormData = { BidFileDomain: ' ', uploadQueryData: { Suffix: 1 } }; if (!WebUploader.Uploader.support()) { $("".FJsp2"").html(""说明:当前浏览器不支持附件上传""); $(""#upfileImg"").hide(); //alert( 'Web Uploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器'); alert(""当前浏览器不支持附件上传,如果你使用的是IE浏览器,请尝试升级 flash 播放器""); throw new Error('WebUploader does not support the browser you are using.'); } var BASE_URL = ""/content/webuploader-0.1.5""; var file_ids = []; //已上传文件的路径 var file_info = []; //记录文件的GUID和存储路径 var isfilesuping = false; // 文件上传 jQuery(function () { var id = ""upfileImg""; var $ = jQuery, state = 'pending', $probar = $(""#"" + id).siblings(""div"").find("".pros""), uploader; uploader = WebUploader.create({ // 不压缩image resize: false, //发送后台时参数 formData: jq_imgFormData.uploadQueryData, fileVal: jq_imgFormData.BidFileDomain, method: ""POST"", //是否分块(大文件上传) chunked: true, //设置文件上传域名称 fileVal: 'file', //每块最大限制(默认5M 因为是.net 所以设置2M) chunkSize: 2097152, // swf文件路径 swf: BASE_URL + '/Uploader.swf', // 文件接收服务端。 server: jq_imgFormData.BidFileDomain + '"); #line 229 "..\..\Areas\manage\Views\Article\Add.cshtml" Write(Url.Action("Upload", "Upload")); #line default #line hidden WriteLiteral("\',\r\n //创建选择文件按钮\r\n pick: { id: \"#\" + id, innerHTML: \"\", mult" + "iple: false },\r\n //选择文件自动上传\r\n auto: true,\r\n //a" + "ccept:{title:\"只能上传rar,zip文件\",extensions :\'rar,zip\',mimeTypes:\'application/x-zip-" + "compressed\'},\r\n fileNumLimit: maxcount\r\n });\r\n\r\n //文件大小" + "限制,超过则不加入队列\r\n uploader.on(\'beforeFileQueued\', function (file, han, msg) {" + "\r\n var xzlist = (\"jpg,jpeg,gif,bmp,png\").split(\",\");\r\n var" + " filenamelist = file.name.split(\'.\');\r\n var filehz = filenamelist[fil" + "enamelist.length - 1];\r\n\r\n if (xzlist.indexOf(filehz) < 0) {\r\n " + " layer.alert(\"请上传指定类型格式的文件\", 0);\r\n return false;\r\n " + " }\r\n\r\n if (file.size > (1024 * 1024 * 10)) {\r\n lay" + "er.alert(\"图片大小不可超过5M\", 0);\r\n return false;\r\n }\r\n\r\n " + " var filelen = $(\"#imglist>li\").length;\r\n if (filelen >= maxco" + "unt) {\r\n layer.alert(\"超出最大上传数量\", 0);\r\n return fals" + "e;\r\n }\r\n });\r\n //某个文件开始上传前触发,一个文件只会触发一次。\r\n uploa" + "der.on(\'uploadStart\', function (file) {\r\n uploader.options.formData.g" + "uid = WebUploader.Base.guid();\r\n });\r\n // 当有文件添加进来的时候\r\n upl" + "oader.on(\'fileQueued\', function (file) {\r\n $(\".help-img\").hide();\r\n " + " $(\".yangli\").hide()\r\n $(\".yulan\").show();\r\n uplo" + "ader.makeThumb(file, function (error, ret) {\r\n var file_list = []" + ";\r\n file_list.push(\"<li id=\'\" + file.id + \"\'>\");\r\n " + " file_list.push(\"<img src=\'\" + ret + \"\'/>\");\r\n file_list.push(\"<d" + "iv class=\'percent_small\'>\");\r\n file_list.push(\"<div class=\'per_pi" + "c2\'>\");\r\n file_list.push(\"<div class=\'change_per2\' style=\'width:1" + "%\'></div>\");\r\n file_list.push(\"</div>\");\r\n file_li" + "st.push(\"<span class=\'showtitle\'>正准备上传…</span></div>\");\r\n file_li" + "st.push(\"</div></li>\");\r\n $(\"#imglist\").empty().append(file_list." + "join(\'\'));\r\n });\r\n });\r\n //重置\r\n uploader.on(\'res" + "et\', function (file) {\r\n\r\n });\r\n // 文件上传过程中创建进度条实时显示。\r\n upl" + "oader.on(\'uploadProgress\', function (file, percentage) {\r\n var jd = p" + "arseInt(percentage * 100);\r\n if (jd > 1) {\r\n $(\"#\" + f" + "ile.id).find(\".change_per2\").css(\"width\", jd + \'%\');\r\n $(\"#\" + fi" + "le.id).find(\".per_pic2,.showtitle\").attr(\"title\", \'已上传\' + jd + \'%\');\r\n " + " $(\"#\" + file.id).find(\".showtitle\").text(\'已上传\' + jd + \'%\');\r\n }" + "\r\n if (jd >= 100) {\r\n $(\"#\" + file.id).find(\".per_pic2" + ",.showtitle\").attr(\"title\", \"处理中...\");\r\n }\r\n isfilesuping " + "= uploader.getStats().progressNum != 0;\r\n });\r\n\r\n uploader.on(\'upl" + "oadSuccess\', function (file, obj) {\r\n\r\n isfilesuping = uploader.getSt" + "ats().progressNum != 0;\r\n var jsonresult = obj._raw;\r\n jso" + "nresult = eval(\'(\' + jsonresult + \')\');\r\n if (jsonresult.FilePath) {\r" + "\n $(\"#\" + file.id).find(\".showtitle\").text(\"\");\r\n " + "$(\"#memberFileImg,#loc_temp_img\").val(jsonresult.FilePath);\r\n $(\"" + "#memberFileImg\").blur();\r\n $(\"#\" + file.id).find(\"span.title\").ht" + "ml(jsonresult.FileName);\r\n $(\"#upfileImg\").find(\"div.webuploader-" + "pick\").html(\"更改图片\");\r\n $(\"#upfileImg\").parent().attr(\"style\", \"po" + "sition:relative\");//\r\n $(\"#upfileImg\").addClass(\"up-imgBtn\");\r\n " + " }\r\n else {\r\n layer.msg(jsonresult.Message);\r" + "\n }\r\n\r\n uploader.reset();\r\n });\r\n\r\n uploader" + ".on(\'uploadError\', function (file, reason) {\r\n layer.msg(reason);\r\n " + " });\r\n uploader.on(\'error\', function (handler) {\r\n if (ha" + "ndler == \"Q_EXCEED_NUM_LIMIT\") {\r\n layer.alert(\"超出最大张数\");\r\n " + " }\r\n if (handler == \"F_DUPLICATE\") {\r\n layer.aler" + "t(\"该文件已在上传列表\", 3);\r\n }\r\n\r\n if (handler == \"Q_TYPE_DENIED\")" + " {\r\n layer.alert(\"该文件不满足上传要求,可能您上传的文件为0KB\");\r\n }\r\n " + " });\r\n uploader.on(\'uploadComplete\', function (file) {\r\n $(" + "\'#\' + file.id).find(\'.percent_small\').fadeOut();\r\n });\r\n\r\n });\r\n\r\n</sc" + "ript>"); }
public override void Execute() { #line 1 "..\..\Areas\manage\Views\User\Edit.cshtml" Layout = null; #line default #line hidden WriteLiteral("\r\n\r\n"); WriteLiteral("\r\n"); #line 10 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Scripts.Render("~/bundles/saos")); #line default #line hidden WriteLiteral("\r\n"); #line 11 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Scripts.Render("~/bundles/ajaxAsync")); #line default #line hidden WriteLiteral("\r\n"); #line 12 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Scripts.Render("~/bundles/validate")); #line default #line hidden WriteLiteral("\r\n"); #line 13 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Styles.Render("~/appcss")); #line default #line hidden WriteLiteral("\r\n<style"); WriteLiteral(" type=\"text/css\""); WriteLiteral(">\r\n .form-horizontal .form-label {\r\n text-align: right;\r\n }\r\n</style" + ">\r\n<article"); WriteLiteral(" class=\"page-container\""); WriteLiteral(">\r\n"); #line 20 "..\..\Areas\manage\Views\User\Edit.cshtml" #line default #line hidden #line 20 "..\..\Areas\manage\Views\User\Edit.cshtml" using (Ajax.BeginForm("Edit", "User", new { }, new AjaxOptions() { HttpMethod = "Post", OnSuccess = "formSuccess(data)", OnBegin = "disSubmit('sub_btn')", OnComplete = "enSubmit('sub_btn')" }, new { id = "", @class = "form form-horizontal" })) { #line default #line hidden #line 22 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 22 "..\..\Areas\manage\Views\User\Edit.cshtml" #line default #line hidden #line 23 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Html.HiddenFor(m => m.Id)); #line default #line hidden #line 23 "..\..\Areas\manage\Views\User\Edit.cshtml" #line default #line hidden #line 24 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Html.HiddenFor(m => m.UserName)); #line default #line hidden #line 24 "..\..\Areas\manage\Views\User\Edit.cshtml" #line default #line hidden #line 25 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Html.HiddenFor(m => m.Password)); #line default #line hidden #line 25 "..\..\Areas\manage\Views\User\Edit.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>用户名:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n <input"); WriteLiteral(" type=\"text\""); WriteLiteral(" disabled"); WriteLiteral(" class=\"input-text\""); WriteAttribute("value", Tuple.Create(" value=\"", 1022), Tuple.Create("\"", 1045) #line 29 "..\..\Areas\manage\Views\User\Edit.cshtml" , Tuple.Create(Tuple.Create("", 1030), Tuple.Create <System.Object, System.Int32>(Model.UserName #line default #line hidden , 1030), false) ); WriteLiteral(" />\r\n\r\n </div>\r\n"); #line 32 "..\..\Areas\manage\Views\User\Edit.cshtml" #line default #line hidden #line 32 "..\..\Areas\manage\Views\User\Edit.cshtml" if (ViewBag.IsSupAdmin) { #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"col-xs-3\""); WriteLiteral(">\r\n <button"); WriteLiteral(" class=\"btn btn-default radius\""); WriteLiteral(" style=\"height:auto;padding:6px 10px;font-size:12px\""); WriteLiteral(" onclick=\"initPwd()\""); WriteLiteral(" type=\"button\""); WriteLiteral(">初始化密码</button>\r\n </div>\r\n"); #line 37 "..\..\Areas\manage\Views\User\Edit.cshtml" } #line default #line hidden WriteLiteral(" </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>姓名:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 42 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Html.TextBoxFor(m => m.RealName, new { placeholder = "请输入姓名", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 43 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Html.ValidationMessageFor(m => m.RealName, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>手机号:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 49 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Html.TextBoxFor(m => m.Phone, new { placeholder = "请输入手机号", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 50 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Html.ValidationMessageFor(m => m.Phone, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral(">邮箱:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 56 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Html.TextBoxFor(m => m.Email, new { placeholder = "请输入邮箱", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 57 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Html.ValidationMessageFor(m => m.Email, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 60 "..\..\Areas\manage\Views\User\Edit.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral(">状态:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n"); #line 64 "..\..\Areas\manage\Views\User\Edit.cshtml" #line default #line hidden #line 64 "..\..\Areas\manage\Views\User\Edit.cshtml" if (Model.IsSupAdmin || ViewBag.IsSelf) { #line default #line hidden WriteLiteral(" <input"); WriteLiteral(" type=\"text\""); WriteLiteral(" disabled"); WriteLiteral(" class=\"input-text\""); WriteLiteral(" value=\"已上架\""); WriteLiteral(" />\r\n"); #line 67 "..\..\Areas\manage\Views\User\Edit.cshtml" #line default #line hidden #line 67 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Html.HiddenFor(m => m.State)); #line default #line hidden #line 67 "..\..\Areas\manage\Views\User\Edit.cshtml" } else { #line default #line hidden WriteLiteral(" <select"); WriteLiteral(" class=\"select select-box\""); WriteLiteral(" name=\"State\""); WriteLiteral(">\r\n <option"); WriteAttribute("value", Tuple.Create(" value=\"", 3085), Tuple.Create("\"", 3119) #line 72 "..\..\Areas\manage\Views\User\Edit.cshtml" , Tuple.Create(Tuple.Create("", 3093), Tuple.Create <System.Object, System.Int32>((int)PublishState.Upper #line default #line hidden , 3093), false) ); WriteLiteral(" "); #line 72 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Model.State == (int)PublishState.Upper ? "selected" : ""); #line default #line hidden WriteLiteral(">上架</option>\r\n <option"); WriteAttribute("value", Tuple.Create(" value=\"", 3225), Tuple.Create("\"", 3259) #line 73 "..\..\Areas\manage\Views\User\Edit.cshtml" , Tuple.Create(Tuple.Create("", 3233), Tuple.Create <System.Object, System.Int32>((int)PublishState.Lower #line default #line hidden , 3233), false) ); WriteLiteral(" "); #line 73 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Model.State == (int)PublishState.Lower ? "selected" : ""); #line default #line hidden WriteLiteral(">下架</option>\r\n </select>\r\n"); #line 75 "..\..\Areas\manage\Views\User\Edit.cshtml" } #line default #line hidden WriteLiteral(" </div>\r\n\r\n </div>\r\n"); #line 79 "..\..\Areas\manage\Views\User\Edit.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"btn_submit\""); WriteLiteral(" class=\"col-xs-6 col-xs-offset-3 col-sm-offset-2 mt-10\""); WriteLiteral(">\r\n\r\n <button"); WriteLiteral(" class=\"btn btn-primary radius\""); WriteLiteral(" type=\"submit\""); WriteLiteral(" id=\"sub_btn\""); WriteLiteral(">保存</button>\r\n <input"); WriteLiteral(" name=\"\""); WriteLiteral(" type=\"button\""); WriteLiteral(" onclick=\"layer_close();\""); WriteLiteral(" class=\"btn btn-default radius \""); WriteLiteral(" value=\"取消\""); WriteLiteral(">\r\n </div>\r\n </div>\r\n"); #line 87 "..\..\Areas\manage\Views\User\Edit.cshtml" } #line default #line hidden WriteLiteral("</article>\r\n<script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(">\r\n $(function () {\r\n })\r\n\r\n function initPwd() {\r\n layer.confirm" + "(\'初始化密码为手机号后6位,您确定要初始化吗?\', function (e) {\r\n $.ajax({\r\n " + " url: \""); #line 96 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Url.Action("InitPwd")); #line default #line hidden WriteLiteral("\",\r\n type: \"post\",\r\n data: { uid: "); #line 98 "..\..\Areas\manage\Views\User\Edit.cshtml" Write(Model.Id); #line default #line hidden WriteLiteral(@" }, success: function (data) { if (data == ""ok"") { layer.alert('初始化成功!', { icon: 6 }); } else if (data == ""error"") { layer.alert('操作失败!', { icon: 5 }); } else { layer.alert(data, { icon: 7 }); } }, error: function (data) { layer.alert('操作失败!', { icon: 5 }); } }) }) } function formSuccess(result) { if (result != null) { if (result.isSuccess) { var index = parent.layer.getFrameIndex(window.name); layer.alert('保存成功!', { icon: 6, closeBtn: 0, yes: function () { if (parent[1] != null) { parent[pageIndex()].table1.ajax.reload(); } else { parent.table1.ajax.reload(); } parent.layer.close(index); } }); } else layer.alert('保存失败!', { icon: 5 });//icon:6为开心图 } else layer.alert('保存失败!', { icon: 5 });//icon:6为开心图 } </script>"); }
public override void Execute() { WriteLiteral("\r\n"); WriteLiteral("<div"); WriteLiteral(" class=\"col-md-12\""); WriteAttribute("id", Tuple.Create(" id=\"", 102), Tuple.Create("\"", 135) , Tuple.Create(Tuple.Create("", 107), Tuple.Create("researchExperience-", 107), true) #line 3 "..\..\Views\ResearchExperience\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 126), Tuple.Create <System.Object, System.Int32>(Model.Id #line default #line hidden , 126), false) ); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"panel panel-default\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"panel-heading\""); WriteLiteral(">\r\n <h3"); WriteLiteral(" class=\"panel-title\""); WriteLiteral(">\r\n <i"); WriteLiteral(" class=\"fa fa-leanpub\""); WriteLiteral("></i>\r\n ویرایش سابقه پژوهشی\r\n </h3>\r\n </div>\r\n " + " <div"); WriteLiteral(" class=\"panel-body\""); WriteLiteral(">\r\n"); #line 12 "..\..\Views\ResearchExperience\_Edit.cshtml" #line default #line hidden #line 12 "..\..\Views\ResearchExperience\_Edit.cshtml" using (Ajax.BeginForm(MVC.ResearchExperience.Edit(), new AjaxOptions { HttpMethod = "POST", OnComplete = "editOnComplete(xhr, status, '" + Model.Id + "','#editButton" + Model.Id + "')" }, new { @class = "form-horizontal", id = Model.Id, autocomplete = "off", data_ajax_update = "researchExperience-" + Model.Id })) { #line default #line hidden #line 14 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 14 "..\..\Views\ResearchExperience\_Edit.cshtml" #line default #line hidden #line 15 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.HiddenFor(model => model.ApplicantId)); #line default #line hidden #line 15 "..\..\Views\ResearchExperience\_Edit.cshtml" #line default #line hidden #line 16 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.HiddenFor(model => model.Id)); #line default #line hidden #line 16 "..\..\Views\ResearchExperience\_Edit.cshtml" #line default #line hidden #line 17 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.HiddenFor(model => model.RowVersion)); #line default #line hidden #line 17 "..\..\Views\ResearchExperience\_Edit.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 19 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.LabelFor(model => model.Title, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-10\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 21 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.NoAutoCompleteTextBoxFor(model => model.Title)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 22 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.ValidationMessageFor(model => model.Title, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 25 "..\..\Views\ResearchExperience\_Edit.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 27 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.LabelFor(model => model.Description, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-10\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 29 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.NoAutoCompleteTextBoxFor(model => model.Description)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 30 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.ValidationMessageFor(model => model.Description, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 34 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.LabelFor(model => model.PublishedIn, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-10\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 36 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.NoAutoCompleteTextBoxFor(model => model.PublishedIn)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 37 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.ValidationMessageFor(model => model.PublishedIn, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 41 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.LabelFor(model => model.PublishDate, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-10\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 43 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.EditorFor(model => model.PublishDate, MVC.Shared.Views.EditorTemplates.PersianDatePicker)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 44 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.ValidationMessageFor(model => model.PublishDate, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 48 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.LabelFor(model => model.ResearchType, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-10\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 50 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.EditorFor(model => model.ResearchType)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 51 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Html.ValidationMessageFor(model => model.ResearchType, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 54 "..\..\Views\ResearchExperience\_Edit.cshtml" } #line default #line hidden WriteLiteral(" </div>\r\n <div"); WriteLiteral(" class=\"panel-footer\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"pull-left\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteAttribute("id", Tuple.Create(" id=\"", 3357), Tuple.Create("\"", 3402) #line 59 "..\..\Views\ResearchExperience\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 3362), Tuple.Create <System.Object, System.Int32>(string.Format("editButton{0}", Model.Id) #line default #line hidden , 3362), false) ); WriteLiteral(" autocomplete=\"off\""); WriteAttribute("onclick", Tuple.Create(" onclick=\"", 3422), Tuple.Create("\"", 3472) , Tuple.Create(Tuple.Create("", 3432), Tuple.Create("AjaxForm.CustomSubmit(this,", 3432), true) , Tuple.Create(Tuple.Create(" ", 3459), Tuple.Create("\'", 3460), true) #line 59 "..\..\Views\ResearchExperience\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 3461), Tuple.Create <System.Object, System.Int32>(Model.Id #line default #line hidden , 3461), false) , Tuple.Create(Tuple.Create("", 3470), Tuple.Create("\')", 3470), true) ); WriteLiteral(" data-loading-text=\"در حال ارسال اطلاعات\""); WriteLiteral(" class=\"btn btn-success btn-sm\""); WriteLiteral(">\r\n <i"); WriteLiteral(" class=\"fa fa-check-square-o\""); WriteLiteral("></i>\r\n ذخیره تغییرات\r\n </button>\r\n\r\n " + " <a"); WriteLiteral(" class=\"btn btn-default btn-sm\""); WriteLiteral(" data-ajax=\"true\""); WriteLiteral("\r\n data-ajax-mode=\"REPLACE-WITH\""); WriteLiteral(" data-ajax-complete=\"cancelEditOnComplete(xhr, status)\""); WriteLiteral("\r\n data-ajax-update=\"#researchExperience-"); #line 66 "..\..\Views\ResearchExperience\_Edit.cshtml" Write(Model.Id); #line default #line hidden WriteLiteral("\""); WriteLiteral(" data-ajax-method=\"POST\""); WriteAttribute("href", Tuple.Create("\r\n href=\"", 3934), Tuple.Create("\"", 4017) #line 67 "..\..\Views\ResearchExperience\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 3961), Tuple.Create <System.Object, System.Int32>(Url.Action(MVC.ResearchExperience.CancelEdit(Model.Id)) #line default #line hidden , 3961), false) ); WriteLiteral(" role=\"button\""); WriteLiteral(">\r\n <i"); WriteLiteral(" class=\"fa fa-arrow-right\""); WriteLiteral("></i>\r\n انصراف\r\n </a>\r\n </div>\r\n\r\n " + " <div"); WriteLiteral(" class=\"clearfix\""); WriteLiteral("></div>\r\n </div>\r\n\r\n </div>\r\n</div>\r\n"); }
public override void Execute() { WriteLiteral("\r\n"); WriteLiteral("\r\n<div"); WriteLiteral(" class=\"panel-heading\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"col-md-3\""); WriteLiteral(">\r\n <strong>لیست کاربران</strong>\r\n\r\n </div>\r\n <div"); WriteLiteral(" class=\"col-md-1 pull-right\""); WriteLiteral(">\r\n <a"); WriteLiteral(" href=\"javascript:void(0)\""); WriteLiteral(" id=\"refreshBtn\""); WriteLiteral(" class=\"btn btn-sm btn-success pull-right\""); WriteLiteral("><i"); WriteLiteral(" class=\"fa fa-refresh\""); WriteLiteral("></i></a>\r\n </div>\r\n <div"); WriteLiteral(" class=\"col-md-8\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 19 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" Write(Html.PagedListPager(new StaticPagedList <UserViewModel>(Model.Users, Model.SearchRequest.PageIndex, (int)Model.SearchRequest.PageSize, Model.SearchRequest.Total), pageNumber => Url.Action(MVC.Administrator.User.ActionNames.List, MVC.Administrator.User.Name, new { Model.SearchRequest }), PagedListRenderOptions.EnableUnobtrusiveAjaxReplacing(new PagedListRenderOptions { DisplayLinkToFirstPage = PagedListDisplayMode.Always, DisplayLinkToLastPage = PagedListDisplayMode.Always, DisplayLinkToPreviousPage = PagedListDisplayMode.Always, DisplayLinkToNextPage = PagedListDisplayMode.Always, MaximumPageNumbersToDisplay = 6 }, new AjaxOptions { AllowCache = false, HttpMethod = "GET", InsertionMode = InsertionMode.Replace, UpdateTargetId = "userList", OnComplete = "onComplete" }))); #line default #line hidden WriteLiteral("\r\n \r\n </div>\r\n\r\n </div>\r\n\r\n</div>\r\n\r\n<div"); WriteLiteral(" class=\"panel-body\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"col-md-12 table-responsive\""); WriteLiteral(">\r\n <table"); WriteLiteral(" class=\"table table-striped table-bordered\""); WriteLiteral(">\r\n <thead>\r\n <tr>\r\n\r\n <" + "th"); WriteLiteral(" class=\"text-center\""); WriteLiteral(">\r\n ایمیل\r\n </th>\r\n " + " <th"); WriteLiteral(" class=\"text-center\""); WriteLiteral(">نام کاربری</th>\r\n <th"); WriteLiteral(" class=\"text-center\""); WriteLiteral(">نام-نام خانوادگی</th>\r\n <th"); WriteLiteral(" class=\"text-center\""); WriteLiteral(">فعال</th>\r\n <th"); WriteLiteral(" class=\"text-center\""); WriteLiteral(">حذف شده</th>\r\n <th"); WriteLiteral(" class=\"text-center\""); WriteLiteral(">تأییدیه ایمیل</th>\r\n <th"); WriteLiteral(" class=\"text-center\""); WriteLiteral(">کاربر سیستمی</th>\r\n <th"); WriteLiteral(" class=\"text-center\""); WriteLiteral(">تاریخ عضویت</th>\r\n <th></th>\r\n </tr>\r\n" + " </thead>\r\n <tbody>\r\n"); #line 59 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" #line default #line hidden #line 59 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" foreach (var user in Model.Users) { #line default #line hidden WriteLiteral(" <tr>\r\n <td"); WriteLiteral(" class=\"text-center text-info text-capitalize\""); WriteLiteral(">\r\n <strong>\r\n"); WriteLiteral(" "); #line 64 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" Write(Html.ActionLink(@user.Email, MVC.Administrator.User.ActionNames.Edit, MVC.Administrator.User.Name, new { id = user.Id, area = MVC.Administrator.Name }, new { @class = "text-info" })); #line default #line hidden WriteLiteral("\r\n </strong>\r\n\r\n\r\n </td" + ">\r\n <td"); WriteLiteral(" class=\"text-center text-capitalize\""); WriteLiteral(">"); #line 71 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" Write(user.UserName); #line default #line hidden WriteLiteral("</td>\r\n <td"); WriteLiteral(" class=\"text-center\""); WriteLiteral(">"); #line 72 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" Write(user.Name); #line default #line hidden WriteLiteral("</td>\r\n\r\n <td"); WriteLiteral(" class=\"text-center\""); WriteLiteral(">\r\n"); #line 75 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" #line default #line hidden #line 75 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" if (!user.IsBanned) { #line default #line hidden WriteLiteral(" "); WriteLiteral("\r\n <i"); WriteLiteral(" class=\"fa fa-check text-success\""); WriteLiteral("></i>\r\n "); WriteLiteral("\r\n"); #line 80 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" } else { #line default #line hidden WriteLiteral(" "); WriteLiteral("\r\n <i"); WriteLiteral(" class=\"fa fa-minus text-info\""); WriteLiteral("></i>\r\n "); WriteLiteral("\r\n"); #line 86 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" } #line default #line hidden WriteLiteral(" </td>\r\n <td"); WriteLiteral(" class=\"text-center\""); WriteLiteral(">\r\n"); #line 89 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" #line default #line hidden #line 89 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" if (user.IsDeleted) { #line default #line hidden WriteLiteral(" "); WriteLiteral("\r\n <i"); WriteLiteral(" class=\"fa fa-check text-success\""); WriteLiteral("></i>\r\n "); WriteLiteral("\r\n"); #line 94 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" } else { #line default #line hidden WriteLiteral(" "); WriteLiteral("\r\n <i"); WriteLiteral(" class=\"fa fa-minus text-info\""); WriteLiteral("></i>\r\n "); WriteLiteral("\r\n"); #line 100 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" } #line default #line hidden WriteLiteral(" </td>\r\n\r\n <td"); WriteLiteral(" class=\"text-center\""); WriteLiteral(">\r\n"); #line 104 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" #line default #line hidden #line 104 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" if (user.EmailConfirmed) { #line default #line hidden WriteLiteral(" "); WriteLiteral("\r\n <i"); WriteLiteral(" class=\"fa fa-check text-success\""); WriteLiteral("></i>\r\n "); WriteLiteral("\r\n"); #line 109 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" } else { #line default #line hidden WriteLiteral(" "); WriteLiteral("\r\n <i"); WriteLiteral(" class=\"fa fa-minus text-info\""); WriteLiteral("></i>\r\n "); WriteLiteral("\r\n"); #line 115 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" } #line default #line hidden WriteLiteral(" </td>\r\n <td"); WriteLiteral(" class=\"text-center\""); WriteLiteral(">\r\n"); #line 118 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" #line default #line hidden #line 118 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" if (user.IsSystemAccount) { #line default #line hidden WriteLiteral(" "); WriteLiteral("\r\n <i"); WriteLiteral(" class=\"fa fa-check text-success\""); WriteLiteral("></i>\r\n "); WriteLiteral("\r\n"); #line 123 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" } else { #line default #line hidden WriteLiteral(" "); WriteLiteral("\r\n <i"); WriteLiteral(" class=\"fa fa-minus text-info\""); WriteLiteral("></i>\r\n "); WriteLiteral("\r\n"); #line 129 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" } #line default #line hidden WriteLiteral(" </td>\r\n\r\n <td"); WriteLiteral(" class=\"text-center\""); WriteLiteral(">"); #line 132 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" Write(user.RegisterDate); #line default #line hidden WriteLiteral("</td>\r\n <td"); WriteLiteral(" class=\"text-left\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 134 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" Write(Html.ActionLink("ویرایش", MVC.Administrator.User.ActionNames.Edit, MVC.Administrator.User.Name, new { id = user.Id, area = MVC.Administrator.Name }, new { @class = "btn btn-sm btn-primary" })); #line default #line hidden WriteLiteral("\r\n </td>\r\n </tr>\r\n"); #line 139 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" } #line default #line hidden WriteLiteral(" </tbody>\r\n\r\n </table>\r\n </div>\r\n </div>\r\n</d" + "iv>\r\n<div"); WriteLiteral(" class=\"panel-footer\""); WriteLiteral(">\r\n\r\n"); #line 148 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" #line default #line hidden #line 148 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" using (Ajax.BeginForm(MVC.Administrator.User.ActionNames.ListAjax, MVC.Administrator.User.Name, new { area = "Administrator" }, new AjaxOptions { HttpMethod = "POST", InsertionMode = InsertionMode.Replace, UpdateTargetId = "userList", OnComplete = "onComplete", OnSuccess = "AjaxForm.ResetButton('userSearchButton')" }, new { @class = "form-horizontal", id = "userFilterForm" })) { #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 152 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" Write(Html.EncryptedHidden("SearchFieldValue", Model.SearchRequest.SearchFieldValue)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 153 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" Write(Html.EncryptedHidden("SearchField", Model.SearchRequest.SearchField)); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-3\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 155 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" Write(Html.EditorFor(a => Model.SearchRequest.SortBy, MVC.Administrator.Shared.Views.EditorTemplates.Enum, "SortBy")); #line default #line hidden WriteLiteral("\r\n </div>\r\n <div"); WriteLiteral(" class=\"col-md-2\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 158 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" Write(Html.EditorFor(a => Model.SearchRequest.SortDirection, MVC.Administrator.Shared.Views.EditorTemplates.Enum, "SortDirection")); #line default #line hidden WriteLiteral("\r\n </div>\r\n <div"); WriteLiteral(" class=\"col-md-1\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 161 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" Write(Html.EditorFor(a => Model.SearchRequest.PageSize, MVC.Administrator.Shared.Views.EditorTemplates.Enum, "PageSize")); #line default #line hidden WriteLiteral("\r\n </div>\r\n\r\n <div"); WriteLiteral(" class=\"col-md-2\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" autocomplete=\"off\""); WriteLiteral(" onclick=\"AjaxForm.CustomSubmit(this, \'userFilterForm\')\""); WriteLiteral(" id=\"userFilterButton\""); WriteLiteral("\r\n data-loading-text=\"در حال ارسال\""); WriteLiteral(" class=\"btn btn-success btn-md\""); WriteLiteral(">\r\n مرتب کن\r\n </button>\r\n </div>\r\n\r\n" + " </div>\r\n"); #line 172 "..\..\Areas\Administrator\Views\User\_ListAjax.cshtml" } #line default #line hidden WriteLiteral("\r\n\r\n\r\n</div>\r\n\r\n<script>\r\n Public.Routin();\r\n</script>\r\n\r\n"); }
public override void Execute() { #line 3 "..\..\Areas\Administrator\Views\User\List.cshtml" ViewBag.Title = "مدیریت کاربران"; #line default #line hidden WriteLiteral("\r\n<div"); WriteLiteral(" class=\"panel panel-default\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"panel-heading\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"col-md-3\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 10 "..\..\Areas\Administrator\Views\User\List.cshtml" Write(Html.ActionLink("درج کاربر جدید", MVC.Administrator.User.ActionNames.Create, MVC.Administrator.User.Name, new { area = "Administrator" }, new { @class = "btn btn-sm btn-info" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n"); #line 17 "..\..\Areas\Administrator\Views\User\List.cshtml" #line default #line hidden #line 17 "..\..\Areas\Administrator\Views\User\List.cshtml" using (Ajax.BeginForm(MVC.Administrator.User.ActionNames.ListAjax, MVC.Administrator.User.Name, new { area = MVC.Administrator.Name }, new AjaxOptions { HttpMethod = "POST", InsertionMode = InsertionMode.Replace, UpdateTargetId = "userList", OnComplete = "onComplete", OnSuccess = "AjaxForm.ResetButton('userSearchButton')" }, new { @class = "form-horizontal", id = "userSearchForm" })) { #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"panel-body\""); WriteLiteral(">\r\n\r\n <div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"col-md-4\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 24 "..\..\Areas\Administrator\Views\User\List.cshtml" Write(Html.LabelFor(m => m.SearchFieldValue, new { @class = "col-md-4 control-label" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-8\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 26 "..\..\Areas\Administrator\Views\User\List.cshtml" Write(Html.TextBoxFor(m => m.SearchFieldValue, new { @class = "form-control" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n </d" + "iv>\r\n <div"); WriteLiteral(" class=\"col-md-2\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 32 "..\..\Areas\Administrator\Views\User\List.cshtml" Write(Html.LabelFor(m => m.SearchField, new { @class = "col-md-4 control-label" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-8\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 34 "..\..\Areas\Administrator\Views\User\List.cshtml" Write(Html.EditorFor(m => m.SearchField)); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n </d" + "iv>\r\n <div"); WriteLiteral(" class=\"col-md-3\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 40 "..\..\Areas\Administrator\Views\User\List.cshtml" Write(Html.LabelFor(m => m.Status, new { @class = "col-md-5 control-label" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-7\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 42 "..\..\Areas\Administrator\Views\User\List.cshtml" Write(Html.EditorFor(m => m.Status)); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n </d" + "iv>\r\n <div"); WriteLiteral(" class=\"col-md-2\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" autocomplete=\"off\""); WriteLiteral(" onclick=\"AjaxForm.CustomSubmit(this, \'userSearchForm\')\""); WriteLiteral(" id=\"userSearchButton\""); WriteLiteral("\r\n data-loading-text=\"در حال ارسال\""); WriteLiteral(" class=\"btn btn-success btn-md\""); WriteLiteral(">\r\n جستجو\r\n </button>\r\n " + "</div>\r\n\r\n </div>\r\n\r\n "); WriteLiteral("\r\n </div>\r\n"); #line 59 "..\..\Areas\Administrator\Views\User\List.cshtml" } #line default #line hidden WriteLiteral("\r\n</div>\r\n\r\n<div"); WriteLiteral(" class=\"panel panel-default\""); WriteLiteral(" id=\"userList\""); WriteLiteral(">\r\n\r\n\r\n"); #line 68 "..\..\Areas\Administrator\Views\User\List.cshtml" #line default #line hidden #line 68 "..\..\Areas\Administrator\Views\User\List.cshtml" Html.RenderAction(MVC.Administrator.User.ActionNames.ListAjax, MVC.Administrator.User.Name); #line default #line hidden WriteLiteral("\r\n\r\n</div>\r\n\r\n"); DefineSection("Scripts", () => { WriteLiteral("\r\n"); WriteLiteral(" "); #line 73 "..\..\Areas\Administrator\Views\User\List.cshtml" Write(Scripts.Render("~/bundles/jqueryval")); #line default #line hidden }); }
public override void Execute() { WriteLiteral("\r\n<div"); WriteLiteral(" class=\"modal fade\""); WriteLiteral(" id=\"taskCardModal\""); WriteLiteral(" tabindex=\"-1\""); WriteLiteral(" role=\"dialog\""); WriteLiteral(" aria-labelledby=\"lblAddTaskCard\""); WriteLiteral(" aria-hidden=\"true\""); WriteLiteral(" data-backdrop=\"static\""); WriteLiteral(" data-keyboard=\"false\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"modal-dialog modal-sm\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"modal-content\""); WriteLiteral(">\r\n"); #line 7 "..\..\Views\Tasks\_TaskCard.cshtml" #line default #line hidden #line 7 "..\..\Views\Tasks\_TaskCard.cshtml" using (Ajax.BeginForm("UpdateCard", "Tasks", new AjaxOptions { OnBegin = "cardManager.beforeCardUpdate", OnSuccess = "cardManager.onCardUpdated", OnFailure = "cardManager.onCardUpdateFailure" }, new { id = "updateCardForm" })) { #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"modal-header\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" class=\"btn-rounded btn-small btn-dismiss right\""); WriteLiteral(" data-dismiss=\"modal\""); WriteLiteral(" aria-hidden=\"true\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-sm icon-cancel\""); WriteLiteral("></span>\r\n </button>\r\n <h4"); WriteLiteral(" class=\"modal-title\""); WriteLiteral(" id=\"lblAddTaskCard\""); WriteLiteral(">KARTA DO ZADANIA</h4>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"modal-body\""); WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"taskCardContent\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"hidden\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"card-title-area\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-ctrl-area\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 25 "..\..\Views\Tasks\_TaskCard.cshtml" Write(Html.TextBoxFor(m => m.Title, new { @class = "form-ctrl", placeholder = "Tytuł karty", id = "cardTitle" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n " + " <div"); WriteLiteral(" id=\"cardItemInputArea\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-ctrl-area\""); WriteLiteral(">\r\n <input"); WriteLiteral(" id=\"cardItemInput\""); WriteLiteral(" type=\"text\""); WriteLiteral(" class=\"form-ctrl\""); WriteLiteral(" fl-omit />\r\n </div>\r\n " + "</div>\r\n <div"); WriteLiteral(" class=\"card-actions\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"card-select-actions\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" class=\"btn-rounded btn-small btn-turquoise btn-card-item\""); WriteLiteral("\r\n data-item=\""); #line 36 "..\..\Views\Tasks\_TaskCard.cshtml" Write(ItemType.Email); #line default #line hidden WriteLiteral("\""); WriteLiteral("\r\n data-title=\"Adres email\""); WriteLiteral(" title=\"Dodaj adres e-mail\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-sm icon-mail\""); WriteLiteral("></span>\r\n </button>\r\n " + " <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" class=\"btn-rounded btn-small btn-turquoise btn-card-item\""); WriteLiteral("\r\n data-item=\""); #line 41 "..\..\Views\Tasks\_TaskCard.cshtml" Write(ItemType.ContactPerson); #line default #line hidden WriteLiteral("\""); WriteLiteral("\r\n data-title=\"Osoba kontaktowa\""); WriteLiteral(" title=\"Dodaj osobę kontaktową\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-sm icon-contact\""); WriteLiteral("></span>\r\n </button>\r\n " + " <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" class=\"btn-rounded btn-small btn-turquoise btn-card-item\""); WriteLiteral("\r\n data-item=\""); #line 46 "..\..\Views\Tasks\_TaskCard.cshtml" Write(ItemType.Address); #line default #line hidden WriteLiteral("\""); WriteLiteral("\r\n data-title=\"Adres\""); WriteLiteral(" title=\"Dodaj adres\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-sm icon-home\""); WriteLiteral("></span>\r\n </button>\r\n " + " <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" class=\"btn-rounded btn-small btn-turquoise btn-card-item\""); WriteLiteral("\r\n data-item=\""); #line 51 "..\..\Views\Tasks\_TaskCard.cshtml" Write(ItemType.Phone); #line default #line hidden WriteLiteral("\""); WriteLiteral("\r\n data-title=\"Telefon\""); WriteLiteral(" title=\"Dodaj numer telefonu\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-sm icon-phone\""); WriteLiteral("></span>\r\n </button>\r\n " + " <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" class=\"btn-rounded btn-small btn-turquoise btn-card-item\""); WriteLiteral("\r\n data-item=\""); #line 56 "..\..\Views\Tasks\_TaskCard.cshtml" Write(ItemType.Link); #line default #line hidden WriteLiteral("\""); WriteLiteral("\r\n data-title=\"Link\""); WriteLiteral(" title=\"Dodaj link\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-sm icon-link\""); WriteLiteral("></span>\r\n </button>\r\n " + " </div>\r\n <div"); WriteLiteral(" class=\"card-apply-actions\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" id=\"btnSaveCardItem\""); WriteLiteral(" class=\"btn-rounded btn-small btn-turquoise\""); WriteLiteral(" title=\"Zapisz\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-sm icon-save\""); WriteLiteral("></span>\r\n </button>\r\n " + " <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" id=\"btnCancelCardItem\""); WriteLiteral(" class=\"btn-rounded btn-small btn-dismiss\""); WriteLiteral(" title=\"Anuluj\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-sm icon-cancel\""); WriteLiteral("></span>\r\n </button>\r\n " + " </div>\r\n </div> \r\n" + " <hr"); WriteLiteral(" class=\"separator\""); WriteLiteral(" />\r\n <div"); WriteLiteral(" id=\"cardItems\""); WriteLiteral(" data-fl-dynamic-area>\r\n "); WriteLiteral("\r\n </div>\r\n </div>\r\n " + " </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"modal-footer\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"submit\""); WriteLiteral(" class=\"btn-rounded btn-turquoise disabled\""); WriteLiteral(" title=\"Zapisz\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-lg icon-save\""); WriteLiteral("></span>\r\n </button>\r\n </div>\r\n"); WriteLiteral(" <div>\r\n"); WriteLiteral(" "); #line 83 "..\..\Views\Tasks\_TaskCard.cshtml" Write(Html.Hidden("Id")); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 84 "..\..\Views\Tasks\_TaskCard.cshtml" Write(Html.Hidden("TaskId")); #line default #line hidden WriteLiteral("\r\n </div>\r\n"); #line 86 "..\..\Views\Tasks\_TaskCard.cshtml" } #line default #line hidden WriteLiteral(" </div>\r\n </div>\r\n</div>"); }
public override void Execute() { WriteLiteral("<tr"); WriteLiteral(" data-award-id=\""); #line 3 "..\..\Views\Awards\AwardSinglePartial.cshtml" Write(Model.Id); #line default #line hidden WriteLiteral("\""); WriteLiteral(">\n <td>\n"); #line 5 "..\..\Views\Awards\AwardSinglePartial.cshtml" #line default #line hidden #line 5 "..\..\Views\Awards\AwardSinglePartial.cshtml" if (@Model.PhotoAward == null) { #line default #line hidden #line 7 "..\..\Views\Awards\AwardSinglePartial.cshtml" Write(Html.ActionLink("Нет фото", "GetAwardById", "Awards", new { id = @Model.Id }, new { @class = "awardItem" })); #line default #line hidden #line 7 "..\..\Views\Awards\AwardSinglePartial.cshtml" } else { #line default #line hidden WriteLiteral(" <a"); WriteAttribute("href", Tuple.Create(" href=\"", 304), Tuple.Create("\"", 372) #line 11 "..\..\Views\Awards\AwardSinglePartial.cshtml" , Tuple.Create(Tuple.Create("", 311), Tuple.Create <System.Object, System.Int32>(Url.Action("GetAwardById", "Awards", new { id = @Model.Id }) #line default #line hidden , 311), false) ); WriteLiteral(" class=\"awardItem\""); WriteLiteral(" >\n <img"); WriteLiteral(" width=\"75\""); WriteLiteral(" height=\"75\""); WriteAttribute("src", Tuple.Create(" src=\"", 437), Tuple.Create("\"", 500) #line 12 "..\..\Views\Awards\AwardSinglePartial.cshtml" , Tuple.Create(Tuple.Create("", 443), Tuple.Create <System.Object, System.Int32>(Url.Action("GetPhotoAward", "Awards", new { @Model.Id }) #line default #line hidden , 443), false) ); WriteAttribute("title", Tuple.Create(" title=", 501), Tuple.Create("", 524) #line 12 "..\..\Views\Awards\AwardSinglePartial.cshtml" , Tuple.Create(Tuple.Create("", 508), Tuple.Create <System.Object, System.Int32>(Model.NameAward #line default #line hidden , 508), false) ); WriteLiteral(" />\n </a>\n"); #line 14 "..\..\Views\Awards\AwardSinglePartial.cshtml" } #line default #line hidden WriteLiteral(" </td>\n\n <td>\n"); WriteLiteral(" "); #line 18 "..\..\Views\Awards\AwardSinglePartial.cshtml" Write(Html.DisplayFor(modelItem => @Model.NameAward)); #line default #line hidden WriteLiteral("\n </td>\n <td>\n"); WriteLiteral(" "); #line 21 "..\..\Views\Awards\AwardSinglePartial.cshtml" Write(Html.DisplayFor(modelItem => @Model.DescriptionAward)); #line default #line hidden WriteLiteral("\n </td>\n\n"); #line 24 "..\..\Views\Awards\AwardSinglePartial.cshtml" #line default #line hidden #line 24 "..\..\Views\Awards\AwardSinglePartial.cshtml" if (Request.IsAuthenticated && (HttpContext.Current.User.IsInRole("Admin") || HttpContext.Current.User.IsInRole("CandidateAdmin"))) { #line default #line hidden WriteLiteral(" <td>\n"); WriteLiteral(" "); #line 27 "..\..\Views\Awards\AwardSinglePartial.cshtml" Write(Html.ActionLink("Изменить", "EditAward", new { id = @Model.Id }, new { @class = "btn btn-default" })); #line default #line hidden WriteLiteral(" \n\n"); #line 29 "..\..\Views\Awards\AwardSinglePartial.cshtml" #line default #line hidden #line 29 "..\..\Views\Awards\AwardSinglePartial.cshtml" using (Ajax.BeginForm("DeleteAward", "Awards", new { id = @Model.Id }, new AjaxOptions() { Confirm = "Удалить награду " + @Model.NameAward + "?", HttpMethod = "POST", OnSuccess = "OnAwardRemove", OnFailure = "OnError" }, new { @style = "display: inline-block" })) { #line default #line hidden #line 33 "..\..\Views\Awards\AwardSinglePartial.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 33 "..\..\Views\Awards\AwardSinglePartial.cshtml" #line default #line hidden WriteLiteral(" <input"); WriteLiteral(" data-val=\"true\""); WriteLiteral(" data-val-number=\"Это поле должно быть целым числом.\""); WriteLiteral(" data-val-required=\"Требуется поле Id.\""); WriteLiteral(" id=\"Id\""); WriteLiteral(" name=\"Id\""); WriteLiteral(" type=\"hidden\""); WriteAttribute("value", Tuple.Create(" value=\"", 1530), Tuple.Create("\"", 1547) #line 34 "..\..\Views\Awards\AwardSinglePartial.cshtml" , Tuple.Create(Tuple.Create("", 1538), Tuple.Create <System.Object, System.Int32>(Model.Id #line default #line hidden , 1538), false) ); WriteLiteral(" />\n"); WriteLiteral(" <input"); WriteLiteral(" type=\"submit\""); WriteLiteral(" value=\"Удалить\""); WriteLiteral(" class=\"btn btn-danger\""); WriteLiteral(" />\n"); #line 36 "..\..\Views\Awards\AwardSinglePartial.cshtml" } #line default #line hidden WriteLiteral(" </td>\n"); #line 38 "..\..\Views\Awards\AwardSinglePartial.cshtml" } #line default #line hidden WriteLiteral("</tr>\n\n\n"); }
public override void Execute() { WriteLiteral("<div"); WriteLiteral(" class=\"col-md-12\""); WriteAttribute("id", Tuple.Create(" id=\"", 106), Tuple.Create("\"", 125) , Tuple.Create(Tuple.Create("", 111), Tuple.Create("role-", 111), true) #line 4 "..\..\Views\Role\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 116), Tuple.Create <System.Object, System.Int32>(Model.Id #line default #line hidden , 116), false) ); WriteLiteral(">\r\n"); #line 5 "..\..\Views\Role\_Edit.cshtml" #line default #line hidden #line 5 "..\..\Views\Role\_Edit.cshtml" using (Ajax.BeginForm(MVC.Role.Edit(), new AjaxOptions { HttpMethod = "POST", OnComplete = "editOnComplete(xhr, status, '" + Model.Id + "','#editButton" + Model.Id + "')" }, new { @class = "form-horizontal", id = Model.Id, autocomplete = "off", data_ajax_update = "role-" + Model.Id })) { #line default #line hidden #line 7 "..\..\Views\Role\_Edit.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 7 "..\..\Views\Role\_Edit.cshtml" #line default #line hidden #line 8 "..\..\Views\Role\_Edit.cshtml" Write(Html.HiddenFor(a => a.Id)); #line default #line hidden #line 8 "..\..\Views\Role\_Edit.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"panel panel-default\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"panel-heading\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"col-md-5\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 14 "..\..\Views\Role\_Edit.cshtml" Write(Html.TextBoxFor(m => m.Name, new { @class = "form-control", autocomplete = "off", placeholder = "نام گروه" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 15 "..\..\Views\Role\_Edit.cshtml" Write(Html.ValidationMessageFor(m => m.Name, "", new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n </d" + "iv>\r\n <div"); WriteLiteral(" class=\"panel-body\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"col-md-12\""); WriteLiteral(">\r\n <ul"); WriteLiteral(" class=\"list-group row margin-bottom-0\""); WriteLiteral(">\r\n"); #line 23 "..\..\Views\Role\_Edit.cshtml" #line default #line hidden #line 23 "..\..\Views\Role\_Edit.cshtml" foreach (var p in Model.Permissions) { #line default #line hidden WriteLiteral(" <li"); WriteLiteral(" class=\"list-group-item non-border col-xs-6 text-primary\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"col-md-12\""); WriteLiteral(">\r\n <input"); WriteLiteral(" type=\"checkbox\""); WriteLiteral(" "); #line 27 "..\..\Views\Role\_Edit.cshtml" if (p.Selected) { #line default #line hidden WriteLiteral(" "); WriteLiteral(" checked=\"checked\" "); WriteLiteral(" "); #line 27 "..\..\Views\Role\_Edit.cshtml" } #line default #line hidden WriteLiteral(" id=\""); #line 28 "..\..\Views\Role\_Edit.cshtml" Write(p.Value); #line default #line hidden WriteLiteral("\" name=\"PermissionNames\" value=\""); #line 28 "..\..\Views\Role\_Edit.cshtml" Write(p.Value); #line default #line hidden WriteLiteral("\" class=\"checkbox-inline\" />\r\n <label"); WriteLiteral(" class=\"control-label\""); WriteAttribute("for", Tuple.Create(" for=\"", 1801), Tuple.Create("\"", 1815) #line 29 "..\..\Views\Role\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 1807), Tuple.Create <System.Object, System.Int32>(p.Value #line default #line hidden , 1807), false) ); WriteLiteral(">"); #line 29 "..\..\Views\Role\_Edit.cshtml" Write(p.Text); #line default #line hidden WriteLiteral("</label>\r\n </div>\r\n " + " </li>\r\n"); #line 32 "..\..\Views\Role\_Edit.cshtml" } #line default #line hidden WriteLiteral(" </ul>\r\n </div>\r\n " + " </div>\r\n </div>\r\n <div"); WriteLiteral(" class=\"panel-footer block\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"pull-left\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteAttribute("id", Tuple.Create(" id=\"", 2219), Tuple.Create("\"", 2250) #line 39 "..\..\Views\Role\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 2224), Tuple.Create <System.Object, System.Int32>($"editButton{Model.Id}" #line default #line hidden , 2224), false) ); WriteLiteral(" autocomplete=\"off\""); WriteAttribute("onclick", Tuple.Create(" onclick=\"", 2270), Tuple.Create("\"", 2320) , Tuple.Create(Tuple.Create("", 2280), Tuple.Create("AjaxForm.CustomSubmit(this,", 2280), true) , Tuple.Create(Tuple.Create(" ", 2307), Tuple.Create("\'", 2308), true) #line 39 "..\..\Views\Role\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 2309), Tuple.Create <System.Object, System.Int32>(Model.Id #line default #line hidden , 2309), false) , Tuple.Create(Tuple.Create("", 2318), Tuple.Create("\')", 2318), true) ); WriteLiteral(" data-loading-text=\"در حال ارسال اطلاعات\""); WriteLiteral(" class=\"btn btn-success btn-sm\""); WriteLiteral(">\r\n <i"); WriteLiteral(" class=\"fa fa-check-square-o\""); WriteLiteral("></i>\r\n ذخیره تغییرات\r\n </butto" + "n>\r\n\r\n <a"); WriteLiteral(" class=\"btn btn-default btn-sm\""); WriteLiteral(" data-ajax=\"true\""); WriteLiteral("\r\n data-ajax-mode=\"REPLACE-WITH\""); WriteLiteral(" data-ajax-complete=\"cancelEditOnComplete(xhr, status)\""); WriteLiteral("\r\n data-ajax-update=\"#role-"); #line 46 "..\..\Views\Role\_Edit.cshtml" Write(Model.Id); #line default #line hidden WriteLiteral("\""); WriteLiteral(" data-ajax-method=\"POST\""); WriteAttribute("href", Tuple.Create("\r\n href=\"", 2816), Tuple.Create("\"", 2893) #line 47 "..\..\Views\Role\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 2851), Tuple.Create <System.Object, System.Int32>(Url.Action(MVC.Role.CancelEdit(Model.Id)) #line default #line hidden , 2851), false) ); WriteLiteral(" role=\"button\""); WriteLiteral(">\r\n <i"); WriteLiteral(" class=\"fa fa-arrow-right\""); WriteLiteral("></i>\r\n انصراف\r\n </a>\r\n " + " </div>\r\n <div"); WriteLiteral(" class=\"clearfix\""); WriteLiteral("></div>\r\n </div>\r\n </div>\r\n"); #line 55 "..\..\Views\Role\_Edit.cshtml" } #line default #line hidden WriteLiteral("</div>\r\n"); }
public override void Execute() { #line 1 "..\..\Areas\manage\Views\Home\Edit.cshtml" Layout = null; #line default #line hidden WriteLiteral("\r\n\r\n"); #line 10 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Scripts.Render("~/bundles/saos")); #line default #line hidden WriteLiteral("\r\n"); #line 11 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Scripts.Render("~/bundles/ajaxAsync")); #line default #line hidden WriteLiteral("\r\n"); #line 12 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Scripts.Render("~/bundles/validate")); #line default #line hidden WriteLiteral("\r\n"); #line 13 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Styles.Render("~/appcss")); #line default #line hidden WriteLiteral("\r\n<script"); WriteAttribute("src", Tuple.Create(" src=\"", 273), Tuple.Create("\"", 329) , Tuple.Create(Tuple.Create("", 279), Tuple.Create <System.Object, System.Int32>(Href("~/Content/lib/webuploader/0.1.5/webuploader.min.js") , 279), false) ); WriteLiteral(" type=\"text/javascript\""); WriteLiteral("></script>\r\n<script"); WriteLiteral(" type=\"text/javascript\""); WriteAttribute("src", Tuple.Create(" src=\"", 395), Tuple.Create("\"", 435) , Tuple.Create(Tuple.Create("", 401), Tuple.Create <System.Object, System.Int32>(Href("~/Content/lib/ckeditor/ckeditor.js") , 401), false) ); WriteLiteral("></script>\r\n<style"); WriteLiteral(" type=\"text/css\""); WriteLiteral(">\r\n .form-horizontal .form-label {\r\n text-align: right;\r\n }\r\n</style" + ">\r\n<nav"); WriteLiteral(" class=\"breadcrumb\""); WriteLiteral("><i"); WriteLiteral(" class=\"Hui-iconfont\""); WriteLiteral("></i> 首页 <span"); WriteLiteral(" class=\"c-gray en\""); WriteLiteral(">></span><a"); WriteLiteral(" href=\"javascript:void(0)\""); WriteLiteral(" onclick=\"location.reload()\""); WriteLiteral(">企业管理</a> </nav>\r\n<article"); WriteLiteral(" class=\"page-container\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"tabBar cl\""); WriteLiteral(" id=\"tabBarList\""); WriteLiteral(">\r\n <span"); WriteLiteral(" data-bind=\"tabCon1\""); WriteLiteral(" data-type=\""); #line 24 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(RotationType.UnKnown); #line default #line hidden WriteLiteral("\""); WriteLiteral(" class=\"current\""); WriteLiteral(">基本信息</span>\r\n <span"); WriteLiteral(" data-bind=\"tabCon2\""); WriteLiteral(" data-type=\""); #line 25 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(RotationType.Banner); #line default #line hidden WriteLiteral("\""); WriteLiteral(" class=\"\""); WriteLiteral(">轮播图管理</span>\r\n <span"); WriteLiteral(" data-bind=\"tabCon2\""); WriteLiteral(" data-type=\""); #line 26 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(RotationType.Logo); #line default #line hidden WriteLiteral("\""); WriteLiteral(" class=\"\""); WriteLiteral(">Logo链接管理</span>\r\n </div>\r\n <div"); WriteLiteral(" class=\"tabCon form-wrap tab-show\""); WriteLiteral(" id=\"tabCon1\""); WriteLiteral(">\r\n"); #line 29 "..\..\Areas\manage\Views\Home\Edit.cshtml" #line default #line hidden #line 29 "..\..\Areas\manage\Views\Home\Edit.cshtml" using (Ajax.BeginForm("Edit", "Home", new { }, new AjaxOptions() { HttpMethod = "Post", OnSuccess = "formSuccess(data)", OnBegin = "disSubmit('sub_btn')", OnComplete = "enSubmit('sub_btn')" }, new { id = "", @class = "form form-horizontal" })) { #line default #line hidden #line 31 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 31 "..\..\Areas\manage\Views\Home\Edit.cshtml" #line default #line hidden #line 32 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.HiddenFor(m => m.Id)); #line default #line hidden #line 32 "..\..\Areas\manage\Views\Home\Edit.cshtml" #line default #line hidden #line 33 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.HiddenFor(m => m.Number)); #line default #line hidden #line 33 "..\..\Areas\manage\Views\Home\Edit.cshtml" #line default #line hidden #line 34 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.HiddenFor(m => m.Logo)); #line default #line hidden #line 34 "..\..\Areas\manage\Views\Home\Edit.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-sm-2 \""); WriteLiteral(">微信公众号:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-sm-6 \""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(" "); #line 38 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(string.IsNullOrEmpty(Model.WeChat) ? "" : "style=position:relative"); #line default #line hidden WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"upfileImg\""); WriteAttribute("class", Tuple.Create(" class=\"", 1899), Tuple.Create("\"", 1972) , Tuple.Create(Tuple.Create("", 1907), Tuple.Create("up-img-left", 1907), true) #line 39 "..\..\Areas\manage\Views\Home\Edit.cshtml" , Tuple.Create(Tuple.Create(" ", 1918), Tuple.Create <System.Object, System.Int32>(string.IsNullOrEmpty(Model.WeChat) ?"":"up-imgBtn" #line default #line hidden , 1919), false) ); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 40 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(string.IsNullOrEmpty(Model.WeChat) ? "上传图片" : "更改图片"); #line default #line hidden WriteLiteral("\r\n </div>\r\n <span"); WriteAttribute("class", Tuple.Create(" class=\"", 2122), Tuple.Create("\"", 2209) , Tuple.Create(Tuple.Create("", 2130), Tuple.Create("help-block", 2130), true) , Tuple.Create(Tuple.Create(" ", 2140), Tuple.Create("help-tip", 2141), true) , Tuple.Create(Tuple.Create(" ", 2149), Tuple.Create("help-img", 2150), true) #line 42 "..\..\Areas\manage\Views\Home\Edit.cshtml" , Tuple.Create(Tuple.Create(" ", 2158), Tuple.Create <System.Object, System.Int32>(string.IsNullOrEmpty(Model.WeChat) ?"":"hidden" #line default #line hidden , 2159), false) ); WriteLiteral(" style=\"top:8px;position:absolute\""); WriteLiteral(">请上传jpg、jpeg、gif、bmp、png等图片类型的公众号二维码</span>\r\n <div"); WriteLiteral(" class=\"formControls\""); WriteLiteral(">\r\n <ul"); WriteLiteral(" id=\"imglist\""); WriteAttribute("class", Tuple.Create(" class=\"", 2385), Tuple.Create("\"", 2443) #line 44 "..\..\Areas\manage\Views\Home\Edit.cshtml" , Tuple.Create(Tuple.Create("", 2393), Tuple.Create <System.Object, System.Int32>(string.IsNullOrEmpty(Model.WeChat)?"hidden":"" #line default #line hidden , 2393), false) , Tuple.Create(Tuple.Create(" ", 2442), Tuple.Create("", 2442), true) ); WriteLiteral(">\r\n <li>\r\n"); #line 46 "..\..\Areas\manage\Views\Home\Edit.cshtml" #line default #line hidden #line 46 "..\..\Areas\manage\Views\Home\Edit.cshtml" if (!string.IsNullOrEmpty(Model.SmallHeadImg)) { #line default #line hidden WriteLiteral(" <img"); WriteAttribute("src", Tuple.Create(" src=\"", 2653), Tuple.Create("\"", 2678) #line 48 "..\..\Areas\manage\Views\Home\Edit.cshtml" , Tuple.Create(Tuple.Create("", 2659), Tuple.Create <System.Object, System.Int32>(Model.SmallHeadImg #line default #line hidden , 2659), false) ); WriteLiteral(" style=\"max-width:125px\""); WriteLiteral(" onerror=\'nofind()\'"); WriteLiteral(" />\r\n"); #line 49 "..\..\Areas\manage\Views\Home\Edit.cshtml" } #line default #line hidden WriteLiteral(" </li>\r\n </ul>\r\n " + " <input"); WriteLiteral(" type=\"hidden\""); WriteLiteral(" id=\"loc_temp_img\""); WriteLiteral(" />\r\n </div>\r\n </div>\r\n"); WriteLiteral(" "); #line 55 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.HiddenFor(m => m.WeChat, new { id = "memberFileImg" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-sm-2 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>企业名称:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-sm-3 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 61 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.TextBoxFor(m => m.OrgName, new { placeholder = "请输入企业名称", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 62 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.ValidationMessageFor(m => m.OrgName, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n <label"); WriteLiteral(" class=\"form-label col-sm-2 \""); WriteLiteral(">企业电话:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-sm-3 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 66 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.TextBoxFor(m => m.Telephone, new { placeholder = "请输入企业电话", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 67 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.ValidationMessageFor(m => m.Telephone, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-sm-2 \""); WriteLiteral(">企业邮箱:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-sm-3 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 73 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.TextBoxFor(m => m.Email, new { placeholder = "请输入企业邮箱", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 74 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.ValidationMessageFor(m => m.Email, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n <label"); WriteLiteral(" class=\"form-label col-sm-2 \""); WriteLiteral(">企业微博:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-sm-3 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 78 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.TextBoxFor(m => m.Blog, new { placeholder = "请输入企业微博", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 79 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.ValidationMessageFor(m => m.Blog, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-sm-2 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>企业地址:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-sm-8 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 85 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.TextBoxFor(m => m.Address, new { @class = "input-text", placeholder = "请输入企业地址" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 86 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.ValidationMessageFor(m => m.Address, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-sm-2 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>企业简介:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-sm-8 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 92 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.TextAreaFor(m => m.Description, new { @class = "textarea", rows = "5", placeholder = "请输入协会简介..." })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 93 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.ValidationMessageFor(m => m.Description, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 96 "..\..\Areas\manage\Views\Home\Edit.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-sm-2 \""); WriteLiteral(">组织架构:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-sm-8 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 100 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.TextAreaFor(m => m.Framework, new { @class = "ckeditor textarea", rows = "10", placeholder = "请输入组织架构..." })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-sm-2 \""); WriteLiteral(">企业详情:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-sm-8 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 106 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Html.TextAreaFor(m => m.Detail, new { @class = "ckeditor textarea", rows = "10", placeholder = "请输入协会详情..." })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"btn_submit\""); WriteLiteral(" class=\"col-xs-6 col-xs-offset-3 col-sm-offset-2 mt-10\""); WriteLiteral(">\r\n <button"); WriteLiteral(" class=\"btn btn-primary radius\""); WriteLiteral(" type=\"submit\""); WriteLiteral(" id=\"sub_btn\""); WriteLiteral(">保存</button>\r\n </div>\r\n </div>\r\n"); #line 114 "..\..\Areas\manage\Views\Home\Edit.cshtml" } #line default #line hidden WriteLiteral(" </div>\r\n <div"); WriteLiteral(" class=\"tabCon\""); WriteLiteral(" id=\"tabCon2\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"cl pd-10 mt-10 search-wrap\""); WriteLiteral(" style=\"padding-left:0px;padding-right:0px\""); WriteLiteral(">\r\n <button"); WriteLiteral(" class=\"btn btn-primary float-right hidden\""); WriteLiteral(" id=\"btnRotation1\""); WriteAttribute("onclick", Tuple.Create(" onclick=\"", 6732), Tuple.Create("\"", 6812) , Tuple.Create(Tuple.Create("", 6742), Tuple.Create("ration_add(\'新建轮播\',\'", 6742), true) #line 118 "..\..\Areas\manage\Views\Home\Edit.cshtml" , Tuple.Create(Tuple.Create("", 6761), Tuple.Create <System.Object, System.Int32>(Url.Action("AddRotation") #line default #line hidden , 6761), false) , Tuple.Create(Tuple.Create("", 6787), Tuple.Create("\',\'", 6787), true) #line 118 "..\..\Areas\manage\Views\Home\Edit.cshtml" , Tuple.Create(Tuple.Create("", 6790), Tuple.Create <System.Object, System.Int32>(RotationType.Banner #line default #line hidden , 6790), false) , Tuple.Create(Tuple.Create("", 6810), Tuple.Create("\')", 6810), true) ); WriteLiteral(" type=\"button\""); WriteLiteral(">新建轮播</button>\r\n <button"); WriteLiteral(" class=\"btn btn-primary float-right hidden\""); WriteLiteral(" id=\"btnRotation2\""); WriteAttribute("onclick", Tuple.Create(" onclick=\"", 6923), Tuple.Create("\"", 7005) , Tuple.Create(Tuple.Create("", 6933), Tuple.Create("ration_add(\'新建Logo轮播\',\'", 6933), true) #line 119 "..\..\Areas\manage\Views\Home\Edit.cshtml" , Tuple.Create(Tuple.Create("", 6956), Tuple.Create <System.Object, System.Int32>(Url.Action("AddRotation") #line default #line hidden , 6956), false) , Tuple.Create(Tuple.Create("", 6982), Tuple.Create("\',\'", 6982), true) #line 119 "..\..\Areas\manage\Views\Home\Edit.cshtml" , Tuple.Create(Tuple.Create("", 6985), Tuple.Create <System.Object, System.Int32>(RotationType.Logo #line default #line hidden , 6985), false) , Tuple.Create(Tuple.Create("", 7003), Tuple.Create("\')", 7003), true) ); WriteLiteral(" type=\"button\""); WriteLiteral(">新建Logo轮播</button>\r\n <span"); WriteLiteral(" class=\"help-block help-tip \""); WriteLiteral(" style=\"font-size:13px\""); WriteLiteral(">最多可添加<i"); WriteLiteral(" style=\"color:red;padding-right:3px;display:inline-block\""); WriteLiteral(" id=\"ration-num\""); WriteLiteral(">5</i>张轮播图,可通过鼠标拖动改变显示顺序</span>\r\n </div>\r\n <div"); WriteLiteral(" style=\"margin-top:-10px\""); WriteLiteral(">\r\n <table"); WriteLiteral(" id=\"tbTable\""); WriteLiteral(" class=\"table table-border table-bordered table-bg table-sort\""); WriteLiteral(">\r\n <thead>\r\n <tr"); WriteLiteral(" class=\"text-c\""); WriteLiteral(">\r\n <th"); WriteLiteral(" width=\"8%\""); WriteLiteral(">序号</th>\r\n <th"); WriteLiteral(" width=\"15%\""); WriteLiteral(">轮播图片</th>\r\n <th>链接地址</th>\r\n <th"); WriteLiteral(" width=\"11%\""); WriteLiteral(">操作</th>\r\n </tr>\r\n </thead>\r\n </tabl" + "e>\r\n </div>\r\n </div>\r\n <div"); WriteLiteral(" class=\"hidden\""); WriteLiteral(">\r\n <input"); WriteLiteral(" type=\"hidden\""); WriteLiteral(" id=\"rotationType\""); WriteAttribute("value", Tuple.Create(" value=\"", 7804), Tuple.Create("\"", 7833) #line 136 "..\..\Areas\manage\Views\Home\Edit.cshtml" , Tuple.Create(Tuple.Create("", 7812), Tuple.Create <System.Object, System.Int32>(RotationType.UnKnown #line default #line hidden , 7812), false) ); WriteLiteral(" />\r\n <input"); WriteLiteral(" type=\"hidden\""); WriteLiteral(" id=\"rotationSort\""); WriteLiteral(" value=\"\""); WriteLiteral(" />\r\n </div>\r\n</article>\r\n\r\n"); #line 141 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Scripts.Render("~/bundles/datatable")); #line default #line hidden WriteLiteral("\r\n<script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(">\r\n var table1 = null;\r\n $(function () {\r\n table1 = initializeTable(" + ");\r\n var editor = CKEDITOR.replace(\'Framework\',\r\n {\r\n " + " height: 260,\r\n toolbar: \'Basic\',\r\n filebrowserImage" + "UploadUrl: \""); #line 150 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Url.Action("UploadEditer", "Upload")); #line default #line hidden WriteLiteral("\"\r\n });\r\n\r\n var editor1 = CKEDITOR.replace(\'Detail\',\r\n {\r" + "\n height: 260,\r\n toolbar: \'Basic\',\r\n filebro" + "wserImageUploadUrl: \""); #line 157 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Url.Action("UploadEditer", "Upload")); #line default #line hidden WriteLiteral(@""" }); //控制富文本编辑器复制粘贴图片方法 editor.on(""change"", pasteImg); editor1.on(""change"", pasteImg); $(""#tabBarList span"").each(function () { $(this).click(function () { $(this).addClass(""current"").siblings().removeClass(""current""); var attrId = $(this).attr(""data-bind""); var attrType = $(this).attr(""data-type""); $(""#"" + attrId).addClass(""tab-show"").siblings().removeClass(""tab-show""); if (attrType != '"); #line 170 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(RotationType.UnKnown); #line default #line hidden WriteLiteral("\') {\r\n if (attrType == \'"); #line 171 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(RotationType.Banner); #line default #line hidden WriteLiteral(@"') { $(""#btnRotation1"").removeClass(""hidden"").siblings(""button"").addClass(""hidden""); $(""#ration-num"").html(5); } else { $(""#btnRotation2"").removeClass(""hidden"").siblings(""button"").addClass(""hidden""); $(""#ration-num"").html(20); } $(""#rotationType"").val(attrType); table1.ajax.reload(); } }) }); var fixHelperModified = function (e, tr) { var $originals = tr.children(); var $helper = tr.clone(); $helper.children().each(function (index) { $(this).width($originals.eq(index).width()) }); return $helper; }, updateIndex = function (e, ui) { $('td.index', ui.item.parent()).each(function (i) { $(this).html(i + 1); }); var itemArray = new Array(); ui.item.parent().find(""tr"").each(function () { var attrId = $(this).attr(""data-bind""); itemArray.push(parseInt(attrId)); }); $(""#rotationSort"").val(JSON.stringify(itemArray)); $.ajax({ url: """); #line 206 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Url.Action("UpdateSort")); #line default #line hidden WriteLiteral(@""", type: ""Post"", data: { ""RotationType"": $(""#rotationType"").val(), ""SortJson"": $(""#rotationSort"").val() }, dataType: ""json"", success: function (data) { if (data.isSuccess) { table1.ajax.reload(); } else { layer.msg('排序失败'); } } }) }; $(""#tbTable tbody"").sortable({ helper: fixHelperModified, stop: updateIndex }).disableSelection(); }); /*编辑*/ function ration_deit(title, url, id) { var index = top.layer.open({ type: 2, title: title, area: ['750px', '450px'], content: url + ""?id="" + id }); } /*添加*/ function ration_add(title, url, type) { var rationCount = $(""#tbTable tbody tr"").length; if (type == '"); #line 239 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(RotationType.Banner); #line default #line hidden WriteLiteral("\' && rationCount >= 5) {\r\n layer.alert(\"最多添加Banner轮播不可超过5条\", 3);\r\n " + " return;\r\n }\r\n\r\n if (type == \'"); #line 244 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(RotationType.Logo); #line default #line hidden WriteLiteral(@"' && rationCount >= 20) { layer.alert(""最多添加Logo轮播不可超过20条"", 3); return; } var index = top.layer.open({ type: 2, title: title, area: ['750px', '450px'], content: url + ""?rotationType="" + type }); } function initializeTable() { var dataTable = $('#tbTable').DataTable({ ""serverSide"": true, ""ajax"": { ""url"": """); #line 261 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Url.Action("GetJsonData")); #line default #line hidden WriteLiteral(@""", ""type"": ""post"", ""data"": function (data) { data.pageIndex = (data.start / data.length) + 1; data.rotationType = $(""#rotationType"").val(); } }, ""columns"": [ { ""defaultContent"": """" }, { ""mDataProp"": ""SmallHeadImg"" }, { ""mDataProp"": ""WebLink"" }, { ""defaultContent"": """" } ], ""columnDefs"": [ { ""targets"": [1], ""data"": ""SmallHeadImg"", ""render"": function (data, type, full) { var result = ""<a class='fancybox' href='"" + full.HeadImg + ""' title='' data-rel='fancybox-button'><img src=\"""" + data + ""\"" class=\""thumbnail\"" onerror='nofind()' style='height:40px;padding:2px' /></a>""; if (data.length <= 0) { result = ""<img src='/Content/image/not-img.jpg' class=\""thumbnail\"" style='width:55px;padding:2px' />""; } return result; } }, { ""targets"": [-1], ""data"": ""Id"", ""render"": function (data, type, full) { var tmpString = ""<a onClick=\""ration_deit('修改轮播','"); #line 290 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Url.Action("EditRotation")); #line default #line hidden WriteLiteral("\',\" + data + \")\\\" href=\\\"javascript:;\\\" title=\\\"编辑\\\">编辑</a>\";\r\n " + " tmpString += \"<a href=\\\"javascript:;\\\" onClick=\\\"obj_del(\'轮播\',\'"); #line 291 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Url.Action("Delete")); #line default #line hidden WriteLiteral("\',\" + data + \")\\\" title=\\\"删除\\\">删除</a>\";\r\n\r\n return tmpString;" + "\r\n }\r\n }\r\n ],\r\n \"fnDrawCallback\"" + ": function () {\r\n var api = this.api();\r\n var star" + "tIndex = api.context[0]._iDisplayStart;\r\n api.column(0).nodes().e" + "ach(function (cell, i) {\r\n cell.innerHTML = startIndex + i + " + "1;\r\n });\r\n },\r\n \"rowCallback\": function (ro" + "w, data, displayIndex) {\r\n $(row).attr(\"class\", \"text-c\").attr(\"d" + "ata-bind\", data.Id);\r\n $(row).children(\'td\').eq(3).attr(\"class\", " + "\"td-manage\");\r\n $(row).children(\'td\').eq(0).css(\"cursor\", \"move\")" + ";\r\n },\r\n \"initComplete\": function (settings, json) {\r\n " + " handleFancybox();\r\n },\r\n language: {\r\n " + " lengthMenu: \'\',\r\n loadingRecords: \'数据加载中...\',\r\n " + " paginate: {\r\n previous: \"上一页\",\r\n nex" + "t: \"下一页\",\r\n first: \"\",\r\n last: \"\"\r\n " + " },\r\n zeroRecords: \"暂无数据\",\r\n\r\n info: \"<spa" + "n class=\'pagesStyle\'>总共<span class=\'recordsStyle\'> _TOTAL_ 条,计 _PAGES_ </span>页," + "当前显示 _START_ -- _END_ 条记录 </span>\",\r\n infoEmpty: \"0条记录\",\r\n " + " infoFiltered: \"\"\r\n },\r\n \"searching\": false,\r\n " + " \"ordering\": false,\r\n \"autoWidth\": false,\r\n \"iDispl" + "ayLength\": 50,\r\n \"processing\": true,\r\n //destroy: true, //" + "Cannot reinitialise DataTable,解决重新加载表格内容问题\r\n\r\n });\r\n\r\n //handleFan" + "cybox();\r\n return dataTable;\r\n }\r\n\r\n function formSuccess(result) {" + "\r\n if (result != null) {\r\n if (result.isSuccess) {\r\n " + " top.layer.alert(\'操作成功!\', {\r\n icon: 6, closeBtn: 0, yes:" + " function () {\r\n location.reload();\r\n " + " parent.layer.closeAll();\r\n }\r\n });\r\n " + " } else {\r\n top.layer.alert(\'操作失败!\', { icon: 5 });\r\n " + " }\r\n } else {\r\n top.layer.alert(\'操作失败!\', { icon: 5 });\r\n " + " }\r\n }\r\n</script>\r\n\r\n<script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(@"> var maxcount = 8; //上传参数 var jq_imgFormData = { BidFileDomain: ' ', uploadQueryData: { Suffix: 1 } }; if (!WebUploader.Uploader.support()) { $("".FJsp2"").html(""说明:当前浏览器不支持附件上传""); $(""#upfileImg"").hide(); //alert( 'Web Uploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器'); alert(""当前浏览器不支持附件上传,如果你使用的是IE浏览器,请尝试升级 flash 播放器""); throw new Error('WebUploader does not support the browser you are using.'); } var BASE_URL = ""/content/webuploader-0.1.5""; var file_ids = []; //已上传文件的路径 var file_info = []; //记录文件的GUID和存储路径 var isfilesuping = false; // 文件上传 jQuery(function () { var id = ""upfileImg""; var $ = jQuery, state = 'pending', $probar = $(""#"" + id).siblings(""div"").find("".pros""), uploader; uploader = WebUploader.create({ // 不压缩image resize: false, //发送后台时参数 formData: jq_imgFormData.uploadQueryData, fileVal: jq_imgFormData.BidFileDomain, method: ""POST"", //是否分块(大文件上传) chunked: true, //设置文件上传域名称 fileVal: 'file', //每块最大限制(默认5M 因为是.net 所以设置2M) chunkSize: 2097152, // swf文件路径 swf: BASE_URL + '/Uploader.swf', // 文件接收服务端。 server: jq_imgFormData.BidFileDomain + '"); #line 396 "..\..\Areas\manage\Views\Home\Edit.cshtml" Write(Url.Action("Upload", "Upload")); #line default #line hidden WriteLiteral("\',\r\n //创建选择文件按钮\r\n pick: { id: \"#\" + id, innerHTML: \"\", mult" + "iple: false },\r\n //选择文件自动上传\r\n auto: true,\r\n //a" + "ccept:{title:\"只能上传rar,zip文件\",extensions :\'rar,zip\',mimeTypes:\'application/x-zip-" + "compressed\'},\r\n fileNumLimit: maxcount\r\n });\r\n\r\n //文件大小" + "限制,超过则不加入队列\r\n uploader.on(\'beforeFileQueued\', function (file, han, msg) {" + "\r\n var xzlist = (\"jpg,jpeg,gif,bmp,png\").split(\",\");\r\n var" + " filenamelist = file.name.split(\'.\');\r\n var filehz = filenamelist[fil" + "enamelist.length - 1];\r\n\r\n if (xzlist.indexOf(filehz) < 0) {\r\n " + " layer.alert(\"请上传指定类型格式的文件\", 0);\r\n return false;\r\n " + " }\r\n\r\n if (file.size > (1024 * 1024 * 10)) {\r\n lay" + "er.alert(\"图片大小不可超过5M\", 0);\r\n return false;\r\n }\r\n\r\n " + " var filelen = $(\"#imglist>li\").length;\r\n if (filelen >= maxco" + "unt) {\r\n layer.alert(\"超出最大上传数量\", 0);\r\n return fals" + "e;\r\n }\r\n });\r\n //某个文件开始上传前触发,一个文件只会触发一次。\r\n uploa" + "der.on(\'uploadStart\', function (file) {\r\n uploader.options.formData.g" + "uid = WebUploader.Base.guid();\r\n });\r\n // 当有文件添加进来的时候\r\n upl" + "oader.on(\'fileQueued\', function (file) {\r\n $(\".help-img\").hide();\r\n " + " $(\".yangli\").hide()\r\n $(\".yulan\").show();\r\n uplo" + "ader.makeThumb(file, function (error, ret) {\r\n var file_list = []" + ";\r\n file_list.push(\"<li id=\'\" + file.id + \"\'>\");\r\n " + " file_list.push(\"<img src=\'\" + ret + \"\'/>\");\r\n file_list.push(\"<d" + "iv class=\'percent_small\'>\");\r\n file_list.push(\"<div class=\'per_pi" + "c2\'>\");\r\n file_list.push(\"<div class=\'change_per2\' style=\'width:1" + "%\'></div>\");\r\n file_list.push(\"</div>\");\r\n file_li" + "st.push(\"<span class=\'showtitle\'>正准备上传…</span></div>\");\r\n file_li" + "st.push(\"</div></li>\");\r\n $(\"#imglist\").empty().append(file_list." + "join(\'\'));\r\n });\r\n });\r\n //重置\r\n uploader.on(\'res" + "et\', function (file) {\r\n\r\n });\r\n // 文件上传过程中创建进度条实时显示。\r\n upl" + "oader.on(\'uploadProgress\', function (file, percentage) {\r\n var jd = p" + "arseInt(percentage * 100);\r\n if (jd > 1) {\r\n $(\"#\" + f" + "ile.id).find(\".change_per2\").css(\"width\", jd + \'%\');\r\n $(\"#\" + fi" + "le.id).find(\".per_pic2,.showtitle\").attr(\"title\", \'已上传\' + jd + \'%\');\r\n " + " $(\"#\" + file.id).find(\".showtitle\").text(\'已上传\' + jd + \'%\');\r\n }" + "\r\n if (jd >= 100) {\r\n $(\"#\" + file.id).find(\".per_pic2" + ",.showtitle\").attr(\"title\", \"处理中...\");\r\n }\r\n isfilesuping " + "= uploader.getStats().progressNum != 0;\r\n });\r\n\r\n uploader.on(\'upl" + "oadSuccess\', function (file, obj) {\r\n\r\n isfilesuping = uploader.getSt" + "ats().progressNum != 0;\r\n var jsonresult = obj._raw;\r\n jso" + "nresult = eval(\'(\' + jsonresult + \')\');\r\n if (jsonresult.FilePath) {\r" + "\n $(\"#\" + file.id).find(\".showtitle\").text(\"\");\r\n " + "$(\"#memberFileImg,#loc_temp_img\").val(jsonresult.FilePath);\r\n $(\"" + "#memberFileImg\").blur();\r\n $(\"#\" + file.id).find(\"span.title\").ht" + "ml(jsonresult.FileName);\r\n $(\"#upfileImg\").find(\"div.webuploader-" + "pick\").html(\"更改图片\");\r\n $(\"#upfileImg\").parent().attr(\"style\", \"po" + "sition:relative\");//\r\n $(\"#upfileImg\").addClass(\"up-imgBtn\");\r\n " + " $(\"#imglist\").removeClass(\"hidden\");\r\n }\r\n e" + "lse {\r\n layer.msg(jsonresult.Message);\r\n }\r\n\r\n " + " uploader.reset();\r\n });\r\n\r\n uploader.on(\'uploadError\', functio" + "n (file, reason) {\r\n layer.msg(reason);\r\n });\r\n uploade" + "r.on(\'error\', function (handler) {\r\n if (handler == \"Q_EXCEED_NUM_LIM" + "IT\") {\r\n layer.alert(\"超出最大张数\");\r\n }\r\n if (h" + "andler == \"F_DUPLICATE\") {\r\n layer.alert(\"该文件已在上传列表\", 3);\r\n " + " }\r\n\r\n if (handler == \"Q_TYPE_DENIED\") {\r\n layer." + "alert(\"该文件不满足上传要求,可能您上传的文件为0KB\");\r\n }\r\n });\r\n uploader." + "on(\'uploadComplete\', function (file) {\r\n $(\'#\' + file.id).find(\'.perc" + "ent_small\').fadeOut();\r\n });\r\n\r\n });\r\n\r\n</script>"); }
public override void Execute() { WriteLiteral("<div"); WriteLiteral(" class=\"col-md-12\""); WriteAttribute("id", Tuple.Create(" id=\"", 162), Tuple.Create("\"", 191) , Tuple.Create(Tuple.Create("", 167), Tuple.Create("workExperience-", 167), true) #line 5 "..\..\Views\WorkExperience\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 182), Tuple.Create <System.Object, System.Int32>(Model.Id #line default #line hidden , 182), false) ); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"panel panel-default\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"panel-heading\""); WriteLiteral(">\r\n <h3"); WriteLiteral(" class=\"panel-title\""); WriteLiteral(">\r\n <i"); WriteLiteral(" class=\"fa fa-leanpub\""); WriteLiteral("></i>\r\n ویرایش سابقه کاری\r\n </h3>\r\n \r\n " + " </div>\r\n <div"); WriteLiteral(" class=\"panel-body\""); WriteLiteral(">\r\n"); #line 15 "..\..\Views\WorkExperience\_Edit.cshtml" #line default #line hidden #line 15 "..\..\Views\WorkExperience\_Edit.cshtml" using (Ajax.BeginForm(MVC.WorkExperience.Edit(), new AjaxOptions { HttpMethod = "POST", OnComplete = "editOnComplete(xhr, status, '" + Model.Id + "','#editButton" + Model.Id + "')" }, new { @class = "form-horizontal", id = Model.Id, autocomplete = "off", data_ajax_update = "workExperience-" + Model.Id })) { #line default #line hidden #line 17 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 17 "..\..\Views\WorkExperience\_Edit.cshtml" #line default #line hidden #line 18 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.HiddenFor(model => model.ApplicantId)); #line default #line hidden #line 18 "..\..\Views\WorkExperience\_Edit.cshtml" #line default #line hidden #line 19 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.HiddenFor(model => model.Id)); #line default #line hidden #line 19 "..\..\Views\WorkExperience\_Edit.cshtml" #line default #line hidden #line 20 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.HiddenFor(model => model.RowVersion)); #line default #line hidden #line 20 "..\..\Views\WorkExperience\_Edit.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 22 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.LabelFor(model => model.OfficeName, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-10\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 24 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.NoAutoCompleteTextBoxFor(model => model.OfficeName)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 25 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.ValidationMessageFor(model => model.OfficeName, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 28 "..\..\Views\WorkExperience\_Edit.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 31 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.LabelFor(model => model.TenureBeginDate, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-4\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 33 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.EditorFor(model => model.TenureBeginDate, MVC.Shared.Views.EditorTemplates.PersianDatePicker)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 34 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.ValidationMessageFor(model => model.TenureBeginDate, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n"); WriteLiteral(" "); #line 36 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.LabelFor(model => model.TenureEndDate, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-4\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 38 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.EditorFor(model => model.TenureEndDate, MVC.Shared.Views.EditorTemplates.PersianDatePicker)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 39 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.ValidationMessageFor(model => model.TenureEndDate, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 42 "..\..\Views\WorkExperience\_Edit.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 44 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.LabelFor(model => model.CooperationType, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-4\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 46 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.EditorFor(model => model.CooperationType)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 47 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.ValidationMessageFor(model => model.CooperationType, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n\r\n"); WriteLiteral(" "); #line 50 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.LabelFor(model => model.TitleId, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-4\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 52 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.DropDownListFor(model => model.TitleId, Model.Titles, "انتخاب پست سازمانی", new { @class = "form-control", rows = 2 })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 53 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.ValidationMessageFor(model => model.TitleId, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n\r\n </div>\r\n </div>\r\n"); #line 57 "..\..\Views\WorkExperience\_Edit.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 59 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.LabelFor(model => Model.State, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-4\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 61 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.DropDownListFor(model => model.State, Model.States, "انتخاب استان محل خدمت", new { data_url = Url.Action(MVC.City.GetCities()), data_tofill = "City", data_lable = "انتخاب شهر محل خدمت", data_selects = "City", @class = "form-control cascade", })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 69 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.ValidationMessageFor(model => model.State, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n"); WriteLiteral(" "); #line 71 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.LabelFor(model => model.City, new { @class = "control-label col-md-2" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-4\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 73 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.DropDownListFor(model => model.City, Model.Cities, "انتخاب شهر محل خدمت", new { @class = "form-control", rows = 2 })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 74 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Html.ValidationMessageFor(model => model.City, null, new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 77 "..\..\Views\WorkExperience\_Edit.cshtml" } #line default #line hidden WriteLiteral(" </div>\r\n\r\n <div"); WriteLiteral(" class=\"panel-footer\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"pull-left\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteAttribute("id", Tuple.Create(" id=\"", 4701), Tuple.Create("\"", 4746) #line 84 "..\..\Views\WorkExperience\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 4706), Tuple.Create <System.Object, System.Int32>(string.Format("editButton{0}", Model.Id) #line default #line hidden , 4706), false) ); WriteLiteral(" autocomplete=\"off\""); WriteAttribute("onclick", Tuple.Create(" onclick=\"", 4766), Tuple.Create("\"", 4816) , Tuple.Create(Tuple.Create("", 4776), Tuple.Create("AjaxForm.CustomSubmit(this,", 4776), true) , Tuple.Create(Tuple.Create(" ", 4803), Tuple.Create("\'", 4804), true) #line 84 "..\..\Views\WorkExperience\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 4805), Tuple.Create <System.Object, System.Int32>(Model.Id #line default #line hidden , 4805), false) , Tuple.Create(Tuple.Create("", 4814), Tuple.Create("\')", 4814), true) ); WriteLiteral(" data-loading-text=\"در حال ارسال اطلاعات\""); WriteLiteral(" class=\"btn btn-success btn-sm\""); WriteLiteral(">\r\n <i"); WriteLiteral(" class=\"fa fa-check-square-o\""); WriteLiteral("></i>\r\n ذخیره تغییرات\r\n </button>\r\n\r\n " + " <a"); WriteLiteral(" class=\"btn btn-default btn-sm\""); WriteLiteral(" data-ajax=\"true\""); WriteLiteral("\r\n data-ajax-mode=\"REPLACE-WITH\""); WriteLiteral(" data-ajax-complete=\"cancelEditOnComplete(xhr, status)\""); WriteLiteral("\r\n data-ajax-update=\"#workExperience-"); #line 91 "..\..\Views\WorkExperience\_Edit.cshtml" Write(Model.Id); #line default #line hidden WriteLiteral("\""); WriteLiteral(" data-ajax-method=\"POST\""); WriteAttribute("href", Tuple.Create("\r\n href=\"", 5274), Tuple.Create("\"", 5353) #line 92 "..\..\Views\WorkExperience\_Edit.cshtml" , Tuple.Create(Tuple.Create("", 5301), Tuple.Create <System.Object, System.Int32>(Url.Action(MVC.WorkExperience.CancelEdit(Model.Id)) #line default #line hidden , 5301), false) ); WriteLiteral(" rol"); WriteLiteral(" role=\"button\""); WriteLiteral(">\r\n <i"); WriteLiteral(" class=\"fa fa-arrow-right\""); WriteLiteral("></i>\r\n انصراف\r\n </a>\r\n </div>\r\n\r\n " + " <div"); WriteLiteral(" class=\"clearfix\""); WriteLiteral("></div>\r\n </div>\r\n\r\n </div>\r\n</div>\r\n"); }
public override void Execute() { WriteLiteral("<div"); WriteLiteral(" class=\"modal-dialog\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"modal-content\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"modal-header alert alert-success\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" class=\"close\""); WriteLiteral(" data-dismiss=\"modal\""); WriteLiteral(" aria-hidden=\"true\""); WriteLiteral(">×</button>\r\n <h5"); WriteLiteral(" class=\"modal-title\""); WriteLiteral(">درج گروه کاربری</h5>\r\n </div>\r\n <div"); WriteLiteral(" class=\"modal-body\""); WriteLiteral(">\r\n"); #line 10 "..\..\Views\Role\_Create.cshtml" #line default #line hidden #line 10 "..\..\Views\Role\_Create.cshtml" using (Ajax.BeginForm(MVC.Role.Create(), new AjaxOptions { HttpMethod = "POST", OnComplete = "createOnComplete(xhr, status, 'roleList', '#modal','createRoleForm','#createRoleButton')" }, new { @class = "form-horizontal", id = "createRoleForm", autocomplete = "off" })) { #line default #line hidden #line 12 "..\..\Views\Role\_Create.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 12 "..\..\Views\Role\_Create.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 15 "..\..\Views\Role\_Create.cshtml" Write(Html.LabelFor(m => m.Name, new { @class = "col-md-2 control-label" })); #line default #line hidden WriteLiteral("\r\n <div"); WriteLiteral(" class=\"col-md-9\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 17 "..\..\Views\Role\_Create.cshtml" Write(Html.NoAutoCompleteTextBoxFor(m => m.Name)); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 18 "..\..\Views\Role\_Create.cshtml" Write(Html.ValidationMessageFor(m => m.Name, "", new { @class = "text-danger" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n </d" + "iv>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"col-md-6 col-md-offset-2\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" id=\"createRoleButton\""); WriteLiteral(" autocomplete=\"off\""); WriteLiteral(" onclick=\"AjaxForm.CustomSubmit(this, \'createRoleForm\')\""); WriteLiteral(" data-loading-text=\"در حال ارسال اطلاعات\""); WriteLiteral(" class=\"btn btn-success btn-md\""); WriteLiteral(">\r\n ثبت گروه کاربری\r\n <" + "/button>\r\n <button"); WriteLiteral(" class=\"btn btn-default btn-md\""); WriteLiteral(" data-dismiss=\"modal\""); WriteLiteral(" aria-hidden=\"true\""); WriteLiteral(">\r\n انصراف\r\n </button>\r" + "\n </div>\r\n </div>\r\n </d" + "iv>\r\n"); #line 34 "..\..\Views\Role\_Create.cshtml" } #line default #line hidden WriteLiteral(" </div>\r\n \r\n </div>\r\n</div>\r\n"); }
public override void Execute() { WriteLiteral("\r\n"); WriteLiteral("\r\n"); WriteLiteral("<!--[if lt IE 9]>\r\n<script type=\"text/javascript\" src=\"lib/html5shiv.js\"></script" + ">\r\n<script type=\"text/javascript\" src=\"lib/respond.min.js\"></script>\r\n<![endif]-" + "->\r\n"); #line 10 "..\..\Areas\manage\Views\Account\Index.cshtml" Write(Scripts.Render("~/bundles/ajaxAsync")); #line default #line hidden WriteLiteral("\r\n"); #line 11 "..\..\Areas\manage\Views\Account\Index.cshtml" Write(Scripts.Render("~/bundles/validate")); #line default #line hidden WriteLiteral("\r\n<!--[if IE 6]>\r\n<script type=\"text/javascript\" src=\"lib/DD_belatedPNG_0.0.8a-mi" + "n.js\" ></script>\r\n<script>DD_belatedPNG.fix(\'*\');</script>\r\n<![endif]-->\r\n\r\n<nav" + ""); WriteLiteral(" class=\"breadcrumb\""); WriteLiteral("><i"); WriteLiteral(" class=\"Hui-iconfont\""); WriteLiteral("></i> 首页 <span"); WriteLiteral(" class=\"c-gray en\""); WriteLiteral(">></span> 个人信息 <a"); WriteLiteral(" class=\"btn btn-primary radius r\""); WriteLiteral(" style=\"line-height:1.6em;margin-top:3px\""); WriteLiteral(" href=\"javascript:location.replace(location.href);\""); WriteLiteral(" title=\"刷新\""); WriteLiteral("><i"); WriteLiteral(" class=\"Hui-iconfont\""); WriteLiteral("></i></a></nav>\r\n<div"); WriteLiteral(" class=\"page-container\""); WriteLiteral(">\r\n\r\n\r\n <div"); WriteLiteral(" class=\"form\""); WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"tab-system\""); WriteLiteral(" class=\"HuiTab\""); WriteLiteral(">\r\n\r\n <div"); WriteLiteral(" class=\"tabBar cl\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"current\""); WriteLiteral(">个人信息</span>\r\n <span"); WriteLiteral(" class=\"\""); WriteLiteral(">修改密码</span>\r\n </div>\r\n <div"); WriteLiteral(" class=\"tabCon user-wrap\""); WriteLiteral(" style=\"display: block;\""); WriteLiteral(">\r\n"); #line 29 "..\..\Areas\manage\Views\Account\Index.cshtml" #line default #line hidden #line 29 "..\..\Areas\manage\Views\Account\Index.cshtml" using (Ajax.BeginForm("Update", "Account", new AjaxOptions() { HttpMethod = "Post", OnSuccess = "formSuccess(data)", OnBegin = "disSubmit('sub_btn')", OnComplete = "enSubmit('sub_btn')" }, new { id = "", @class = "form form-horizontal" })) { #line default #line hidden #line 31 "..\..\Areas\manage\Views\Account\Index.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 31 "..\..\Areas\manage\Views\Account\Index.cshtml" #line default #line hidden #line 32 "..\..\Areas\manage\Views\Account\Index.cshtml" Write(Html.HiddenFor(m => m.Id)); #line default #line hidden #line 32 "..\..\Areas\manage\Views\Account\Index.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-2\""); WriteLiteral(">\r\n 用户名:\r\n </label>\r\n " + " <div"); WriteLiteral(" class=\"formControls text col-xs-6\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 38 "..\..\Areas\manage\Views\Account\Index.cshtml" Write(Model.UserName); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-2 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>\r\n 姓名:\r\n </label>\r\n " + " <div"); WriteLiteral(" class=\"formControls text col-xs-3\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 46 "..\..\Areas\manage\Views\Account\Index.cshtml" Write(Html.TextBoxFor(m => m.RealName, new { placeholder = "请输入姓名", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 47 "..\..\Areas\manage\Views\Account\Index.cshtml" Write(Html.ValidationMessageFor(m => m.RealName, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-2\""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>\r\n 手机:\r\n </label>\r\n " + " <div"); WriteLiteral(" class=\"formControls text col-xs-3\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 55 "..\..\Areas\manage\Views\Account\Index.cshtml" Write(Html.TextBoxFor(m => m.Phone, new { placeholder = "请输入手机号", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 56 "..\..\Areas\manage\Views\Account\Index.cshtml" Write(Html.ValidationMessageFor(m => m.Phone, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-2 \""); WriteLiteral(">\r\n 邮箱:\r\n </label>\r\n " + " <div"); WriteLiteral(" class=\"formControls text col-xs-3\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 64 "..\..\Areas\manage\Views\Account\Index.cshtml" Write(Html.TextBoxFor(m => m.Email, new { placeholder = "请输入邮箱", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 65 "..\..\Areas\manage\Views\Account\Index.cshtml" Write(Html.ValidationMessageFor(m => m.Email, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"btn_submit\""); WriteLiteral(" class=\"col-xs-6 col-xs-offset-2 mt-10\""); WriteLiteral(">\r\n <button"); WriteLiteral(" class=\"btn btn-primary radius\""); WriteLiteral(" type=\"submit\""); WriteLiteral(" id=\"sub_btn\""); WriteLiteral(">保存</button> \r\n </div>\r\n " + " </div>\r\n"); #line 73 "..\..\Areas\manage\Views\Account\Index.cshtml" } #line default #line hidden WriteLiteral(" </div>\r\n <div"); WriteLiteral(" class=\"tabCon user-wrap\""); WriteLiteral(" style=\"display: none;\""); WriteLiteral(">\r\n <form"); WriteLiteral(" id=\"form-admin\""); WriteLiteral(" class=\"form-horizontal\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-2 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>原密码:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-3\""); WriteLiteral(">\r\n <input"); WriteLiteral(" type=\"password\""); WriteLiteral(" class=\"input-text\""); WriteLiteral(" autocomplete=\"off\""); WriteLiteral(" value=\"\""); WriteLiteral(" placeholder=\"原密码\""); WriteLiteral(" id=\"oldPwd\""); WriteLiteral(" name=\"oldPwd\""); WriteLiteral(">\r\n </div>\r\n </div>\r\n " + " <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-2\""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>新密码:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-3\""); WriteLiteral(">\r\n <input"); WriteLiteral(" type=\"password\""); WriteLiteral(" class=\"input-text\""); WriteLiteral(" autocomplete=\"off\""); WriteLiteral(" value=\"\""); WriteLiteral(" placeholder=\"新密码\""); WriteLiteral(" id=\"newPwd\""); WriteLiteral(" name=\"newPwd\""); WriteLiteral(">\r\n </div>\r\n </div>\r\n " + " <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-2\""); WriteLiteral(" style=\"padding-right:0px\""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>确认密码:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-3\""); WriteLiteral(">\r\n <input"); WriteLiteral(" type=\"password\""); WriteLiteral(" class=\"input-text\""); WriteLiteral(" autocomplete=\"off\""); WriteLiteral(" placeholder=\"确认新密码\""); WriteLiteral(" id=\"renewPwd\""); WriteLiteral(" name=\"renewPwd\""); WriteLiteral(">\r\n </div>\r\n </div>\r\n " + " <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"col-xs-8 col-xs-offset-2 mt-10\""); WriteLiteral(">\r\n <button"); WriteLiteral(" class=\"btn btn-primary radius\""); WriteLiteral(" type=\"submit\""); WriteLiteral(">修改</button>\r\n </div>\r\n </div>\r\n " + " </form>\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n</div>\r\n\r\n" + ""); DefineSection("scripts", () => { WriteLiteral("\r\n <script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(@"> $(function () { $(""#tab-system"").Huitab({ index: 0 }); $(""#form-admin"").validate({ rules: { oldPwd: { required: true, minlength: 6 }, newPwd: { required: true, passwordCheck:true, minlength: 6 }, renewPwd: { required: true, minlength: 6, equalTo: ""#newPwd"" } }, messages: { oldPwd: { required: ""请输入原密码"", }, newPwd: { required: ""请输入新密码"", }, renewPwd: { required: ""请输入确认新密码"", equalTo: ""确认新密码与新密码不一致"" } }, onkeyup: false, focusCleanup: true, success: ""valid"", submitHandler: function (form) { $(form).ajaxSubmit({ type: 'post', url: """); #line 151 "..\..\Areas\manage\Views\Account\Index.cshtml" Write(Url.Action("UpdatePwd")); #line default #line hidden WriteLiteral("\",\r\n success: function (data) {\r\n " + " if (data == \"ok\") {\r\n layer.alert(\'修改成功,请重新登录!" + "\', {\r\n icon: 6,\r\n " + " closeBtn: 0,\r\n yes: function () {\r\n " + " layer.closeAll();\r\n " + " parent.location.reload();\r\n " + "}\r\n });\r\n } else if (d" + "ata == \"error\") {\r\n layer.alert(\'修改失败!\', { icon: " + "5 });\r\n } else {\r\n lay" + "er.alert(data, { icon: 7 });\r\n }\r\n " + " },\r\n error: function (XmlHttpRequest, textStatus, er" + "rorThrown) {\r\n layer.alert(\'修改失败!\', { icon: 5 });\r\n " + " }\r\n });\r\n }\r\n " + " });\r\n\r\n $.validator.addMethod(\"passwordCheck\", function (value, elem" + "ent, params) {\r\n var checkPwd = /(?=.*[a-zA-Z])(?=.*\\d)[a-zA-Z0-9" + "-*/+.~!#$%^&*()\\S]{2,}/g;\r\n return this.optional(element)||(check" + "Pwd.test(value));\r\n }, \"密码需含数字和字母,不能包含空字符\");\r\n });\r\n\r\n " + "function formSuccess(result) {\r\n if (result != null) {\r\n " + " if (result == \"ok\") {\r\n layer.alert(\'保存成功!\', {\r\n " + " icon: 6,\r\n closeBtn: 0,\r\n " + " yes: function () {\r\n layer.closeAll();\r\n " + " location.reload();\r\n }\r\n " + " });\r\n } else\r\n layer.alert(\'保存失败!\', { " + "icon: 5 });//icon:6为开心图\r\n } else\r\n layer.alert(\'保存失败!\'" + ", { icon: 5 });//icon:6为开心图\r\n }\r\n </script>\r\n"); }); }
public override void Execute() { #line 3 "..\..\Views\Expenses\_UpdateBudget.cshtml" using (Ajax.BeginForm("UpdateBudget", "Expenses", new AjaxOptions { OnBegin = "budgetInfoManager.beforeUpdate", OnSuccess = "budgetInfoManager.onUpdateSuccess", OnFailure = "budgetInfoManager.onUpdateFailure" }, new { id = "updateBudgetForm" })) { #line default #line hidden WriteLiteral(" <div>\r\n"); WriteLiteral(" "); #line 11 "..\..\Views\Expenses\_UpdateBudget.cshtml" Write(Html.TextBoxFor(x => x.Value, new { @class = "expense-input edit-budget-input", id = "txtBudgetValue", value = Model.Value })); #line default #line hidden WriteLiteral("\r\n \r\n <button"); WriteLiteral(" type=\"submit\""); WriteLiteral(" id=\"btnUpdateBudget\""); WriteLiteral(" class=\"btn-rounded btn-turquoise disabled\""); WriteLiteral(" title=\"Zapisz\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-lg icon-save\""); WriteLiteral("></span>\r\n </button>\r\n <button"); WriteLiteral(" type=\"button\""); WriteLiteral(" id=\"btnCancelBudget\""); WriteLiteral(" class=\"btn-rounded btn-dismiss\""); WriteLiteral(" title=\"Anuluj\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-lg icon-cancel\""); WriteLiteral("></span>\r\n </button>\r\n </div>\r\n"); #line 20 "..\..\Views\Expenses\_UpdateBudget.cshtml" #line default #line hidden #line 20 "..\..\Views\Expenses\_UpdateBudget.cshtml" Write(Html.HiddenFor(x => x.Id)); #line default #line hidden #line 20 "..\..\Views\Expenses\_UpdateBudget.cshtml" } #line default #line hidden }
public override void Execute() { #line 2 "..\..\Views\Account\Register.cshtml" ViewBag.Title = " - rejestracja"; Layout = "~/Views/Shared/_LayoutSubPage.cshtml"; #line default #line hidden WriteLiteral("\r\n\r\n<div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n <p"); WriteLiteral(" class=\"form-text\""); WriteLiteral(">\r\n REJESTRACJA UŻYTKOWNIKA\r\n </p>\r\n <hr"); WriteLiteral(" class=\"separator\""); WriteLiteral(" />\r\n</div>\r\n<div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-panel\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-header form-header-blue\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-title\""); WriteLiteral(">\r\n Stwórz nowe konto\r\n </div>\r\n </div>\r\n " + " <div"); WriteLiteral(" class=\"form-body form-body-blue\""); WriteLiteral(">\r\n"); #line 21 "..\..\Views\Account\Register.cshtml" #line default #line hidden #line 21 "..\..\Views\Account\Register.cshtml" using (Ajax.BeginForm("Register", "Account", null, new AjaxOptions { OnBegin = "registerManager.onBegin", OnSuccess = "registerManager.onSuccess", OnFailure = "registerManager.onFailure" }, new { @id = "registerForm" })) { #line default #line hidden #line 28 "..\..\Views\Account\Register.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 28 "..\..\Views\Account\Register.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"form-inputs\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-ctrl-area\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 32 "..\..\Views\Account\Register.cshtml" Write(Html.TextBoxFor(m => m.Username, new { @class = "form-ctrl", placeholder = "Nazwa użytkownika" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n <div"); WriteLiteral(" class=\"form-ctrl-area\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 35 "..\..\Views\Account\Register.cshtml" Write(Html.TextBoxFor(m => m.Email, new { @class = "form-ctrl", placeholder = "E-mail" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 36 "..\..\Views\Account\Register.cshtml" Write(Html.ValidationMessageFor(m => m.Email)); #line default #line hidden WriteLiteral("\r\n </div>\r\n <div"); WriteLiteral(" class=\"form-ctrl-area\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 39 "..\..\Views\Account\Register.cshtml" Write(Html.PasswordFor(m => m.Password, new { @class = "form-ctrl", placeholder = "Hasło" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 40 "..\..\Views\Account\Register.cshtml" Write(Html.ValidationMessageFor(m => m.Password)); #line default #line hidden WriteLiteral("\r\n </div>\r\n <div"); WriteLiteral(" class=\"form-ctrl-area\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 43 "..\..\Views\Account\Register.cshtml" Write(Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-ctrl", placeholder = "Powtórz hasło" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 44 "..\..\Views\Account\Register.cshtml" Write(Html.ValidationMessageFor(m => m.ConfirmPassword)); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"form-ctrl-area\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-checkbox\""); WriteLiteral(">\r\n <input"); WriteLiteral(" id=\"TermsAccepted\""); WriteLiteral(" name=\"TermsAccepted\""); WriteLiteral(" type=\"checkbox\""); WriteLiteral(" value=\"true\""); WriteLiteral(" />\r\n <label"); WriteLiteral(" for=\"TermsAccepted\""); WriteLiteral(">Oświadczam, że "); #line 50 "..\..\Views\Account\Register.cshtml" Write(Html.ActionLink("REGULAMIN", "UserAgreement", "Documents", null, new { @class = "color-grey", target = "_blank" })); #line default #line hidden WriteLiteral(" jest mi znany.</label>\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"form-body-btn\""); WriteLiteral(">\r\n <button"); WriteLiteral(" type=\"submit\""); WriteLiteral(" class=\"btn-rounded btn-turquoise\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"icon icon-lg icon-register\""); WriteLiteral("></span>\r\n </button>\r\n </div>\r\n"); #line 58 "..\..\Views\Account\Register.cshtml" } #line default #line hidden WriteLiteral(" </div>\r\n </div>\r\n</div>\r\n\r\n"); DefineSection("scripts", () => { WriteLiteral("\r\n"); WriteLiteral(" "); #line 64 "..\..\Views\Account\Register.cshtml" Write(Scripts.Render("~/bundles/register")); #line default #line hidden WriteLiteral("\r\n"); }); }
public override void Execute() { #line 1 "..\..\Areas\manage\Views\Download\Add.cshtml" Layout = null; #line default #line hidden WriteLiteral("\r\n\r\n"); #line 10 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Scripts.Render("~/bundles/saos")); #line default #line hidden WriteLiteral("\r\n"); #line 11 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Scripts.Render("~/bundles/ajaxAsync")); #line default #line hidden WriteLiteral("\r\n"); #line 12 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Scripts.Render("~/bundles/validate")); #line default #line hidden WriteLiteral("\r\n"); #line 13 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Styles.Render("~/appcss")); #line default #line hidden WriteLiteral("\r\n<script"); WriteAttribute("src", Tuple.Create(" src=\"", 269), Tuple.Create("\"", 325) , Tuple.Create(Tuple.Create("", 275), Tuple.Create <System.Object, System.Int32>(Href("~/Content/lib/webuploader/0.1.5/webuploader.min.js") , 275), false) ); WriteLiteral(" type=\"text/javascript\""); WriteLiteral("></script>\r\n<script"); WriteLiteral(" type=\"text/javascript\""); WriteAttribute("src", Tuple.Create(" src=\"", 391), Tuple.Create("\"", 431) , Tuple.Create(Tuple.Create("", 397), Tuple.Create <System.Object, System.Int32>(Href("~/Content/lib/ckeditor/ckeditor.js") , 397), false) ); WriteLiteral("></script>\r\n<style"); WriteLiteral(" type=\"text/css\""); WriteLiteral(">\r\n .form-horizontal .form-label {\r\n text-align: right;\r\n }\r\n</style" + ">\r\n<nav"); WriteLiteral(" class=\"breadcrumb\""); WriteLiteral("><i"); WriteLiteral(" class=\"Hui-iconfont\""); WriteLiteral("></i> 首页 <span"); WriteLiteral(" class=\"c-gray en\""); WriteLiteral(">></span>"); #line 21 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.ActionLink("下载管理", "List")); #line default #line hidden WriteLiteral(" <span"); WriteLiteral(" class=\"c-gray en\""); WriteLiteral(">></span><a"); WriteLiteral(" href=\"javascript:void(0)\""); WriteLiteral(" onclick=\"location.reload()\""); WriteLiteral(">新建下载</a> </nav>\r\n<article"); WriteLiteral(" class=\"page-container\""); WriteLiteral(">\r\n"); #line 23 "..\..\Areas\manage\Views\Download\Add.cshtml" #line default #line hidden #line 23 "..\..\Areas\manage\Views\Download\Add.cshtml" using (Ajax.BeginForm("Add", "Download", new { }, new AjaxOptions() { HttpMethod = "Post", OnSuccess = "formSuccess(data)", OnBegin = "disSubmit('sub_btn')", OnComplete = "enSubmit('sub_btn')" }, new { id = "", @class = "form form-horizontal" })) { #line default #line hidden #line 25 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 25 "..\..\Areas\manage\Views\Download\Add.cshtml" #line default #line hidden #line 26 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.HiddenFor(m => m.Id, new { @Value = 0 })); #line default #line hidden #line 26 "..\..\Areas\manage\Views\Download\Add.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-2 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>文件头图:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-group\""); WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"upfileImg\""); WriteLiteral(" class=\"up-img-left\""); WriteLiteral(">\r\n 上传图片\r\n </div>\r\n " + "<span"); WriteLiteral(" class=\"help-block help-tip help-img\""); WriteLiteral(" style=\"top:8px;position:absolute\""); WriteLiteral(">请上传jpg、jpeg、gif、bmp、png等图片类型的文件</span>\r\n <div"); WriteLiteral(" class=\"formControls\""); WriteLiteral(">\r\n <ul"); WriteLiteral(" id=\"imglist\""); WriteLiteral(" class=\"\""); WriteLiteral("></ul>\r\n <input"); WriteLiteral(" type=\"hidden\""); WriteLiteral(" id=\"loc_temp_img\""); WriteLiteral(" />\r\n </div>\r\n </div>\r\n"); WriteLiteral(" "); #line 40 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.ValidationMessageFor(m => m.FileImg, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 41 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.TextBoxFor(m => m.FileImg, new { id = "downFileImg", @class = "hide-area input-text" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-2 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>所属类别:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-3 \""); WriteLiteral(">\r\n <select"); WriteLiteral(" class=\"select select-box\""); WriteLiteral(" id=\"sel_type\""); WriteLiteral(">\r\n <option"); WriteLiteral(" value=\"\""); WriteLiteral(">请选择所属类别</option>\r\n"); #line 49 "..\..\Areas\manage\Views\Download\Add.cshtml" #line default #line hidden #line 49 "..\..\Areas\manage\Views\Download\Add.cshtml" foreach (CategoryDictionary item in ViewBag.EnabledCategory) { #line default #line hidden WriteLiteral(" <option"); WriteAttribute("value", Tuple.Create(" value=\"", 2544), Tuple.Create("\"", 2560) #line 51 "..\..\Areas\manage\Views\Download\Add.cshtml" , Tuple.Create(Tuple.Create("", 2552), Tuple.Create <System.Object, System.Int32>(item.Id #line default #line hidden , 2552), false) ); WriteLiteral(">"); #line 51 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(item.Name); #line default #line hidden WriteLiteral("</option>\r\n"); #line 52 "..\..\Areas\manage\Views\Download\Add.cshtml" } #line default #line hidden WriteLiteral(" </select>\r\n"); WriteLiteral(" "); #line 54 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.ValidationMessageFor(m => m.Category, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 55 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.TextBoxFor(m => m.Category, new { @class = "hide-area input-text" })); #line default #line hidden WriteLiteral("\r\n\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-2 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>下载标题:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 62 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.TextBoxFor(m => m.FileTitle, new { placeholder = "请输入下载标题", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 63 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.ValidationMessageFor(m => m.FileTitle, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-2 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>附件文件:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"form-group \""); WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"upfile\""); WriteLiteral(" style=\"float:left\""); WriteLiteral(">\r\n 本地上传\r\n </div>\r\n " + "<span"); WriteLiteral(" class=\"help-block help-tip help-file\""); WriteLiteral(" style=\"top:8px;position:absolute\""); WriteLiteral(">请上传word、ppt、pdf、excel、txt和图片等类型的文件</span>\r\n <div"); WriteLiteral(" class=\"formControls file-up\""); WriteLiteral(">\r\n <ul"); WriteLiteral(" id=\"filelist\""); WriteLiteral(" class=\"\""); WriteLiteral("></ul>\r\n <input"); WriteLiteral(" type=\"hidden\""); WriteLiteral(" id=\"loc_temp_inp\""); WriteLiteral(" />\r\n </div>\r\n </div>\r\n"); WriteLiteral(" "); #line 79 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.ValidationMessageFor(m => m.Src, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 80 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.TextBoxFor(m => m.Src, new { id = "file_src", @class = "hide-area input-text" })); #line default #line hidden WriteLiteral("\r\n </div> \r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-2 \""); WriteLiteral(">附件详情:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-8 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 86 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.TextAreaFor(m => m.Description, new { @class = "ckeditor textarea", rows = "10", placeholder = "请输入附件详情..." })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-2 \""); WriteLiteral(">状态:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-6 \""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"radio-list\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"radio-inline\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 94 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.RadioButtonFor(m => m.State, (int)PublishState.Upper, new { id = "", @checked = "checked" })); #line default #line hidden WriteLiteral("上架\r\n </label>\r\n <label"); WriteLiteral(" class=\"radio-inline\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 97 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.RadioButtonFor(m => m.State, (int)PublishState.Lower, new { id = "" })); #line default #line hidden WriteLiteral("下架\r\n </label>\r\n </div>\r\n "); WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"btn_submit\""); WriteLiteral(" class=\"col-xs-6 col-xs-offset-3 col-sm-offset-2 mt-10\""); WriteLiteral(">\r\n <button"); WriteLiteral(" class=\"btn btn-primary radius\""); WriteLiteral(" type=\"submit\""); WriteLiteral(" id=\"sub_btn\""); WriteLiteral(">保存</button>\r\n"); WriteLiteral(" "); #line 109 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.ActionLink("取消", "List", null, new { @class = "btn btn-default radius" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 112 "..\..\Areas\manage\Views\Download\Add.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"hidden\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 114 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.HiddenFor(m => m.FileName, new { id = "file_name" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 115 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Html.HiddenFor(m => m.Extension, new { id = "file_extension" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n"); #line 117 "..\..\Areas\manage\Views\Download\Add.cshtml" } #line default #line hidden WriteLiteral("</article>\r\n\r\n<script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(">\r\n $(function () {\r\n var editor = CKEDITOR.replace(\'Description\',\r\n " + " {\r\n height: 260,\r\n toolbar: \'Basic\',\r\n " + " filebrowserImageUploadUrl: \""); #line 126 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Url.Action("UploadEditer", "Upload")); #line default #line hidden WriteLiteral(@""" }); editor.on(""change"", pasteImg); $(""#sel_type"").change(function () { $(""#Category"").val($(this).val()).blur(); }) }); function formSuccess(result) { if (result != null) { if (result.isSuccess) { top.layer.alert('添加成功!', { icon: 6, closeBtn: 0, yes: function () { window.location = '"); #line 143 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Url.Action("List", "Download")); #line default #line hidden WriteLiteral(@"'; parent.layer.closeAll(); } }); } else { top.layer.alert('添加失败!', { icon: 5 }); } } else { top.layer.alert('添加失败!', { icon: 5 }); } } </script> <script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(@"> var maxcount = 8; //上传参数 var jq_uploadFormData = { BidFileDomain: ' ', uploadQueryData: { Suffix: 0 } }; if (!WebUploader.Uploader.support()) { $("".FJsp2"").html(""说明:当前浏览器不支持附件上传""); $(""#upfile"").hide(); //alert( 'Web Uploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器'); alert(""当前浏览器不支持附件上传,如果你使用的是IE浏览器,请尝试升级 flash 播放器""); throw new Error('WebUploader does not support the browser you are using.'); } var BASE_URL = ""/content/webuploader-0.1.5""; var file_ids = []; //已上传文件的路径 var file_info = []; //记录文件的GUID和存储路径 var isfilesuping = false; // 文件上传 jQuery(function () { var id = ""upfile""; var $ = jQuery, state = 'pending', $probar = $(""#"" + id).siblings(""div"").find("".pros""), uploader; uploader = WebUploader.create({ // 不压缩image resize: false, //发送后台时参数 formData: jq_uploadFormData.uploadQueryData, fileVal: jq_uploadFormData.BidFileDomain, method: ""POST"", //是否分块(大文件上传) chunked: true, //设置文件上传域名称 fileVal: 'file', //每块最大限制(默认5M 因为是.net 所以设置2M) chunkSize: 2097152, // swf文件路径 swf: BASE_URL + '/Uploader.swf', // 文件接收服务端。 server: jq_uploadFormData.BidFileDomain + '"); #line 194 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Url.Action("Upload", "Upload")); #line default #line hidden WriteLiteral("\',\r\n //创建选择文件按钮\r\n pick: { id: \"#\" + id, innerHTML: \"\", mult" + "iple: false },\r\n //选择文件自动上传\r\n auto: true,\r\n //a" + "ccept:{title:\"只能上传rar,zip文件\",extensions :\'rar,zip\',mimeTypes:\'application/x-zip-" + "compressed\'},\r\n fileNumLimit: maxcount\r\n });\r\n\r\n //文件大小" + "限制,超过则不加入队列\r\n uploader.on(\'beforeFileQueued\', function (file, han, msg) {" + "\r\n var xzlist = (\"pdf,zip,rar,tar,gz,doc,docx,ppt,pptx,xlsx,xls,csv,m" + "p4,txt,mp3,jpg,jpeg,gif,bmp,png\").split(\",\");\r\n var imglist = (\"jpg,j" + "peg,gif,bmp,png\").split(\",\");\r\n var filenamelist = file.name.split(\'." + "\');\r\n var filehz = filenamelist[filenamelist.length - 1];\r\n\r\n " + " if (xzlist.indexOf(filehz) < 0) {\r\n layer.alert(\"请上传指定类型格式的文件" + "\", 0);\r\n return false;\r\n }\r\n\r\n if (imglist." + "indexOf(filehz) >= 0) {\r\n if (file.size > (1024 * 1024 * 5)) {\r\n " + " layer.alert(\"图片大小不可超过5M\", 0);\r\n return fal" + "se;\r\n }\r\n }\r\n\r\n if (file.size > (1024 * 102" + "4 * 10)) {\r\n layer.alert(\"文件大小不可超过10M\", 0);\r\n retu" + "rn false;\r\n }\r\n\r\n var filelen = $(\"#filelist>li\").length;\r" + "\n if (filelen >= maxcount) {\r\n layer.alert(\"超出最大上传数量\"," + " 0);\r\n return false;\r\n }\r\n });\r\n //某个文件开" + "始上传前触发,一个文件只会触发一次。\r\n uploader.on(\'uploadStart\', function (file) {\r\n " + " uploader.options.formData.guid = WebUploader.Base.guid();\r\n });\r\n " + " // 当有文件添加进来的时候\r\n uploader.on(\'fileQueued\', function (file) {\r\n " + " $(\".help-file\").hide();\r\n $(\".yangli\").hide()\r\n $(\"" + ".yulan\").show();\r\n uploader.makeThumb(file, function (error, ret) {\r\n" + " var file_list = [];\r\n file_list.push(\"<li id=\'\" +" + " file.id + \"\'>\");\r\n file_list.push(\"<em class=\'rar\'></em>\");\r\n " + " file_list.push(\"<span class=\'title\'><span/>\");\r\n fil" + "e_list.push(\"<div class=\'percent_small\'>\");\r\n file_list.push(\"<di" + "v class=\'per_pic2\'>\");\r\n file_list.push(\"<div class=\'change_per2\'" + " style=\'width:1%\'></div>\");\r\n file_list.push(\"</div>\");\r\n " + " file_list.push(\"<span class=\'showtitle\'>正准备上传…</span></div>\");\r\n " + " file_list.push(\"</div></li>\");\r\n $(\"#filelist\").empty().a" + "ppend(file_list.join(\'\'));\r\n });\r\n });\r\n //重置\r\n " + "uploader.on(\'reset\', function (file) {\r\n\r\n });\r\n // 文件上传过程中创建进度条实时" + "显示。\r\n uploader.on(\'uploadProgress\', function (file, percentage) {\r\n " + " var jd = parseInt(percentage * 100);\r\n if (jd > 1) {\r\n " + " $(\"#\" + file.id).find(\".change_per2\").css(\"width\", jd + \'%\');\r\n " + " $(\"#\" + file.id).find(\".per_pic2,.showtitle\").attr(\"title\", \'已上传\' + jd + \'" + "%\');\r\n $(\"#\" + file.id).find(\".showtitle\").text(\'已上传\' + jd + \'%\')" + ";\r\n }\r\n if (jd >= 100) {\r\n $(\"#\" + file.id)" + ".find(\".per_pic2,.showtitle\").attr(\"title\", \"处理中...\");\r\n }\r\n " + " isfilesuping = uploader.getStats().progressNum != 0;\r\n });\r\n\r\n " + "uploader.on(\'uploadSuccess\', function (file, obj) {\r\n\r\n isfilesuping " + "= uploader.getStats().progressNum != 0;\r\n var jsonresult = obj._raw;\r" + "\n jsonresult = eval(\'(\' + jsonresult + \')\');\r\n if (jsonres" + "ult.FilePath) {\r\n $(\"#\" + file.id).find(\".showtitle\").text(\"\");\r\n" + " $(\"#file_src,#loc_temp_inp\").val(jsonresult.FilePath);\r\n " + " $(\"#file_src\").blur();\r\n $(\"#file_name\").val(jsonresult.F" + "ileName);\r\n $(\"#file_extension\").val(jsonresult.Extension)\r\n " + " $(\"#\" + file.id).find(\"span.title\").html(jsonresult.FileName);\r\n " + " }\r\n else {\r\n layer.msg(jsonresult.Message);\r\n " + " }\r\n\r\n uploader.reset();\r\n });\r\n\r\n uploader.on" + "(\'uploadError\', function (file, reason) {\r\n layer.msg(reason);\r\n " + " });\r\n uploader.on(\'error\', function (handler) {\r\n if (handl" + "er == \"Q_EXCEED_NUM_LIMIT\") {\r\n layer.alert(\"超出最大张数\");\r\n " + " }\r\n if (handler == \"F_DUPLICATE\") {\r\n layer.alert(\"" + "该文件已在上传列表\", 3);\r\n }\r\n\r\n if (handler == \"Q_TYPE_DENIED\") {\r" + "\n layer.alert(\"该文件不满足上传要求,可能您上传的文件为0KB\");\r\n }\r\n " + " });\r\n uploader.on(\'uploadComplete\', function (file) {\r\n $(\'#\'" + " + file.id).find(\'.percent_small\').fadeOut();\r\n });\r\n\r\n });\r\n\r\n</scrip" + "t>\r\n\r\n<script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(@"> var maxcount = 8; //上传参数 var jq_imgFormData = { BidFileDomain: ' ', uploadQueryData: { Suffix: 1 } }; if (!WebUploader.Uploader.support()) { $("".FJsp2"").html(""说明:当前浏览器不支持附件上传""); $(""#upfileImg"").hide(); //alert( 'Web Uploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器'); alert(""当前浏览器不支持附件上传,如果你使用的是IE浏览器,请尝试升级 flash 播放器""); throw new Error('WebUploader does not support the browser you are using.'); } var BASE_URL = ""/content/webuploader-0.1.5""; var file_ids = []; //已上传文件的路径 var file_info = []; //记录文件的GUID和存储路径 var isfilesuping = false; // 文件上传 jQuery(function () { var id = ""upfileImg""; var $ = jQuery, state = 'pending', $probar = $(""#"" + id).siblings(""div"").find("".pros""), uploader; uploader = WebUploader.create({ // 不压缩image resize: false, //发送后台时参数 formData: jq_imgFormData.uploadQueryData, fileVal: jq_imgFormData.BidFileDomain, method: ""POST"", //是否分块(大文件上传) chunked: true, //设置文件上传域名称 fileVal: 'file', //每块最大限制(默认5M 因为是.net 所以设置2M) chunkSize: 2097152, // swf文件路径 swf: BASE_URL + '/Uploader.swf', // 文件接收服务端。 server: jq_imgFormData.BidFileDomain + '"); #line 355 "..\..\Areas\manage\Views\Download\Add.cshtml" Write(Url.Action("Upload", "Upload")); #line default #line hidden WriteLiteral("\',\r\n //创建选择文件按钮\r\n pick: { id: \"#\" + id, innerHTML: \"\", mult" + "iple: false },\r\n //选择文件自动上传\r\n auto: true,\r\n //a" + "ccept:{title:\"只能上传rar,zip文件\",extensions :\'rar,zip\',mimeTypes:\'application/x-zip-" + "compressed\'},\r\n fileNumLimit: maxcount\r\n });\r\n\r\n //文件大小" + "限制,超过则不加入队列\r\n uploader.on(\'beforeFileQueued\', function (file, han, msg) {" + "\r\n var xzlist = (\"jpg,jpeg,gif,bmp,png\").split(\",\");\r\n var" + " filenamelist = file.name.split(\'.\');\r\n var filehz = filenamelist[fil" + "enamelist.length - 1];\r\n\r\n if (xzlist.indexOf(filehz) < 0) {\r\n " + " layer.alert(\"请上传指定类型格式的文件\", 0);\r\n return false;\r\n " + " }\r\n\r\n if (file.size > (1024 * 1024 * 10)) {\r\n lay" + "er.alert(\"图片大小不可超过5M\", 0);\r\n return false;\r\n }\r\n\r\n " + " var filelen = $(\"#imglist>li\").length;\r\n if (filelen >= maxco" + "unt) {\r\n layer.alert(\"超出最大上传数量\", 0);\r\n return fals" + "e;\r\n }\r\n });\r\n //某个文件开始上传前触发,一个文件只会触发一次。\r\n uploa" + "der.on(\'uploadStart\', function (file) {\r\n uploader.options.formData.g" + "uid = WebUploader.Base.guid();\r\n });\r\n // 当有文件添加进来的时候\r\n upl" + "oader.on(\'fileQueued\', function (file) {\r\n $(\".help-img\").hide();\r\n " + " $(\".yangli\").hide()\r\n $(\".yulan\").show();\r\n uplo" + "ader.makeThumb(file, function (error, ret) {\r\n var file_list = []" + ";\r\n file_list.push(\"<li id=\'\" + file.id + \"\'>\");\r\n " + " file_list.push(\"<img src=\'\" + ret + \"\'/>\");\r\n file_list.push(\"<d" + "iv class=\'percent_small\'>\");\r\n file_list.push(\"<div class=\'per_pi" + "c2\'>\");\r\n file_list.push(\"<div class=\'change_per2\' style=\'width:1" + "%\'></div>\");\r\n file_list.push(\"</div>\");\r\n file_li" + "st.push(\"<span class=\'showtitle\'>正准备上传…</span></div>\");\r\n file_li" + "st.push(\"</div></li>\");\r\n $(\"#imglist\").empty().append(file_list." + "join(\'\'));\r\n });\r\n });\r\n //重置\r\n uploader.on(\'res" + "et\', function (file) {\r\n\r\n });\r\n // 文件上传过程中创建进度条实时显示。\r\n upl" + "oader.on(\'uploadProgress\', function (file, percentage) {\r\n var jd = p" + "arseInt(percentage * 100);\r\n if (jd > 1) {\r\n $(\"#\" + f" + "ile.id).find(\".change_per2\").css(\"width\", jd + \'%\');\r\n $(\"#\" + fi" + "le.id).find(\".per_pic2,.showtitle\").attr(\"title\", \'已上传\' + jd + \'%\');\r\n " + " $(\"#\" + file.id).find(\".showtitle\").text(\'已上传\' + jd + \'%\');\r\n }" + "\r\n if (jd >= 100) {\r\n $(\"#\" + file.id).find(\".per_pic2" + ",.showtitle\").attr(\"title\", \"处理中...\");\r\n }\r\n isfilesuping " + "= uploader.getStats().progressNum != 0;\r\n });\r\n\r\n uploader.on(\'upl" + "oadSuccess\', function (file, obj) {\r\n\r\n isfilesuping = uploader.getSt" + "ats().progressNum != 0;\r\n var jsonresult = obj._raw;\r\n jso" + "nresult = eval(\'(\' + jsonresult + \')\');\r\n if (jsonresult.FilePath) {\r" + "\n $(\"#\" + file.id).find(\".showtitle\").text(\"\");\r\n " + "$(\"#downFileImg,#loc_temp_img\").val(jsonresult.FilePath);\r\n $(\"#d" + "ownFileImg\").blur();\r\n $(\"#\" + file.id).find(\"span.title\").html(j" + "sonresult.FileName);\r\n $(\"#upfileImg\").find(\"div.webuploader-pick" + "\").html(\"更改图片\");\r\n $(\"#upfileImg\").parent().attr(\"style\", \"positi" + "on:relative\");//\r\n $(\"#upfileImg\").addClass(\"up-imgBtn\");\r\n " + " }\r\n else {\r\n layer.msg(jsonresult.Message);\r\n " + " }\r\n\r\n uploader.reset();\r\n });\r\n\r\n uploader.on(" + "\'uploadError\', function (file, reason) {\r\n layer.msg(reason);\r\n " + " });\r\n uploader.on(\'error\', function (handler) {\r\n if (handle" + "r == \"Q_EXCEED_NUM_LIMIT\") {\r\n layer.alert(\"超出最大张数\");\r\n " + " }\r\n if (handler == \"F_DUPLICATE\") {\r\n layer.alert(\"该" + "文件已在上传列表\", 3);\r\n }\r\n\r\n if (handler == \"Q_TYPE_DENIED\") {\r\n" + " layer.alert(\"该文件不满足上传要求,可能您上传的文件为0KB\");\r\n }\r\n " + "});\r\n uploader.on(\'uploadComplete\', function (file) {\r\n $(\'#\' " + "+ file.id).find(\'.percent_small\').fadeOut();\r\n });\r\n\r\n });\r\n\r\n</script" + ">"); }
public override void Execute() { WriteLiteral("<!--[if lt IE 9]>\r\n<script type=\"text/javascript\" src=\"lib/html5shiv.js\"></script" + ">\r\n<script type=\"text/javascript\" src=\"lib/respond.min.js\"></script>\r\n<![endif]-" + "->\r\n"); #line 6 "..\..\Views\ResPermission\Index.cshtml" Write(Styles.Render("~/bootstrap")); #line default #line hidden WriteLiteral("\r\n"); #line 7 "..\..\Views\ResPermission\Index.cshtml" Write(Styles.Render("~/appcss")); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(@" <style> .table-bordered>thead>tr>td, .table-bordered>thead>tr>th{border-bottom-width:0px;border-left-width:0px} .table-bordered>tbody>tr>td{border-left-width:0px;border-bottom-width:0px;} .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th{vertical-align:middle;line-height:20px} .table-bordered{border:1px solid #ddd;border-bottom: 1px solid #ddd !important;border-right-width: 0px;} </style> <!--[if IE 6]> <script type=""text/javascript"" src=""lib/DD_belatedPNG_0.0.8a-min.js"" ></script> <script>DD_belatedPNG.fix('*');</script> <![endif]--> <nav"); WriteLiteral(" class=\"breadcrumb\""); WriteLiteral("><i"); WriteLiteral(" class=\"Hui-iconfont\""); WriteLiteral("></i> 首页 <span"); WriteLiteral(" class=\"c-gray en\""); WriteLiteral(">></span> 用户学习资料 <span"); WriteLiteral(" class=\"c-gray en\""); WriteLiteral(">></span> 用户权限 <a"); WriteLiteral(" class=\"btn btn-success radius r\""); WriteLiteral(" style=\"line-height:1.6em;margin-top:3px\""); WriteLiteral(" href=\"javascript:location.replace(location.href);\""); WriteLiteral(" title=\"刷新\""); WriteLiteral("><i"); WriteLiteral(" class=\"Hui-iconfont\""); WriteLiteral("></i></a></nav>\r\n<div"); WriteLiteral(" class=\"page-container\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"cl pd-5 bg-1 bk-gray search-wrap\""); WriteLiteral(" style=\"margin-top:-10px\""); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"label-inline\""); WriteLiteral(">标题:</span>\r\n <input"); WriteLiteral(" type=\"text\""); WriteLiteral(" id=\"resTitle\""); WriteLiteral(" placeholder=\"请输入标题关键字\""); WriteLiteral(" class=\"input-text lg inline\""); WriteLiteral(" />\r\n <span"); WriteLiteral(" class=\"label-inline\""); WriteLiteral(">所属资料包:</span>\r\n <select"); WriteLiteral(" name=\"sel_orderstate\""); WriteLiteral(" id=\"sel_resPage\""); WriteLiteral(" class=\"select select-box inline\""); WriteLiteral(">\r\n <option"); WriteLiteral(" value=\"0\""); WriteLiteral(">全部</option>\r\n"); #line 27 "..\..\Views\ResPermission\Index.cshtml" #line default #line hidden #line 27 "..\..\Views\ResPermission\Index.cshtml" foreach (KeyValueViewModel item in ViewBag.packges) { #line default #line hidden WriteLiteral(" <option"); WriteAttribute("value", Tuple.Create(" value=\"", 1797), Tuple.Create("\"", 1814) #line 29 "..\..\Views\ResPermission\Index.cshtml" , Tuple.Create(Tuple.Create("", 1805), Tuple.Create <System.Object, System.Int32>(item.Key #line default #line hidden , 1805), false) ); WriteLiteral(">"); #line 29 "..\..\Views\ResPermission\Index.cshtml" Write(item.Value); #line default #line hidden WriteLiteral("</option>\r\n"); #line 30 "..\..\Views\ResPermission\Index.cshtml" } #line default #line hidden WriteLiteral(" </select>\r\n <button"); WriteLiteral(" name=\"search\""); WriteLiteral(" id=\"search\""); WriteLiteral(" class=\"btn btn-success ml-10\""); WriteLiteral(" type=\"button\""); WriteLiteral(" style=\"border-radius:0px\""); WriteLiteral("><i"); WriteLiteral(" class=\"Hui-iconfont\""); WriteLiteral("></i> 搜索</button>\r\n </div>\r\n <div"); WriteLiteral(" class=\"mt-30\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"dataTables_wrapper no-footer\""); WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"tbTable_processing\""); WriteLiteral(" class=\"dataTables_processing\""); WriteLiteral(" style=\"display: none;\""); WriteLiteral(">处理中...</div>\r\n <div"); WriteLiteral(" id=\"tbTable_wrapper\""); WriteLiteral(">\r\n\r\n </div>\r\n </div>\r\n </div>\r\n"); #line 42 "..\..\Views\ResPermission\Index.cshtml" #line default #line hidden #line 42 "..\..\Views\ResPermission\Index.cshtml" using (Ajax.BeginForm("Get", new { }, new AjaxOptions { OnFailure = "showException", OnSuccess = "initEvent", UpdateTargetId = "tbTable_wrapper", OnBegin = "showLoading", OnComplete = "hideLoading" }, new { id = "searchByRequest" })) { #line default #line hidden #line 44 "..\..\Views\ResPermission\Index.cshtml" Write(Html.Hidden("PageIndex", Model.PageIndex)); #line default #line hidden #line 44 "..\..\Views\ResPermission\Index.cshtml" #line default #line hidden #line 45 "..\..\Views\ResPermission\Index.cshtml" Write(Html.Hidden("PageSize", Model.PageSize)); #line default #line hidden #line 45 "..\..\Views\ResPermission\Index.cshtml" #line default #line hidden WriteLiteral(" <input"); WriteLiteral(" type=\"hidden\""); WriteLiteral(" name=\"resName\""); WriteLiteral(" id=\"resName\""); WriteLiteral(" value=\"\""); WriteLiteral(" autocomplete=\"off\""); WriteLiteral(" />\r\n"); WriteLiteral(" <input"); WriteLiteral(" type=\"hidden\""); WriteLiteral(" name=\"packgeId\""); WriteLiteral(" id=\"resPackgeId\""); WriteLiteral(" value=\"\""); WriteLiteral(" autocomplete=\"off\""); WriteLiteral(" />\r\n"); #line 48 "..\..\Views\ResPermission\Index.cshtml" } #line default #line hidden WriteLiteral("</div>\r\n"); #line 50 "..\..\Views\ResPermission\Index.cshtml" Write(Scripts.Render("~/bundles/saos")); #line default #line hidden WriteLiteral("\r\n"); #line 51 "..\..\Views\ResPermission\Index.cshtml" Write(Scripts.Render("~/bundles/bootstrap")); #line default #line hidden WriteLiteral("\r\n"); #line 52 "..\..\Views\ResPermission\Index.cshtml" Write(Scripts.Render("~/bundles/ajaxAsync")); #line default #line hidden WriteLiteral("\r\n"); DefineSection("scripts", () => { WriteLiteral("\r\n <script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(@"> $(function () { changeQueryCondition(); $(""#search"").click(function () { changeQueryCondition(); }); //输入名称回车查询 $(""#resTitle"").keypress(function (e) { if (e.which == 13) { changeQueryCondition(); $(""#search"").focus(); } }); }); /*资料-详情*/ function res_detail(title, url, id) { var index = layer.open({ type: 2, title: title, area: ['750px', '600px'], content: url + ""?id="" + id }); } /*保存*/ function res_save(id) { var trjson = getTrJson(id); layer.confirm('确认要保存该设置吗?', function (e) { $.ajax({ url: """); #line 86 "..\..\Views\ResPermission\Index.cshtml" Write(Url.Action("Save")); #line default #line hidden WriteLiteral("\",\r\n type: \"post\",\r\n data: { id: id, json: " + "trjson },\r\n success: function (data) {\r\n " + " if (data == \"ok\") {\r\n layer.alert(\'操作成功!\', {\r\n " + " icon: 6,\r\n closeBtn: " + "0,\r\n yes: function () {\r\n " + " changeQueryCondition();\r\n layer.c" + "loseAll();\r\n }\r\n });\r\n" + " } else if (data == \"error\") {\r\n " + " layer.alert(\'操作失败!\', { icon: 5 });\r\n }\r\n " + " else {\r\n layer.alert(data, { icon: 7 });\r\n " + " }\r\n },\r\n error: fun" + "ction (data) { layer.alert(\'操作失败!\', { icon: 5 }); }\r\n })\r\n " + " });\r\n }\r\n\r\n function getTrJson(id) {\r\n var stringB" + "uild = new StringBuffer();\r\n stringBuild.append(\"[\");\r\n va" + "r conTr = $(\"#tb_tr_\" + id);\r\n var conTd = conTr.find(\"td[data-id=tb_" + "td_\" + id + \"]\");\r\n conTd.each(function () {\r\n stringB" + "uild.append(\"{\");\r\n var mtId = $(this).attr(\"data-bind\");\r\n " + " var perIds = $(this).find(\".selectpicker\").selectpicker(\'val\');\r\n " + " if(perIds==null){perIds=\"\"}\r\n stringBuild.append(\"\'id\'" + ":\" + mtId+\",\");\r\n stringBuild.append(\"\'ResPermissionIds\':[\"+perId" + "s+\"]\");\r\n stringBuild.append(\"},\");\r\n })\r\n\r\n " + " var jsStr = trimEnd(stringBuild.toString());\r\n\r\n jsStr += \"]\";\r\n\r\n " + " return jsStr;\r\n }\r\n\r\n function initEvent() {\r\n " + " $(\".selectpicker\").selectpicker();\r\n }\r\n\r\n //改变筛选条件\r\n fu" + "nction changeQueryCondition() {\r\n $(\"#resName\").val($(\"#resTitle\").va" + "l());\r\n $(\"#resPackgeId\").val($(\"#sel_resPage\").val());\r\n " + "$(\"#PageIndex\").val(1);//页索引置为1\r\n $(\"#searchByRequest\").submit();\r\n " + " }\r\n\r\n //改变索引页\r\n function changePageIndex(index) {\r\n " + " $(\"#PageIndex\").val(index);\r\n $(\"#searchByRequest\").submit();\r\n " + " }\r\n </script>\r\n"); }); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { #line 3 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" ViewBag.Title = "XemGioHang"; Layout = "~/Views/Layout/ProductLayout.cshtml"; #line default #line hidden BeginContext(152, 75, true); WriteLiteral("<script>\r\n var listID = [];\r\n</script>\r\n<div id=\"ContentRealtime\">\r\n\r\n"); EndContext(); #line 12 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" if (Model == null || Model.ToList().Count == 0) { #line default #line hidden BeginContext(288, 32, true); WriteLiteral(" <h2>giỏ hàng rỗng</h2>\r\n"); EndContext(); #line 15 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" } else { #line default #line hidden BeginContext(351, 74, true); WriteLiteral(" <div class=\"check\" id=\"ketqua\">\r\n <h2>My Shopping Bag ("); EndContext(); BeginContext(426, 25, false); #line 20 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" Write(Model.Sum(s => s.SoLuong)); #line default #line hidden EndContext(); BeginContext(451, 57, true); WriteLiteral(")</h2>\r\n <div class=\"col-md-6 cart-items\">\r\n\r\n"); EndContext(); #line 23 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" foreach (ItemGioHang item in Model) { #line default #line hidden BeginContext(585, 130, true); WriteLiteral(" <script>\r\n $(document).ready(function (c) {\r\n listID.push(\'#"); EndContext(); BeginContext(716, 9, false); #line 29 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" Write(item.MaSP); #line default #line hidden EndContext(); BeginContext(725, 41, true); WriteLiteral("\');\r\n $(\'#"); EndContext(); BeginContext(767, 9, false); #line 30 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" Write(item.MaSP); #line default #line hidden EndContext(); BeginContext(776, 231, true); WriteLiteral("\').on(\'click\', function (c) {\r\n \r\n $.ajax({\r\n type: \'POST\',\r\n data: { MaSP: "); EndContext(); BeginContext(1008, 9, false); #line 34 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" Write(item.MaSP); #line default #line hidden EndContext(); BeginContext(1017, 55, true); WriteLiteral(" },\r\n url: \'"); EndContext(); BeginContext(1073, 38, false); #line 35 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" Write(Url.Action("XoaItemGioHang", "GioHang")); #line default #line hidden EndContext(); BeginContext(1111, 467, true); WriteLiteral(@"', success: function (ketqua) { $('.check').html(ketqua); } }); }); }); </script> <div class=""cart-header""> <div class=""close1"""); EndContext(); BeginWriteAttribute("id", " id=\"", 1578, "\"", 1593, 1); #line 52 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" WriteAttributeValue("", 1583, item.MaSP, 1583, 10, false); #line default #line hidden EndWriteAttribute(); BeginContext(1594, 52, true); WriteLiteral("> </div>\r\n\r\n <a class=\"edit1\""); EndContext(); BeginWriteAttribute("href", " href=\"", 1646, "\"", 1714, 1); #line 54 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" WriteAttributeValue("", 1653, Url.Action("SuaGioHang", "GioHang", new { @MaSP = item.MaSP }), 1653, 61, false); #line default #line hidden EndWriteAttribute(); BeginContext(1715, 170, true); WriteLiteral("> </a>\r\n <div class=\"cart-sec simpleCart_shelfItem\">\r\n <div class=\"cart-item cyc\">\r\n <img"); EndContext(); BeginWriteAttribute("src", " src=\"", 1885, "\"", 1942, 1); #line 57 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" WriteAttributeValue("", 1891, Url.Content("~/Content/HinhAnhSP/" + item.HinhAnh), 1891, 51, false); #line default #line hidden EndWriteAttribute(); BeginContext(1943, 177, true); WriteLiteral(" class=\"img-responsive\" alt=\"\" />\r\n </div>\r\n <div class=\"cart-item-info\">\r\n <h3><a href=\"#\">"); EndContext(); BeginContext(2121, 10, false); #line 60 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" Write(item.TenSP); #line default #line hidden EndContext(); BeginContext(2131, 61, true); WriteLiteral("</a></h3>\r\n <ul class=\"qty\">\r\n"); EndContext(); BeginContext(2258, 54, true); WriteLiteral(" <li><p>Số lượng : "); EndContext(); BeginContext(2313, 12, false); #line 63 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" Write(item.SoLuong); #line default #line hidden EndContext(); BeginContext(2325, 156, true); WriteLiteral("</p></li>\r\n </ul>\r\n\r\n <div class=\"delivery\">\r\n <p>Đơn giá :"); EndContext(); BeginContext(2482, 28, false); #line 67 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" Write(item.DonGia.ToString("#,##")); #line default #line hidden EndContext(); BeginContext(2510, 52, true); WriteLiteral(" vnđ</p>\r\n <span>"); EndContext(); BeginContext(2563, 31, false); #line 68 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" Write(item.ThanhTien.ToString("#,##")); #line default #line hidden EndContext(); BeginContext(2594, 275, true); WriteLiteral(@" vnđ</span> <div class=""clearfix""></div> </div> </div> <div class=""clearfix""></div> </div> </div> "); EndContext(); #line 76 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" } #line default #line hidden BeginContext(2888, 104, true); WriteLiteral(" </div>\r\n\r\n <div class=\"col-md-3 cart-total\">\r\n <a class=\"continue\""); EndContext(); BeginWriteAttribute("href", " href=\"", 2992, "\"", 3026, 1); #line 80 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" WriteAttributeValue("", 2999, Url.Action("Index", "Home"), 2999, 27, false); #line default #line hidden EndWriteAttribute(); BeginContext(3027, 202, true); WriteLiteral(">Tiếp tục mua hàng</a>\r\n <div class=\"price-details\">\r\n <h3>Thông tin hóa đơn</h3>\r\n <span>Tổng tiền</span>\r\n <span class=\"total1\">"); EndContext(); BeginContext(3230, 44, false); #line 84 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" Write(Model.Sum(s => s.ThanhTien).ToString("#,##")); #line default #line hidden EndContext(); BeginContext(3274, 501, true); WriteLiteral(@" vnđ</span> <span>Discount</span> <span class=""total1"">---</span> <span>Miễn phí ship tại TP.HCM</span> <hr /> <span>Phí ship các tỉnh khác: 30.000 vnđ</span> <div class=""clearfix""></div> </div> <ul class=""total_price""> <li class=""last_price""> <h4>Tổng tiền</h4></li> <li class=""last_price""><span>"); EndContext(); BeginContext(3776, 44, false); #line 95 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" Write(Model.Sum(s => s.ThanhTien).ToString("#,##")); #line default #line hidden EndContext(); BeginContext(3820, 363, true); WriteLiteral(@" vnđ</span></li> <li><span>( chưa cộng phí ship )</span></li> <div class=""clearfix""> </div> </ul> <div class=""clearfix""></div> <a class=""order"" id=""btnDatHang"" href=""#"">Đặt hàng</a> </div> <div class=""clearfix""> </div> </div> "); EndContext(); #line 108 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" } #line default #line hidden BeginContext(4190, 292, true); WriteLiteral(@" </div> <div id=""popup-order""> <div class="" w3l-login-form""> <div style=""clear:both;text-align:right;margin-bottom:0""> <span id=""close-form-order"" class=""btn btn-danger"">X</span> </div> <h3 style=""color:red;text-align:center"">Đặt hàng</h3> "); EndContext(); #line 119 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" using (Ajax.BeginForm("DatHang", "Home", new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "ketqua", InsertionMode = InsertionMode.Replace })) { #line default #line hidden BeginContext(4654, 1408, true); WriteLiteral(@" <div class="" w3l-form-group""> <label>Tài khoản:</label> <div class=""group""> <i class=""fas fa-user""></i> <input type=""text"" class=""form-control"" placeholder=""Họ tên"" required=""required"" name=""userName""> </div> </div> <div class="" w3l-form-group""> <label>Email:</label> <div class=""group""> <i class=""fas fa-envelope""></i> <input id=""email"" type=""email"" class=""form-control"" placeholder=""Email"" required=""required"" name=""Email""> </div> </div> <div class="" w3l-form-group""> <label>Số điện thoại:</label> <div class=""group""> <i class=""fas fa-phone""></i> <input id=""numberphone"" type=""number"" class=""form-control"" placeholder=""Số điện thoại"" required=""required"" name=""phoneNumber""> </div"); WriteLiteral(@"> </div> <div class="" w3l-form-group""> <label>Địa chỉ:</label> <div class=""group""> <i class=""fas fa-home""></i> <input style=""width:100%"" id=""dress"" type=""text"" class=""form-control"" placeholder=""Địa chỉ"" required=""required"" name=""Dress""> </div> </div> "); EndContext(); BeginContext(6064, 77, true); WriteLiteral(" <button type=\"submit\" id=\"btnOrder\">Tiến hành đặt hàng</button>\r\n"); EndContext(); #line 152 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" } #line default #line hidden BeginContext(6152, 284, true); WriteLiteral(@" </div> </div> <div id=""popup-order-tv""> <div class="" w3l-login-form""> <div style=""clear:both;text-align:right;margin-bottom:0""> <span id=""close-form-order-tv"" class=""btn btn-danger"">X</span> </div> <div style=""padding-top:10%""> "); EndContext(); #line 163 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" using (Ajax.BeginForm("DatHang", "Home", new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "ketqua", InsertionMode = InsertionMode.Replace })) { #line default #line hidden BeginContext(6618, 84, true); WriteLiteral(" <button type=\"submit\" id=\"btnOrder-tv\">Tiến hành đặt hàng</button>\r\n"); EndContext(); #line 168 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" } #line default #line hidden BeginContext(6717, 575, true); WriteLiteral(@" </div> </div> </div> <style> #close-form-order { color: white; } #popup-order { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0); z-index: 3; display: none; } #popup-order-tv { position: absolute; top: 10%; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0); z-index: 3; display: none; } </style> "); EndContext(); #line 204 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" ThanhVienTB tv = Session["TaiKhoan"] as ThanhVienTB; int status = 0; if (tv != null) { status = 1; } #line default #line hidden BeginContext(7436, 46, true); WriteLiteral("<script type=\"text/javascript\">\r\n var kt = "); EndContext(); BeginContext(7483, 6, false); #line 214 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" Write(status); #line default #line hidden EndContext(); BeginContext(7489, 983, true); WriteLiteral(@"; $(""#btnDatHang"").click(function () { if (kt) { $(""#popup-order-tv"").fadeIn(500); } else { $(""#popup-order"").fadeIn(500); } }); //Bắt sựu kiện ẩn form $(""#close-form-order"").click(CloseForm); //Định nghĩa ẩn form function CloseForm() { $(""#popup-order"").hide(); } $(""#close-form-order-tv"").click(CloseFormTV); //Định nghĩa ẩn form function CloseFormTV() { $(""#popup-order-tv"").hide(); } $(""#btnOrder"").click(function () { alert(""Quý khách đã đặt hàng thành công ! Cảm ơn quý khách. Nhân viên tư vấn sẽ gọi lại xác nhận đơn hàng này""); $(""#popup-order"").hide(); }); $(""#btnOrder-tv"").click(function () { alert(""Quý khách đã đặt hàng thành công ! Cảm ơn quý khách. Nhân viên tư vấn sẽ gọi lại xác nhận đơn hàng này""); $(""#popup-order-tv"").hide(); }); </script> "); EndContext(); DefineSection("scripts", async() => { BeginContext(8490, 179, true); WriteLiteral("\r\n \r\n <!--Script references. -->\r\n <!--The jQuery library is required and is referenced by default in _Layout.cshtml. -->\r\n <!--Reference the SignalR library. -->\r\n\r\n "); EndContext(); BeginContext(8669, 61, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b769f614532247a593e8fbf5dcdaf5be", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(8730, 67, true); WriteLiteral("\r\n <!--Reference the autogenerated SignalR hub script. -->\r\n "); EndContext(); BeginContext(8797, 38, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "181f7609190742a788a6d0457bf8b4b3", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(8835, 197, true); WriteLiteral("\r\n <!--SignalR script to update the chat page and send messages.-->\r\n <script>\r\n \r\n $(function () {\r\n \r\n var contentHtml = \'\';\r\n var contenUrl = \'"); EndContext(); BeginContext(9033, 14, false); #line 269 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml" Write(Request.RawUrl); #line default #line hidden EndContext(); BeginContext(9047, 1772, true); WriteLiteral(@"'; // Reference the auto-generated proxy for the hub. var chat = $.connection.chatHub; // Create a function that the hub can call back to display messages. chat.client.addNewMessageToPage = function (name, message) { // Add the message to the page. $('#KQTimKiem').html(message); window.location.href = name; }; // Get the user name and store it to prepend to messages. // $('#displayname').val(prompt('Enter your name:', '')); // Set initial focus to message input box. // Start the connection. $.connection.hub.start().done(function () { // Call the Send method on the hub. if (kt) { for (var i = 0; i < listID.length; i++) { $(listID[i]).click(function () { listID.splice(i, 1); "); WriteLiteral(@" chat.server.send(contenUrl, $('#KQTimKiem').html()); }); } $('#XemGioHang').click(function () { chat.server.send(contenUrl, $('#KQTimKiem').html()); }); } }); }); // This optional function html-encodes messages for display in the page. function htmlEncode(value) { var encodedValue = $('<div />').text(value).html(); return encodedValue; } </script> "); EndContext(); } ); }
public override void Execute() { #line 1 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" Layout = null; #line default #line hidden WriteLiteral("\r\n\r\n"); #line 10 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" Write(Scripts.Render("~/bundles/saos")); #line default #line hidden WriteLiteral("\r\n"); #line 11 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" Write(Scripts.Render("~/bundles/ajaxAsync")); #line default #line hidden WriteLiteral("\r\n"); #line 12 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" Write(Scripts.Render("~/bundles/validate")); #line default #line hidden WriteLiteral("\r\n"); #line 13 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" Write(Styles.Render("~/appcss")); #line default #line hidden WriteLiteral("\r\n<style"); WriteLiteral(" type=\"text/css\""); WriteLiteral(">\r\n .form-horizontal .form-label {\r\n text-align: right;\r\n }\r\n</style" + ">\r\n<article"); WriteLiteral(" class=\"page-container\""); WriteLiteral(">\r\n"); #line 20 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" #line default #line hidden #line 20 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" using (Ajax.BeginForm("Add", "MessageRecord", new { }, new AjaxOptions() { HttpMethod = "Post", OnSuccess = "formSuccess(data)", OnBegin = "disSubmit('sub_btn')", OnComplete = "enSubmit('sub_btn')" }, new { id = "", @class = "form form-horizontal" })) { #line default #line hidden #line 22 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden #line 22 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" #line default #line hidden #line 23 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" Write(Html.HiddenFor(m => m.Id, new { @Value = 0 })); #line default #line hidden #line 23 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>订单编号:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-7 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 27 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" Write(Html.TextBoxFor(m => m.Number, new { placeholder = "请输入订单编号", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 28 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" Write(Html.ValidationMessageFor(m => m.Number, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>商品名称:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-7 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 34 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" Write(Html.TextBoxFor(m => m.OrderName, new { placeholder = "请输入商品名称", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 35 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" Write(Html.ValidationMessageFor(m => m.OrderName, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>手机号码:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-7 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 41 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" Write(Html.TextBoxFor(m => m.Phone, new { placeholder = "请输入手机号", @class = "input-text" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 42 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" Write(Html.ValidationMessageFor(m => m.Phone, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 45 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-3 \""); WriteLiteral("><span"); WriteLiteral(" class=\"c-red\""); WriteLiteral(">*</span>订单日期:</label>\r\n <div"); WriteLiteral(" class=\"formControls col-xs-7 \""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 49 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" Write(Html.TextBoxFor(m => m.OrderDate, new { placeholder = "请输入订单日期", onclick = "WdatePicker()", autocomplete = "off", @class = "input-text Wdate" })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 50 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" Write(Html.ValidationMessageFor(m => m.OrderDate, null, new { @class = "error-lable" })); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <label"); WriteLiteral(" class=\"form-label col-xs-6 \""); WriteLiteral("><b>注:</b>新建的信息默认为 <span"); WriteLiteral(" class=\"label label-primary radius\""); WriteLiteral(">未发送</span> 状态</label>\r\n </div>\r\n"); #line 56 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row cl\""); WriteLiteral(">\r\n <div"); WriteLiteral(" id=\"btn_submit\""); WriteLiteral(" class=\"col-xs-6 col-xs-offset-3 col-sm-offset-2 mt-10\""); WriteLiteral(">\r\n <button"); WriteLiteral(" class=\"btn btn-primary radius\""); WriteLiteral(" type=\"submit\""); WriteLiteral(" id=\"sub_btn\""); WriteLiteral(">保存</button>\r\n <input"); WriteLiteral(" name=\"\""); WriteLiteral(" type=\"button\""); WriteLiteral(" onclick=\"layer_close();\""); WriteLiteral(" class=\"btn btn-default radius \""); WriteLiteral(" value=\"取消\""); WriteLiteral(">\r\n </div>\r\n </div>\r\n"); #line 63 "..\..\Areas\manage\Views\MessageRecord\Add.cshtml" } #line default #line hidden WriteLiteral("</article>\r\n\r\n<script"); WriteLiteral(" type=\"text/javascript\""); WriteLiteral(@"> function formSuccess(result) { if (result != null) { if (result.isSuccess) { var index = parent.layer.getFrameIndex(window.name); layer.alert('保存成功!', { icon: 6, closeBtn: 0, yes: function () { if (parent[1] != null) { parent[pageIndex()].table1.ajax.reload(); } else { parent.table1.ajax.reload(); } parent.layer.close(index); } }); } else if (result.message != null) { layer.alert(result.message, { icon: 8 }); } else layer.alert('保存失败!', { icon: 5 });//icon:6为开心图 } else layer.alert('保存失败!', { icon: 5 });//icon:6为开心图 } </script>"); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(57, 4, true); WriteLiteral("\r\n\r\n"); EndContext(); #line 5 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" if (Model == null || Model.Count() == 0) { #line default #line hidden BeginContext(107, 142, true); WriteLiteral(" <h2>giỏ hàng rỗng</h2>\r\n <script>\r\n $(\"#TongTien\").text(\"0 vnđ\");\r\n $(\"#simpleCart_quantity\").text(\"0\");\r\n </script>\r\n"); EndContext(); #line 12 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" } else { #line default #line hidden BeginContext(263, 25, true); WriteLiteral(" <h2>My Shopping Bag ("); EndContext(); BeginContext(289, 25, false); #line 16 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" Write(Model.Sum(s => s.SoLuong)); #line default #line hidden EndContext(); BeginContext(314, 49, true); WriteLiteral(")</h2>\r\n <div class=\"col-md-6 cart-items\">\r\n\r\n"); EndContext(); #line 19 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" foreach (ItemGioHang item in Model) { #line default #line hidden BeginContext(420, 106, true); WriteLiteral(" <script>\r\n\r\n $(document).ready(function (c) {\r\n $(\'#"); EndContext(); BeginContext(527, 9, false); #line 24 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" Write(item.MaSP); #line default #line hidden EndContext(); BeginContext(536, 171, true); WriteLiteral("\').on(\'click\', function (c) {\r\n\r\n $.ajax({\r\n type: \'POST\',\r\n data: { MaSP: "); EndContext(); BeginContext(708, 9, false); #line 28 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" Write(item.MaSP); #line default #line hidden EndContext(); BeginContext(717, 47, true); WriteLiteral(" },\r\n url: \'"); EndContext(); BeginContext(765, 38, false); #line 29 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" Write(Url.Action("XoaItemGioHang", "GioHang")); #line default #line hidden EndContext(); BeginContext(803, 381, true); WriteLiteral(@"', success: function (ketqua) { $('.check').html(ketqua); } }); }); }); </script> <div class=""cart-header"" id=""abc""> <div class=""close1"""); EndContext(); BeginWriteAttribute("id", " id=\"", 1184, "\"", 1199, 1); #line 42 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" WriteAttributeValue("", 1189, item.MaSP, 1189, 10, false); #line default #line hidden EndWriteAttribute(); BeginContext(1200, 44, true); WriteLiteral("> </div>\r\n\r\n <a class=\"edit1\""); EndContext(); BeginWriteAttribute("href", " href=\"", 1244, "\"", 1312, 1); #line 44 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" WriteAttributeValue("", 1251, Url.Action("SuaGioHang", "GioHang", new { @MaSP = item.MaSP }), 1251, 61, false); #line default #line hidden EndWriteAttribute(); BeginContext(1313, 146, true); WriteLiteral("> </a>\r\n <div class=\"cart-sec simpleCart_shelfItem\">\r\n <div class=\"cart-item cyc\">\r\n <img"); EndContext(); BeginWriteAttribute("src", " src=\"", 1459, "\"", 1516, 1); #line 47 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" WriteAttributeValue("", 1465, Url.Content("~/Content/HinhAnhSP/" + item.HinhAnh), 1465, 51, false); #line default #line hidden EndWriteAttribute(); BeginContext(1517, 153, true); WriteLiteral(" class=\"img-responsive\" alt=\"\" />\r\n </div>\r\n <div class=\"cart-item-info\">\r\n <h3><a href=\"#\">"); EndContext(); BeginContext(1671, 10, false); #line 50 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" Write(item.TenSP); #line default #line hidden EndContext(); BeginContext(1681, 53, true); WriteLiteral("</a></h3>\r\n <ul class=\"qty\">\r\n"); EndContext(); BeginContext(1792, 46, true); WriteLiteral(" <li><p>Số lượng : "); EndContext(); BeginContext(1839, 12, false); #line 53 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" Write(item.SoLuong); #line default #line hidden EndContext(); BeginContext(1851, 132, true); WriteLiteral("</p></li>\r\n </ul>\r\n\r\n <div class=\"delivery\">\r\n <p>Đơn giá :"); EndContext(); BeginContext(1984, 28, false); #line 57 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" Write(item.DonGia.ToString("#,##")); #line default #line hidden EndContext(); BeginContext(2012, 44, true); WriteLiteral(" vnđ</p>\r\n <span>"); EndContext(); BeginContext(2057, 31, false); #line 58 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" Write(item.ThanhTien.ToString("#,##")); #line default #line hidden EndContext(); BeginContext(2088, 227, true); WriteLiteral(" vnđ</span>\r\n <div class=\"clearfix\"></div>\r\n </div>\r\n </div>\r\n <div class=\"clearfix\"></div>\r\n\r\n </div>\r\n </div>\r\n"); EndContext(); #line 66 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" } #line default #line hidden BeginContext(2326, 12, true); WriteLiteral(" </div>\r\n"); EndContext(); BeginContext(2340, 66, true); WriteLiteral(" <div class=\"col-md-3 cart-total\">\r\n <a class=\"continue\""); EndContext(); BeginWriteAttribute("href", " href=\"", 2406, "\"", 2440, 1); #line 70 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" WriteAttributeValue("", 2413, Url.Action("Index", "Home"), 2413, 27, false); #line default #line hidden EndWriteAttribute(); BeginContext(2441, 170, true); WriteLiteral(">Tiếp tục mua hàng</a>\r\n <div class=\"price-details\">\r\n <h3>Thông tin hóa đơn</h3>\r\n <span>Tổng tiền</span>\r\n <span class=\"total1\">"); EndContext(); BeginContext(2612, 44, false); #line 74 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" Write(Model.Sum(s => s.ThanhTien).ToString("#,##")); #line default #line hidden EndContext(); BeginContext(2656, 421, true); WriteLiteral(@" vnđ</span> <span>Discount</span> <span class=""total1"">---</span> <span>Miễn phí ship tại TP.HCM</span> <hr /> <span>Phí ship các tỉnh khác: 30.000 vnđ</span> <div class=""clearfix""></div> </div> <ul class=""total_price""> <li class=""last_price""> <h4>Tổng tiền</h4></li> <li class=""last_price""><span>"); EndContext(); BeginContext(3078, 44, false); #line 85 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" Write(Model.Sum(s => s.ThanhTien).ToString("#,##")); #line default #line hidden EndContext(); BeginContext(3122, 240, true); WriteLiteral(" vnđ</span></li>\r\n <li><span>( chưa cộng phí ship )</span></li>\r\n <div class=\"clearfix\"> </div>\r\n </ul>\r\n\r\n\r\n <div class=\"clearfix\"></div>\r\n <a class=\"order\" href=\"#\" id=\"btnDatHang\">Đặt hàng</a>\r\n"); EndContext(); BeginContext(3628, 12, true); WriteLiteral(" </div>\r\n"); EndContext(); BeginContext(3642, 35, true); WriteLiteral(" <div class=\"clearfix\"> </div>\r\n"); EndContext(); #line 102 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" } #line default #line hidden BeginContext(3684, 43, true); WriteLiteral("<script>\r\n $(\"#TongTien\").text(\""); EndContext(); BeginContext(3728, 25, false); #line 106 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" Write(Model.Sum(s => s.ThanhTien)); #line default #line hidden EndContext(); BeginContext(3753, 53, true); WriteLiteral(" vnđ\");\r\n $(\"#simpleCart_quantity\").text(\""); EndContext(); BeginContext(3807, 23, false); #line 107 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" Write(Model.Sum(s => s.SoLuong)); #line default #line hidden EndContext(); BeginContext(3830, 296, true); WriteLiteral(@"""); </script> <div id=""popup-order""> <div class="" w3l-login-form""> <div style=""clear:both;text-align:right;margin-bottom:0""> <span id=""close-form-order"" class=""btn btn-danger"">X</span> </div> <h3 style=""color:red;text-align:center"">Đặt hàng</h3> "); EndContext(); #line 116 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" using (Ajax.BeginForm("DatHang", "Home", new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "ketqua", InsertionMode = InsertionMode.Replace })) { #line default #line hidden BeginContext(4298, 1408, true); WriteLiteral(@" <div class="" w3l-form-group""> <label>Tài khoản:</label> <div class=""group""> <i class=""fas fa-user""></i> <input type=""text"" class=""form-control"" placeholder=""Họ tên"" required=""required"" name=""userName""> </div> </div> <div class="" w3l-form-group""> <label>Email:</label> <div class=""group""> <i class=""fas fa-envelope""></i> <input id=""email"" type=""email"" class=""form-control"" placeholder=""Email"" required=""required"" name=""Email""> </div> </div> <div class="" w3l-form-group""> <label>Số điện thoại:</label> <div class=""group""> <i class=""fas fa-phone""></i> <input id=""numberphone"" type=""number"" class=""form-control"" placeholder=""Số điện thoại"" required=""required"" name=""phoneNumber""> </div"); WriteLiteral(@"> </div> <div class="" w3l-form-group""> <label>Địa chỉ:</label> <div class=""group""> <i class=""fas fa-home""></i> <input style=""width:100%"" id=""dress"" type=""text"" class=""form-control"" placeholder=""Địa chỉ"" required=""required"" name=""Dress""> </div> </div> "); EndContext(); BeginContext(5708, 77, true); WriteLiteral(" <button type=\"submit\" id=\"btnOrder\">Tiến hành đặt hàng</button>\r\n"); EndContext(); #line 149 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" } #line default #line hidden BeginContext(5796, 284, true); WriteLiteral(@" </div> </div> <div id=""popup-order-tv""> <div class="" w3l-login-form""> <div style=""clear:both;text-align:right;margin-bottom:0""> <span id=""close-form-order-tv"" class=""btn btn-danger"">X</span> </div> <div style=""padding-top:10%""> "); EndContext(); #line 160 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" using (Ajax.BeginForm("DatHang", "Home", new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "ketqua", InsertionMode = InsertionMode.Replace })) { #line default #line hidden BeginContext(6262, 84, true); WriteLiteral(" <button type=\"submit\" id=\"btnOrder-tv\">Tiến hành đặt hàng</button>\r\n"); EndContext(); #line 165 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" } #line default #line hidden BeginContext(6361, 575, true); WriteLiteral(@" </div> </div> </div> <style> #close-form-order { color: white; } #popup-order { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0); z-index: 3; display: none; } #popup-order-tv { position: absolute; top: 10%; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0); z-index: 3; display: none; } </style> "); EndContext(); #line 201 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" ThanhVienTB tv = Session["TaiKhoan"] as ThanhVienTB; int status = 0; if (tv != null) { status = 1; } #line default #line hidden BeginContext(7080, 46, true); WriteLiteral("<script type=\"text/javascript\">\r\n var kt = "); EndContext(); BeginContext(7127, 6, false); #line 211 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" Write(status); #line default #line hidden EndContext(); BeginContext(7133, 972, true); WriteLiteral(@"; $(""#btnDatHang"").click(function () { if (kt) { $(""#popup-order-tv"").fadeIn(500); } else { $(""#popup-order"").fadeIn(500); } }); //Bắt sựu kiện ẩn form $(""#close-form-order"").click(CloseForm); //Định nghĩa ẩn form function CloseForm() { $(""#popup-order"").hide(); } $(""#close-form-order-tv"").click(CloseFormTV); //Định nghĩa ẩn form function CloseFormTV() { $(""#popup-order-tv"").hide(); } $(""#btnOrder"").click(function () { alert(""Quý khách đã đặt hàng thành công ! Cảm ơn quý khách. Nhân viên tư vấn sẽ gọi lại xác nhận đơn hàng này""); $(""#popup-order"").hide(); }); $(""#btnOrder-tv"").click(function () { alert(""Quý khách đã đặt hàng thành công ! Cảm ơn quý khách. Nhân viên tư vấn sẽ gọi lại xác nhận đơn hàng này""); $(""#popup-order"").hide(); }); </script> "); EndContext(); DefineSection("scripts", async() => { BeginContext(8123, 178, true); WriteLiteral("\r\n\r\n <!--Script references. -->\r\n <!--The jQuery library is required and is referenced by default in _Layout.cshtml. -->\r\n <!--Reference the SignalR library. -->\r\n\r\n "); EndContext(); BeginContext(8301, 61, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "96e8c8d2d3da466d93ce3e4d0d1700a2", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(8362, 67, true); WriteLiteral("\r\n <!--Reference the autogenerated SignalR hub script. -->\r\n "); EndContext(); BeginContext(8429, 38, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b18ee6b9cd6e40b5b356a2557e671d10", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(8467, 179, true); WriteLiteral("\r\n <!--SignalR script to update the chat page and send messages.-->\r\n <script>\r\n\r\n $(function () {\r\n\r\n var contentHtml = \'\';\r\n var contenUrl = \'"); EndContext(); BeginContext(8647, 14, false); #line 266 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml" Write(Request.RawUrl); #line default #line hidden EndContext(); BeginContext(8661, 1596, true); WriteLiteral(@"'; // Reference the auto-generated proxy for the hub. var chat = $.connection.chatHub; // Create a function that the hub can call back to display messages. chat.client.addNewMessageToPage = function (name, message) { // Add the message to the page. $('#KQTimKiem').html(message); window.location.href = name; }; // Get the user name and store it to prepend to messages. // $('#displayname').val(prompt('Enter your name:', '')); // Set initial focus to message input box. // Start the connection. $.connection.hub.start().done(function () { // Call the Send method on the hub. if (kt) { for (var i = 0; i < listID.length; i++) { $(listID[i]).click(function () { listID.splice(i, 1); chat.serv"); WriteLiteral(@"er.send(contenUrl, $('#KQTimKiem').html()); }); } $('#XemGioHang').click(function () { chat.server.send(contenUrl, $('#KQTimKiem').html()); }); } }); }); // This optional function html-encodes messages for display in the page. function htmlEncode(value) { var encodedValue = $('<div />').text(value).html(); return encodedValue; } </script> "); EndContext(); } ); }