コード例 #1
0
        private void AddHtmlTails()
        {
            webBrowser.Document.Write("</td></tr>");
            CategoryFacade cf = this.controller.CategoryFacade;

            if (cf.ConditionEnabled == ConditionEnabledCodeType.Enabled ||
                cf.ConditionEnabled == ConditionEnabledCodeType.Required)
            {
                webBrowser.Document.Write("<tr><td>");
                webBrowser.Document.Write("<font color='red'>Note:</font><br>");
                webBrowser.Document.Write("This category is condition enabled, <br>");
                webBrowser.Document.Write("please ignore item condition setting(if any) on this form.<br>");
                webBrowser.Document.Write("You can set item condition on AddItem form later.");
                webBrowser.Document.Write("</td></tr>");
            }
            webBrowser.Document.Write("<tr><td align=\"center\">");
            string s = "<input type=\"button\" name=\"btSubmit0\" value=\"&nbsp;Back&nbsp;\" id=\"btSubmit0\"";

            s += "onclick=\"javascript:onClick('back')\"" + "/>";
            webBrowser.Document.Write(s);
            webBrowser.Document.Write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
            s  = "<input type=\"button\" name=\"btSubmit1\" value=\"Continue\" id=\"btSubmit1\"";
            s += "onclick=\"javascript:onClick('post')\"" + "/>";
            webBrowser.Document.Write(s);
            webBrowser.Document.Write("</td></tr></table>");
            webBrowser.Document.Write("<input type=\"hidden\" name=\"action\" value=\"display\"/>");
            webBrowser.Document.Write("</form></body></html>");
        }
コード例 #2
0
 public void InitCategoryFacade(string catId)
 {
     this.categoryFacate = new CategoryFacade(catId, this.ApiContext, this.siteFacade);
 }
コード例 #3
0
 public void InitCategoryFacade(string catId)
 {
     this.categoryFacate = new CategoryFacade(catId, this.ApiContext, this.siteFacade);
 }