1. Create a class, which represents an appointment. Here it is named C การแปล - 1. Create a class, which represents an appointment. Here it is named C ไทย วิธีการพูด

1. Create a class, which represents

1. Create a class, which represents an appointment. Here it is named CustomEvent. Add required public properties, which will be mapped to corresponding appointment properties.
2. Create a class responsible for data processing - CustomDataSource. It implements update, insert, select and delete methods. The select method should return an object of the BindingList type to ensure a correct operation.
3. Add the ObjectDataSource component to the page by dragging and dropping it from the Toolbox.
4. Assign the values to ObjectDataSource properties, as follows:
- DataObjectTypeName="CustomEvent"
- TypeName="CustomDataSource"
- InsertMethod, UpdateMethod, DeleteMethod and SelectMethod properties – specify the corresponding methods of the CustomDataSource class.
5. In the Page_Load event procedure, specify mappings, assign the ObjectDataSource as the appointment's data source, and call the ASPxScheduler’s DataBind method

To make the project simple and easy-to-use, data is written into a session. To accomplish this, the CustomEventList : BindingList class is implemented. It has several helper methods, and is marked with a Serializable attribute. It eliminates the need for an external data source since all data is stored in a session. Note that all data will be lost when a session is closed (usually it happens when the browser window is closed).

When a page is reloaded, the ObjectCreated event of the ObjectDataSource component is raised. This event is handled to load the previously saved appointments from within the session. When a new CustomDataSource object is created, it gets a CustomEventList collection, which contains a list of appointments.

Note that each appointment must have a unique identifier. Otherwise, the client-server interaction fails. So, the need to assign a unique ID to newly created appointments is evident. Since editing an appointment actually involves its re-creation, the same requirement is applied to edited appointments. To accomplish a unique ID assignment, use the AppointmentInserting event of the ASPxScheduler control. The appointment's object hash function provides the necessary unique value.
0/5000
จาก: -
เป็น: -
ผลลัพธ์ (ไทย) 1: [สำเนา]
คัดลอก!
1. Create a class, which represents an appointment. Here it is named CustomEvent. Add required public properties, which will be mapped to corresponding appointment properties.
2. Create a class responsible for data processing - CustomDataSource. It implements update, insert, select and delete methods. The select method should return an object of the BindingList type to ensure a correct operation.
3. Add the ObjectDataSource component to the page by dragging and dropping it from the Toolbox.
4. Assign the values to ObjectDataSource properties, as follows:
- DataObjectTypeName="CustomEvent"
- TypeName="CustomDataSource"
- InsertMethod, UpdateMethod, DeleteMethod and SelectMethod properties – specify the corresponding methods of the CustomDataSource class.
5. In the Page_Load event procedure, specify mappings, assign the ObjectDataSource as the appointment's data source, and call the ASPxScheduler’s DataBind method

To make the project simple and easy-to-use, data is written into a session. To accomplish this, the CustomEventList : BindingList class is implemented. It has several helper methods, and is marked with a Serializable attribute. It eliminates the need for an external data source since all data is stored in a session. Note that all data will be lost when a session is closed (usually it happens when the browser window is closed).

When a page is reloaded, the ObjectCreated event of the ObjectDataSource component is raised. This event is handled to load the previously saved appointments from within the session. When a new CustomDataSource object is created, it gets a CustomEventList collection, which contains a list of appointments.

Note that each appointment must have a unique identifier. Otherwise, the client-server interaction fails. So, the need to assign a unique ID to newly created appointments is evident. Since editing an appointment actually involves its re-creation, the same requirement is applied to edited appointments. To accomplish a unique ID assignment, use the AppointmentInserting event of the ASPxScheduler control. The appointment's object hash function provides the necessary unique value.
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 2:[สำเนา]
คัดลอก!
1. สร้างชั้นซึ่งหมายถึงได้รับการแต่งตั้ง นี่มันเป็นชื่อ CustomEvent เพิ่มคุณสมบัติที่จำเป็นของประชาชนที่จะได้รับการแมปไปยังสอดคล้องคุณสมบัติได้รับการแต่งตั้ง.
2 สร้างคลาสรับผิดชอบในการประมวลผลข้อมูล - CustomDataSource จะดำเนินการปรับปรุงแทรกและลบเลือกวิธีการ วิธีการเลือกควรจะกลับวัตถุของ BindingListพิมพ์เพื่อให้แน่ใจว่าการดำเนินการที่ถูกต้อง.
3 เพิ่มองค์ประกอบ ObjectDataSource ไปยังหน้าโดยลากและวางมันออกมาจากกล่องเครื่องมือ.
4 กำหนดค่าคุณสมบัติ ObjectDataSource ดังต่อไปนี้:
- DataObjectTypeName = "CustomEvent"
- TypeName = "CustomDataSource"
- InsertMethod, UpdateMethod, DeleteMethod และคุณสมบัติ SelectMethod - ระบุวิธีการที่สอดคล้องกันของชั้น CustomDataSource.
5 ในขั้นตอน Page_Load เหตุการณ์ระบุแมปกำหนด ObjectDataSource เป็นแหล่งข้อมูลของการแต่งตั้งและเรียก DataBind วิธี ASPxScheduler ของโครงการเพื่อให้ง่ายและสะดวกต่อการใช้งานข้อมูลจะถูกเขียนลงในเซสชั่น เพื่อให้บรรลุนี้ CustomEventList: BindingList

