0

MVC3 プロジェクトで DHTMLX スケジューラを使用していました。定期的なイベント スケジューラを使用する必要があります。DBを除くすべての構成は問題ないようです。定期的なイベントのためにサーバーに含める必要がある必須フィールドを知る必要があります。

また、定期的なイベントの xml 構成とデータ取得についてはどうですか。そのサンプル チュートリアルでは、php のようにサーバー エンド コードで構成されています。そのため、MVC 環境のコードの書き方がわかりません。どうすればこれを行うことができるか教えてください。

索引

function init() {
    scheduler.templates.event_text = function (start, end, ev) {
        return 'Event: ' + ev.Description + '';
    };
    scheduler.templates.calendar_month = scheduler.date.date_to_str("%F %Y");
    scheduler.config.full_day = true;
    scheduler.locale.labels.full_day = "Full day";
    //week label of calendar
    scheduler.templates.calendar_scale_date = scheduler.date.date_to_str("%D");
    //date value on the event's details form
    scheduler.templates.calendar_time = scheduler.date.date_to_str("%d-%m-%Y");
    scheduler.config.repeat_date = "%m-%d-%Y";

    scheduler.config.update_render = "true";
    scheduler.locale.labels.section_category = 'Category';
    scheduler.locale.labels.section_location = 'Title';

    scheduler.config.lightbox.sections = [
    { name: "location", height: 15, map_to: "title", type: "textarea" },
{ name: "description", height: 50, map_to: "text", type: "textarea", focus: true },

    { name: "recurring", height: 115, type: "recurring", map_to: "rec_type", button:  "recurring" },

{ name: "time", height: 72, type: "time", map_to: "auto" },
    { name: "category", height: 22, type: "select", map_to: "category", options: [
    {key:"", label:"Select Category"},
    {key:"A", label:"Public"},
    {key:"P", label:"Private"},
    {key:"C", label:"Closed"}
           ]}

            ]


           scheduler.config.xml_date = "%m/%d/%Y %H:%i";
           scheduler.init("scheduler_here", new Date(), "month");
           scheduler.load("/Admin/EventCalendar/Dat");
           var dp = new dataProcessor("/Admin/EventCalendar/Save");
           dp.init(scheduler);
           dp.setTransactionMode("POST", false);
           }

ありがとう。

4

1 に答える 1

1

DBの関連レコードに4つのフィールドを定義する必要があります

  • rec_type、week_1___6(毎週、日曜日)
  • start_date - 最初の発生日
  • end_date - 発生の最終日 (イベントに終了日がない場合は 9999 年に設定)
  • event_length - 秒単位のイベントの長さ、あなたの場合は 36600 になります
于 2012-12-04T12:23:11.397 に答える