ชั้นจะดำเนินการ มันมีหลายวิธีที่ช่วยและถูกทำเครื่องหมายด้วยแอตทริบิวต์ Serializable มันไม่จำเป็นต้องสำหรับแหล่งข้อมูลภายนอกเนื่องจากข้อมูลทั้งหมดจะถูกเก็บไว้ในเซสชั่น โปรดทราบว่าข้อมูลทั้งหมดจะหายไปเมื่อเซสชั่นนี้ปิดให้บริการ (มักจะเกิดขึ้นเมื่อหน้าต่างเบราว์เซอร์ที่มีการปิด). เมื่อหน้าจะโหลดใหม่, เหตุการณ์ ObjectCreated ขององค์ประกอบ ObjectDataSource ถูกยกขึ้น เหตุการณ์นี้จะถูกจัดการในการโหลดนัดหมายบันทึกไว้ก่อนหน้าจากภายในเซสชั่น เมื่อวัตถุ CustomDataSource ใหม่จะถูกสร้างขึ้นจะได้รับการเก็บรวบรวม CustomEventList ซึ่งมีรายชื่อของการนัดหมาย. โปรดทราบว่าแต่ละคนได้รับการแต่งตั้งจะต้องมีการระบุที่ไม่ซ้ำ มิฉะนั้นการมีปฏิสัมพันธ์ลูกค้าเซิร์ฟเวอร์ล้มเหลว ดังนั้นจำเป็นที่จะต้องกำหนดรหัสเฉพาะนัดหมายที่สร้างขึ้นใหม่ที่เห็นได้ชัด เนื่องจากการแก้ไขการแต่งตั้งจริงที่เกี่ยวข้องกับเรื่องการสร้างความต้องการเดียวกันจะนำไปใช้กับการนัดหมายแก้ไข เพื่อให้บรรลุการกำหนดรหัสเฉพาะใช้เหตุการณ์ AppointmentInserting ของการควบคุม ASPxScheduler วัตถุที่ได้รับการแต่งตั้งของฟังก์ชันแฮชมีค่าไม่ซ้ำกันที่จำเป็น




การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 3:[สำเนา]
คัดลอก!
1 . สร้าง Class ซึ่งเป็นนัด ตรงนี้มันเป็นชื่อ customevent . เพิ่มคุณสมบัติที่ต้องการสาธารณะซึ่งจะกำหนดคุณสมบัติตำแหน่งที่สอดคล้องกัน .
2 สร้างชั้นรับผิดชอบในการประมวลผลข้อมูล customdatasource . มันใช้ Update , แทรก , เลือกและลบวิธีวิธีเลือกควรคืนวัตถุของ bindinglist < customevent > ประเภทเพื่อให้แน่ใจว่าการดำเนินงานถูกต้อง .
3 เพิ่ม objectdatasource องค์ประกอบหน้าโดยลากและวางจากกล่องเครื่องมือ .
4 กำหนดคุณค่า objectdatasource คุณสมบัติดังต่อไปนี้ :
- dataobjecttypename = " customevent "
- typename = " customdatasource "
- insertmethod updatemethod , ,deletemethod – selectmethod ระบุคุณสมบัติและวิธีการที่สอดคล้องกันของ customdatasource Class .
5 ใน page_load เหตุการณ์ขั้นตอน ระบุการแมป มอบหมายแต่งตั้ง objectdatasource เป็นแหล่งข้อมูล และเรียกเป็นวิธีการ aspxscheduler databind

เพื่อให้โครงการที่ง่ายและง่ายต่อการใช้งาน ข้อมูลถูกเขียนเข้าไปในเซสชั่น เพื่อให้บรรลุนี้ customeventlist :bindinglist < customevent > ระดับการใช้งาน มันมีหลายวิธี ผู้ช่วย และเป็นเครื่องหมายที่มีลักษณะ serializable . มันไม่ต้องเป็นข้อมูลภายนอกแหล่งข้อมูล เพราะข้อมูลทั้งหมดถูกเก็บไว้ในเซสชัน หมายเหตุ ข้อมูลทั้งหมดจะหายไปเมื่อเซสชันถูกปิด ( โดยปกติแล้วจะเกิดอะไรขึ้นเมื่อหน้าต่างเบราว์เซอร์จะปิด ) .

เมื่อเพจมีการ Reloaded ,การ objectcreated เหตุการณ์ของ objectdatasource ส่วนประกอบเป็นยก เหตุการณ์นี้จะถูกจัดการกับโหลดที่บันทึกไว้ก่อนหน้านัดหมายจากภายในเซสชัน เมื่อวัตถุ customdatasource ใหม่ถูกสร้างขึ้น มันเป็น customeventlist คอลเลกชันซึ่งประกอบด้วยรายการของการนัดหมาย

หมายเหตุว่า แต่ละนัด ต้องมีการระบุที่ไม่ซ้ำกัน . มิฉะนั้น ไคลเอ็นต์เซิร์ฟเวอร์ปฏิสัมพันธ์ล้มเหลว ดังนั้นต้องกำหนดรหัสเฉพาะเพื่อสร้างใหม่ การนัดหมายจะเห็นชัด เนื่องจากการแก้ไขการนัดหมายจริง ๆของเรื่องเกี่ยวข้องกับการสร้างความต้องการเดียวกันที่ใช้กับการแก้ไขการนัดหมาย เพื่อให้บรรลุการกำหนดรหัสเฉพาะ ใช้ appointmentinserting เหตุการณ์ของการควบคุม aspxscheduler . ฟังก์ชันแฮชวัตถุนั่นนัดให้
ค่าเฉพาะจำเป็น
การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2024 I Love Translation. All reserved.

E-mail: