messages
listlengths 1
1
| topic
stringlengths 2
60
|
---|---|
[
{
"date": "2011-08-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you very much Timm.\n\nHope you enjoy your holidays.\n\nMy email is <!-- e --><a href=\"mailto:[email protected]\">[email protected]</a><!-- e -->, but maybe others will be interested in the class too if you don´t mind sharing here.\n\nAlso, I can put my results and maybe other could help us.\n\nBest regards,\n\nJohn",
"time": "21:46",
"topic": "Codejock Calendar",
"username": "ukservice"
}
] | Codejock Calendar |
[
{
"date": "2011-12-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Mr.Tim,\n\nMay I also have a copy please ?\n\nMy email: <!-- e --><a href=\"mailto:[email protected]\">[email protected]</a><!-- e -->\n\nRegards,\n\n- Ramesh Babu P",
"time": "01:21",
"topic": "Codejock Calendar",
"username": "RAMESHBABU"
}
] | Codejock Calendar |
[
{
"date": "2011-12-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Tim,\n\nCould you send to me also? Or put it in a FTP.\n\nTIA,",
"time": "02:09",
"topic": "Codejock Calendar",
"username": "Kleyber"
}
] | Codejock Calendar |
[
{
"date": "2011-12-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Tim,\n\nI also want sample Calendar Codejock too.\n[quote=\"TimStone\":2nvw1bvi]I just returned from a very much needed vacation ! Sorry for the delay.\n\nYes, I am using Codejock Calendar and will be very happy to share our class with you. Please email me : <!-- e --><a href=\"mailto:[email protected]\">[email protected]</a><!-- e --> and I will send it to you.\n\nI have used it with xHarbour ( .com, Sep 2010 ) and I'm trying to get it to work with Harbour and Visual C++ 2010, but still have a problem. However, I did take a break, and also now have been rebuilding my computer so the project is delayed. Perhaps this week I will get back to it 100%.\n\nTim[/quote:2nvw1bvi]\n\nRegards,\nDutch\n<!-- e --><a href=\"mailto:[email protected]\">[email protected]</a><!-- e -->",
"time": "21:27",
"topic": "Codejock Calendar",
"username": "dutch"
}
] | Codejock Calendar |
[
{
"date": "2011-12-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Could someone post a screenshot to see how it looks ? thanks",
"time": "10:54",
"topic": "Codejock Calendar",
"username": "Antonio Linares"
}
] | Codejock Calendar |
[
{
"date": "2011-12-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I'm happy to post a few shots:\n\n[u:202eei76][b:202eei76]The main appointment screen[/b:202eei76][/u:202eei76]\n\n[img:202eei76]http://www.masterlinksoftware.com/Views/Cal02.jpg[/img:202eei76]\n\n[b:202eei76][u:202eei76]The appointment editor screen:[/u:202eei76][/b:202eei76]\n\n[img:202eei76]http://www.masterlinksoftware.com/Views/Cal01.jpg[/img:202eei76]\n\nThe following link is for the class we have developed. In this case the class is written specifically to work with the databases of\nmy application. It would be best to actually separate the calendar class and create a subclass for the application information, but\nfrankly this was just easier. Use this as an example and modify it to meet your individual needs.\n\n[url:202eei76]http://www.masterlinksoftware.com/Views/tCodejock.prg[/url:202eei76]\n\nFinally, this code is being used with xHarbour/xCC. Others are using it with Borelands Compiler. It will compile with Harbour and MSVC, but I'm having a problem and would really appreciate input. The CreateObject ( used twice ) returns an object but it cannot then be utilized. In other words, if you MsgInfo the result of CreateObject, it will say \"object\" but then do the call Object:License( ) and it has not idea what License is. This occurs only with Harbour/MSVC 2010.\n\nTim",
"time": "18:59",
"topic": "Codejock Calendar",
"username": "TimStone"
}
] | Codejock Calendar |
[
{
"date": "2011-12-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Tim,\n\nThe link gives me this:\n\n[quote:2f2cud5l]Not Found\n\nThe requested URL /Views/tCodejock.prg was not found on this server.\n\nAdditionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.[/quote:2f2cud5l]",
"time": "21:19",
"topic": "Codejock Calendar",
"username": "Kleyber"
}
] | Codejock Calendar |
[
{
"date": "2011-12-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "kleyber.\n\n<!-- m --><a class=\"postlink\" href=\"http://www.masterlinksoftware.com/Views/\">http://www.masterlinksoftware.com/Views/</a><!-- m -->\n\nplease try this link, inside is the file.\n\n\nsalu2\ncarlos vargas",
"time": "21:48",
"topic": "Codejock Calendar",
"username": "carlos vargas"
}
] | Codejock Calendar |
[
{
"date": "2011-12-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sorry ... the link was case sensitive. It is now working in my post.",
"time": "22:52",
"topic": "Codejock Calendar",
"username": "TimStone"
}
] | Codejock Calendar |
[
{
"date": "2011-12-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks Tim.\n\nRegards,",
"time": "23:01",
"topic": "Codejock Calendar",
"username": "Kleyber"
}
] | Codejock Calendar |
[
{
"date": "2011-12-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks so much, Tim.\n\nRegards,\nDutch",
"time": "03:59",
"topic": "Codejock Calendar",
"username": "dutch"
}
] | Codejock Calendar |
[
{
"date": "2009-05-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\n\nI am playing with the Codejock calendar demo and wonder if anyone can guide me as to how to use the commands.\n\nI am able to get a calendar on the screen from reading other posts but that's about all I can get working. (First time working with ActiveX)\n\nI just don't know how to issue the commands to do anything.\n\nAre there any samples files that show how to use Codejock with FWH ?\n\n[code=fw:21qaz8pq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">local</span> oWnd, oAct<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /> oAct := TActiveX<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> oWnd, <span style=\"color: #ff0000;\">\"Codejock.CalendarControl.13.0.0\"</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">1000</span>, <span style=\"color: #000000;\">550</span> <span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /> </div>[/code:21qaz8pq]",
"time": "02:20",
"topic": "Codejock Calendar Samples?",
"username": "Jeff Barnes"
}
] | Codejock Calendar Samples? |
[
{
"date": "2009-06-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Looks like no one else has played with the Calendar control from Codejock????\n\nHere is what I have been able to get working so far...\n\n\n[code=fw:3scg5qjc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//start the calendar object</span><br />oAct := TActiveX<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> oWnd, <span style=\"color: #ff0000;\">\"Codejock.CalendarControl.13.0.0\"</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">1000</span>, <span style=\"color: #000000;\">550</span> <span style=\"color: #000000;\">)</span> <br /><br /><br /><span style=\"color: #B900B9;\">//Use XML as the data provider</span><br />oAct:<span style=\"color: #000000;\">SetDataProvider</span>:=<span style=\"color: #ff0000;\">\"Provider=XML;Data Source=<span style=\"color: #000000;\">\\Y</span>ourPath<span style=\"color: #000000;\">\\E</span>vents.xml\"</span><br /><br /><span style=\"color: #B900B9;\">//Create a blank data provider using info from above</span><br /><span style=\"color: #B900B9;\">//(no need to OPEN it after a create)</span><br />oAct:<span style=\"color: #000000;\">DataProvider</span>:<span style=\"color: #000000;\">Create</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">//If data provider is already created you can just open it</span><br />oAct:<span style=\"color: #000000;\">DataProvider</span>:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">//Set the time scale in day view</span><br />oAct:<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">Timescale</span> := <span style=\"color: #000000;\">30</span><br /><br /><span style=\"color: #B900B9;\">//show a specific date when starting</span><br />oAct:<span style=\"color: #000000;\">ActiveView</span>:<span style=\"color: #000000;\">ShowDay</span>:= Date<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">//Set the view (in this case the \"day\" view</span><br />oAct:<span style=\"color: #000000;\">ViewType</span>:=xtpCalendarDayView<br /><br /><span style=\"color: #B900B9;\">//Set the normal working hours (show up in different color)</span><br />oAct:<span style=\"color: #000000;\">Options</span>:<span style=\"color: #000000;\">WorkDayStartTime</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"8:00:00 AM\"</span><span style=\"color: #000000;\">)</span><br />oAct:<span style=\"color: #000000;\">Options</span>:<span style=\"color: #000000;\">WorkDayEndTime</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"8:00:00 PM\"</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">//Scroll the time to \"WorkDayStartTime\"</span><br />oAct:<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">ScrollToWorkDayBegin</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">//Set the week view to \"work week\" (5 days) instead of a 7 day week</span><br />oAct:<span style=\"color: #000000;\">ViewType</span>:= xtpCalendarWorkWeekView<br /><br /><span style=\"color: #B900B9;\">//Set the theme</span><br />oAct:<span style=\"color: #000000;\">VisualTheme</span>:=xtpCalendarThemeOffice2007<br /><br /><span style=\"color: #B900B9;\">//Show/Hide the time line button</span><br />oAct:<span style=\"color: #000000;\">ShowTimelineButton</span>:= .f.<br /><br /><span style=\"color: #B900B9;\">//Set/Hide Caption Bar</span><br />oAct:<span style=\"color: #000000;\">ShowCaptionBar</span>:= .t.<br /><br /><span style=\"color: #B900B9;\">//Show/Hide the date scroll buttons</span><br />oAct:<span style=\"color: #000000;\">ShowCaptionBarScrollDateButtons</span>:= .t.<br /><br /> </div>[/code:3scg5qjc]\n\n\nI am still trying to figure out how to add and retrieve and event via programming.\nAlso need to figure out how to set cell colors.\n\n\nIf anyone has info to add, please do.",
"time": "02:43",
"topic": "Codejock Calendar Samples?",
"username": "Jeff Barnes"
}
] | Codejock Calendar Samples? |
[
{
"date": "2009-06-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Here are some sample screen shots of the calendar from the code in the previous post.\n\n[img:bmrjasqj]http://www.ezsat.ca/CalTest.JPG[/img:bmrjasqj]\n\n[img:bmrjasqj]http://www.ezsat.ca/CalTest2.JPG[/img:bmrjasqj]\n\n[img:bmrjasqj]http://www.ezsat.ca/CalTest3.JPG[/img:bmrjasqj]\n\n[img:bmrjasqj]http://www.ezsat.ca/CalTest4.JPG[/img:bmrjasqj]",
"time": "02:58",
"topic": "Codejock Calendar Samples?",
"username": "Jeff Barnes"
}
] | Codejock Calendar Samples? |
[
{
"date": "2009-06-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Jeff,\n\nIt's very good sample. Can we use DBF file instead of XML file? \n\nRegards,\nDutch",
"time": "04:53",
"topic": "Codejock Calendar Samples?",
"username": "dutch"
}
] | Codejock Calendar Samples? |
[
{
"date": "2009-06-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "You can connect to other data sources like Access, MySql, etc... \nI am trying to connect (via ODBC) to the database I have created in MySQL but no luck so far.",
"time": "14:03",
"topic": "Codejock Calendar Samples?",
"username": "Jeff Barnes"
}
] | Codejock Calendar Samples? |
[
{
"date": "2009-06-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Jeff,\n\nI can connect via TMySql without ODBC. Just add 2 LIB files, that's all.\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=15625\">viewtopic.php?f=3&t=15625</a><!-- l -->\n\nRegards,\nDutch",
"time": "21:15",
"topic": "Codejock Calendar Samples?",
"username": "dutch"
}
] | Codejock Calendar Samples? |
[
{
"date": "2009-06-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I have not worked with this recently. However, when I discussed it with the people at Codejock ( they are really nice and offer to be helpful ), we can write our own code to work with .dbf files, or we can use the memory model and then save the elements to the file. That does involve essentially loading / unloading data from the disk and that could slow down the process.\n\nI've been thinking about playing with it again ... the interface would be nice.",
"time": "23:37",
"topic": "Codejock Calendar Samples?",
"username": "TimStone"
}
] | Codejock Calendar Samples? |
[
{
"date": "2009-06-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Dutch,\n\nIt's not my app that I am trying to get connected to MySQL (I achieved this via Mediator ... I wanted to be able to use the MySQL tables like DBF files) but the actual calendar control.",
"time": "01:16",
"topic": "Codejock Calendar Samples?",
"username": "Jeff Barnes"
}
] | Codejock Calendar Samples? |
[
{
"date": "2009-06-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi, i need this with dbf or adt files, someone try with sucess?? thanks",
"time": "17:19",
"topic": "Codejock Calendar Samples?",
"username": "norberto"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi everyone;\n\nJust came across this post, and thought I should share some answers. Yes, CodeJock calendar control does work with dbfs/ adts/ xml/ mdb/ SQL/ arrays/ Objects, or just about any other type of data.\n\nHere is a short sample on working with a tdata class based on dbfs. I'm trying to keep the code simple. The intent is show how to connect dbf data to CodeJock ExtremeCalendar Control:\n[code=fw:2retone6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//create the object</span><br />::<span style=\"color: #000000;\">oCalex</span> := tActiveX<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oPanelCalex</span>, <span style=\"color: #ff0000;\">\"Codejock.CalendarControl.13.4.2\"</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">//set some properties</span><br />with object ::<span style=\"color: #000000;\">oCalex</span><br /> <br /> :<span style=\"color: #000000;\">VisualTheme</span><span style=\"color: #000000;\">(</span> xtpCalendarThemeOffice2007 <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">bOnEvent</span> = <span style=\"color: #000000;\">{</span> | event, aParms | ::<span style=\"color: #000000;\">xTrmCalTriggeredEvents</span><span style=\"color: #000000;\">(</span> Event, aParms <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> <br /> :<span style=\"color: #000000;\">SetDataProvider</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"provider=custom\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> !:<span style=\"color: #000000;\">DataProvider</span>:<span style=\"color: #000000;\">open</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> ;:<span style=\"color: #000000;\">DataProvider</span>:<span style=\"color: #000000;\">Create</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> ;endif<br /> <br /> :<span style=\"color: #000000;\">ShowCaptionBar</span><span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">ViewType</span><span style=\"color: #000000;\">(</span> xtpCalendarDayView <span style=\"color: #000000;\">)</span><br /><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">ShowLinks</span><span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">TimeScaleMinTime</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">8</span>:<span style=\"color: #000000;\">00</span>:<span style=\"color: #000000;\">00</span> AM<span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">TimeScaleMaxTime</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">6</span>:<span style=\"color: #000000;\">00</span>:<span style=\"color: #000000;\">00</span> PM<span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">TimeScale</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">ScrollToWorkDayBegin</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//scroll the view to the work day starting time</span><br /><br /> :<span style=\"color: #000000;\">Options</span>:<span style=\"color: #000000;\">DayViewTimeScaleShowMinutes</span><span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /><br />end<br /><br /> </div>[/code:2retone6]\n\n//now all you have to do is create the triggered events to write/read from dbfs\n\n[code=fw:2retone6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> xTrmCalTriggeredEvents<span style=\"color: #000000;\">(</span> Event, aParms <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><br /> <span style=\"color: #00C800;\">if</span> valType<span style=\"color: #000000;\">(</span> Event <span style=\"color: #000000;\">)</span> == <span style=\"color: #ff0000;\">\"C\"</span><br /><br /> <span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">Case</span><br /><br /> <span style=\"color: #00C800;\">Case</span> Event == <span style=\"color: #ff0000;\">\"DoRetrieveDayEvents\"</span> <br /> ::<span style=\"color: #000000;\">RetrieveDayEvents</span><span style=\"color: #000000;\">(</span> aParms <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"EventAddedEx\"</span><br /> ::<span style=\"color: #000000;\">InsertEvent</span><span style=\"color: #000000;\">(</span> aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"EventChangedEx\"</span><br /> ::<span style=\"color: #000000;\">UpdateEvent</span><span style=\"color: #000000;\">(</span> aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"EventDeletedEx\"</span><br /> ::<span style=\"color: #000000;\">DeleteAppnt</span><span style=\"color: #000000;\">(</span> aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> <br /> End <br /><br /> <span style=\"color: #00C800;\">endif</span><br /> <br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> InsertEvent<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /> ::<span style=\"color: #000000;\">odbf</span>:<span style=\"color: #000000;\">VarSubject</span> := oEvent:<span style=\"color: #0000ff;\">Subject</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">odbf</span>:<span style=\"color: #000000;\">VarStartTime</span> := oEvent:<span style=\"color: #000000;\">StartTime</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">odbf</span>:<span style=\"color: #000000;\">VarEndTime</span> := oEvent:<span style=\"color: #000000;\">EndTime</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">odbf</span>:<span style=\"color: #000000;\">VarMore_Info</span> := oEvent:<span style=\"color: #000000;\">Body</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <br /> ::<span style=\"color: #000000;\">odbf</span>:<span style=\"color: #000000;\">Append</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">odbf</span>:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <br /><br /> <span style=\"color: #B900B9;\">//fill in a custom property on this entry to link to unique key on dbf. Field Guid is auto-field using </span><br /> <span style=\"color: #B900B9;\">//an On-Insert trigger on the dbf and it defaults to a global unique string used as primary key.</span><br /> oEvent:<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"guid\"</span>, ::<span style=\"color: #000000;\">odbf</span>:<span style=\"color: #000000;\">Guid</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">//every time a new appointment is added on the calendar control</span><br /> <span style=\"color: #B900B9;\">//expand appntmnt details with a custom form for tel, med rec, email...</span><br /> ::<span style=\"color: #000000;\">EventDetails</span><span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span><br /> <br /><span style=\"color: #00C800;\">Return</span> oEvent<br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #B900B9;\">//using SQL is less writing, but the same can be done with ISAM.</span><br /><span style=\"color: #00C800;\">METHOD</span> UpdateEvent<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><span style=\"color: #00C800;\">local</span> cSql := <span style=\"color: #ff0000;\">\"Update appntmnts set Subject = '\"</span> + oEvent:<span style=\"color: #0000ff;\">Subject</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"', \"</span> +;<br /> <span style=\"color: #ff0000;\">\"StartTime = Convert( '\"</span> + TtoC<span style=\"color: #000000;\">(</span> oEvent:<span style=\"color: #000000;\">StartTime</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"', SQL_TIMESTAMP ), \"</span> +;<br /> <span style=\"color: #ff0000;\">\"EndTime = Convert( '\"</span> + TtoC<span style=\"color: #000000;\">(</span> oEvent:<span style=\"color: #000000;\">EndTime</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"', SQL_TIMESTAMP ), \"</span> +;<br /> <span style=\"color: #ff0000;\">\"More_Info = '\"</span> + oEvent:<span style=\"color: #000000;\">Body</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"' \"</span> + ;<br /> <span style=\"color: #ff0000;\">\"Where guid = '\"</span> + oEvent:<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Guid\"</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"'\"</span><br /> <br /> <br /> ExecuteSqlScript<span style=\"color: #000000;\">(</span> cSql, .f. <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">EventDetails</span><span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> oEvent<br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> DeleteAppnt<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><span style=\"color: #00C800;\">local</span> cSql := <span style=\"color: #ff0000;\">\"Delete from appntmnts \"</span> + ;<br /> <span style=\"color: #ff0000;\">\"Where guid = '\"</span> + oEvent:<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Guid\"</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"'\"</span><br /> <br /> <br /> ExecuteSqlScript<span style=\"color: #000000;\">(</span> cSql, .f. <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> oEvent<br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #B900B9;\">//CodeJock ExtremeCalender control calls this function sending a DT parameter and </span><br /><span style=\"color: #B900B9;\">//the container property that contains all the day entries. The function should fill in </span><br /><span style=\"color: #B900B9;\">//the container property with all day events (appointments)</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> RetrieveDayEvents<span style=\"color: #000000;\">(</span> aParms <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><span style=\"color: #00C800;\">Local</span> cSql := <span style=\"color: #ff0000;\">\"Select mrec, Subject, Last_Name, First_Name, StartTime, EndTime, eMail, Tel, GuId, More_Info \"</span> + ;<br /> <span style=\"color: #ff0000;\">\"from appntmnts where convert( StartTime, SQL_DATE )= '\"</span> + Date2SqlString<span style=\"color: #000000;\">(</span> aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"'\"</span><br /><span style=\"color: #00C800;\">local</span> arec<br /><span style=\"color: #00C800;\">local</span> aRet := ExecuteSQLScript<span style=\"color: #000000;\">(</span> cSql, .f. <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">local</span> oEvents := aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <br /><span style=\"color: #00C800;\">local</span> oEvent<br /> <br /> <span style=\"color: #00C800;\">for</span> each arec in aret<br /><br /> oEvent := ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">DataProvider</span>:<span style=\"color: #000000;\">CreateEvent</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> With Object oEvent<br /> :<span style=\"color: #0000ff;\">Subject</span><span style=\"color: #000000;\">(</span> aRec<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//TokenUpper( trim( aRec[ 3 ] ) + \" \" + trim( arec[ 4 ] ) ) )</span><br /> :<span style=\"color: #000000;\">StartTime</span><span style=\"color: #000000;\">(</span> aRec<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">EndTime</span><span style=\"color: #000000;\">(</span> aRec<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">body</span><span style=\"color: #000000;\">(</span> arec<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> <br /> :<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"MRec\"</span>, alltrim<span style=\"color: #000000;\">(</span> aRec<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Guid\"</span>, aRec<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Tel\"</span>, aRec<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"eMail\"</span>, aRec<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> <br /> End<br /> <br /> oEvents:<span style=\"color: #000000;\">add</span><span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">next</span> <br /> <br />Retur <span style=\"color: #00C800;\">Nil</span><br /><br /><br /> </div>[/code:2retone6]\n\n\nIt works really nice. If anyone needs help, I'll be glad to offer my help. Here is a screenshot:\n[img:2retone6]http://ssfl.dynalias.com/temp_files/2011-01-13_1058.png[/img:2retone6]\n\nReinaldo.",
"time": "16:59",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "And here is another screenshot:\n[img:2lynnjbv]http://ssfl.dynalias.com/temp_files/2011-01-13_1113.png[/img:2lynnjbv]\n\n[img:2lynnjbv]http://ssfl.dynalias.com/temp_files/2011-01-13_1117.png[/img:2lynnjbv]\n\nReinaldo.",
"time": "17:13",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks for sharing!!.\n\nAlso, Daniel is preparing a Calendar for FW!!",
"time": "17:19",
"topic": "Codejock Calendar Samples?",
"username": "mgsoft"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo\n\nThis is excellent news\n\nWhat about the licensing of this control ? How can it be included with an existing application \n\nThanks for your help,\n\nRichard",
"time": "17:23",
"topic": "Codejock Calendar Samples?",
"username": "Richard Chidiak"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Nice job.\nI think Codejock have more UI than FWH.",
"time": "17:26",
"topic": "Codejock Calendar Samples?",
"username": "richard-service"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "About licensing:\n\n[url:3f7238uk]http://www.codejock.com/purchase/[/url:3f7238uk]\n\nExtremeCalendar ActiveX control is $149.00. There is a 30 day free trial offer. Good for testing and development. \n\n\nReinaldo.",
"time": "17:34",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi.\n\nI've been asked by a few people for a short .prg that shows how to use codejock extreme calendar with dbfcdx.\n\nBelow is a single short .prg that syncs \"events\" on the calendar to a dbf/fpt/cdx. I'm trying to keep the sample short. Keep in mind that each event on the calendar may have as many fields as you'd like for things such as \"recurring\", \"reminder\", \"send email alert\", \"email address\", \"medical record\", etc... each of these fields would be kept on each event as a custom property. On this short sample I'm implementing only a single custom property \"id\" to keep the corresponding primary key on file for each event on the calendar.\n\nI hope it helps, but if there are more questions; please feel free to ask, I'm more than willing to help.\n\n[code=fw:3e5jiijk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">/*----------------------------------------------------------------------------*/</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><span style=\"color: #B900B9;\">//---------- theme constants</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarThemeOffice2000 <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarThemeOfficeXP <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarThemeOffice2003 <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarThemeOffice2007 <span style=\"color: #000000;\">3</span><br /><br /><span style=\"color: #B900B9;\">//----------- views</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarDayView <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarWorkWeekView <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarWeekView <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarMonthView <span style=\"color: #000000;\">3</span><br /><br /><span style=\"color: #00C800;\">static</span> cAlias <br /><br />*--------------------------------------------------------------------------<br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> create_dbf<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <br /> MpCal<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbCloseArea<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------//</span><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> create_dbf<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> astruc := <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"id\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">12</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"starttime\"</span> , <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">18</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"endtime\"</span> , <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">18</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"subject\"</span> , <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">}</span>,;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"body\"</span> , <span style=\"color: #ff0000;\">\"M\"</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /> <br /> cAlias := <span style=\"color: #ff0000;\">\"Calendar\"</span> <br /> <br /> <span style=\"color: #00C800;\">if</span> !file<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"calendar.dbf\"</span><span style=\"color: #000000;\">)</span><br /> <br /> dbcreate<span style=\"color: #000000;\">(</span> cAlias, aStruc, <span style=\"color: #ff0000;\">\"DBFCDX\"</span>, .t., cAlias <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdCreate<span style=\"color: #000000;\">(</span> cAlias, <span style=\"color: #ff0000;\">\"id\"</span>, <span style=\"color: #ff0000;\">\"id\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdCreate<span style=\"color: #000000;\">(</span> cAlias, <span style=\"color: #ff0000;\">\"starttime\"</span>, <span style=\"color: #ff0000;\">\"starttime\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> <br /> dbuseArea<span style=\"color: #000000;\">(</span> .t., <span style=\"color: #ff0000;\">\"DBFCDX\"</span>, cAlias, cAlias, .t. <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdListAdd<span style=\"color: #000000;\">(</span> cAlias <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /> <br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">CLASS</span> MpCal<br /><br /> <span style=\"color: #00C800;\">DATA</span> dCurrentDate AS DATE <span style=\"color: #0000ff;\">INIT</span> Date<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #00C800;\">DATA</span> oCalex, oCalexCapBar<br /> <span style=\"color: #00C800;\">DATA</span> oDtPick<br /> <span style=\"color: #00C800;\">DATA</span> oExBar <br /> <span style=\"color: #00C800;\">DATA</span> oPanelExplorer<br /> <span style=\"color: #00C800;\">DATA</span> oPanelCalex<br /> <span style=\"color: #00C800;\">DATA</span> oWnd<br /> <br /> <span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">METHOD</span> BuildCalex<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> BuildDatePicker<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> BuildPanels<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> SetSize<span style=\"color: #000000;\">(</span> nType, nWidth, nHeight <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #00C800;\">METHOD</span> xTrmCalTriggeredEvents<span style=\"color: #000000;\">(</span> Event, Parms <span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">METHOD</span> RetrieveDayEvents<span style=\"color: #000000;\">(</span> aParms <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> InsertEvent<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> UpdateEvent<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> DeleteEvent<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">ENDCLASS</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /> <br /> <span style=\"color: #00C800;\">local</span> oMenu<br /> <span style=\"color: #00C800;\">local</span> oSelf := <span style=\"color: #00C800;\">Self</span><br /> <br /> <span style=\"color: #0000ff;\">MENU</span> oMenu<br /> <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> ::<span style=\"color: #000000;\">oWnd</span> <span style=\"color: #0000ff;\">MDI</span> <span style=\"color: #0000ff;\">MENU</span> oMenu <span style=\"color: #0000ff;\">Title</span> <span style=\"color: #ff0000;\">\"CodeJock Xtrme Calendar FWH Sample\"</span><br /><br /> ::<span style=\"color: #000000;\">BuildPanels</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//two panels -left and right</span><br /> ::<span style=\"color: #000000;\">BuildCalex</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//CodeJock calendar on the right</span><br /> ::<span style=\"color: #000000;\">BuildDatePicker</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//CodeJock DatePicker on the left</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> ::<span style=\"color: #000000;\">oWnd</span> <span style=\"color: #0000ff;\">MAXIMIZED</span>;<br /> <span style=\"color: #0000ff;\">ON</span> RESIZE oSelf:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">(</span> nSizeType, nWidth, nHeight <span style=\"color: #000000;\">)</span><br /> <br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">Self</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> xTrmCalTriggeredEvents<span style=\"color: #000000;\">(</span> Event, aParms <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><br /> <span style=\"color: #00C800;\">if</span> valType<span style=\"color: #000000;\">(</span> Event <span style=\"color: #000000;\">)</span> == <span style=\"color: #ff0000;\">\"C\"</span><br /><br /> <span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">Case</span><br /><br /> <span style=\"color: #00C800;\">Case</span> Event == <span style=\"color: #ff0000;\">\"DoRetrieveDayEvents\"</span> <br /> ::<span style=\"color: #000000;\">RetrieveDayEvents</span><span style=\"color: #000000;\">(</span> aParms <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"EventAddedEx\"</span><br /> ::<span style=\"color: #000000;\">InsertEvent</span><span style=\"color: #000000;\">(</span> aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"EventChangedEx\"</span> .and. aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"id\"</span> <span style=\"color: #000000;\">)</span> != <span style=\"color: #00C800;\">Nil</span><br /> ::<span style=\"color: #000000;\">UpdateEvent</span><span style=\"color: #000000;\">(</span> aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"EventDeletedEx\"</span> .and. aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"id\"</span> <span style=\"color: #000000;\">)</span> != <span style=\"color: #00C800;\">Nil</span><br /> ::<span style=\"color: #000000;\">DeleteEvent</span><span style=\"color: #000000;\">(</span> aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> <br /><span style=\"color: #B900B9;\">/* other useful triggered events that may be catched.<br /> Case Event == \"DblClick\"<br /> Case Event == \"MouseMove\"<br /> Case Event == \"MouseDown\" <br /> case Event == \"KeyDown\"<br /> case Event == \"IsEditOperationDisabled\"<br /> case Event == \"IsEditOperationDisabledV\"<br /> case Event == \"DoUpdateEvent\"<br /> case Event == \"BeforeEditOperation\"<br /> Return ::BeforeEditOperation( aParms[ 1 ] )<br /><br /> otherwise<br /> Logfile( \"trace.log\", { EventInfo( event, aParms ) } ) */</span><br /> <br /> End <br /><br /> <span style=\"color: #00C800;\">endif</span><br /> <br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> InsertEvent<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><br /> <span style=\"color: #00C800;\">local</span> cId := GetUniqueId<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbappend<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> rLock<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>->id := cId <br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>->Subject := oEvent:<span style=\"color: #0000ff;\">Subject</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>->StartTime := <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">(</span> TtoS<span style=\"color: #000000;\">(</span> oEvent:<span style=\"color: #000000;\">StartTime</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">14</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>->EndTime := <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">(</span> TtoS<span style=\"color: #000000;\">(</span> oEvent:<span style=\"color: #000000;\">EndTime</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">14</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>->body := oEvent:<span style=\"color: #000000;\">Body</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbrUnlock<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">//load custom property for the newly created event with a unique id that will </span><br /> <span style=\"color: #B900B9;\">//match field \"id\" on calendar.dbf</span><br /> oEvent:<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"id\"</span>, cId <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">//every time a new appointment is added on the calendar control</span><br /> <span style=\"color: #B900B9;\">//you could expand appntmnt details with a custom form where you may pickup </span><br /> <span style=\"color: #B900B9;\">//other values.</span><br /> <span style=\"color: #B900B9;\">//::EventDetails( oEvent )</span><br /> <br /><span style=\"color: #00C800;\">Return</span> oEvent<br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> UpdateEvent<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><br /> <span style=\"color: #00C800;\">local</span> cid := oEvent:<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"id\"</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdSetFocus<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"id\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbseek<span style=\"color: #000000;\">(</span> cId <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> found<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> .and. <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> rLock<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>->Subject := oEvent:<span style=\"color: #0000ff;\">Subject</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>->StartTime := <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">(</span> TtoS<span style=\"color: #000000;\">(</span> oEvent:<span style=\"color: #000000;\">StartTime</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">14</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>->EndTime := <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">(</span> TtoS<span style=\"color: #000000;\">(</span> oEvent:<span style=\"color: #000000;\">EndTime</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">14</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>->body := oEvent:<span style=\"color: #000000;\">body</span><br /> <br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbrUnlock<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #B900B9;\">//if there is more data that's being pickedup as part of the calendar appointment </span><br /> <span style=\"color: #B900B9;\">//then call that screen to allow modification of those values also</span><br /> <span style=\"color: #B900B9;\">//::EventDetails( oEvent )</span><br /><br /><span style=\"color: #00C800;\">return</span> oEvent<br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> DeleteEvent<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /> <br /> <span style=\"color: #00C800;\">local</span> cid := oEvent:<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"id\"</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdSetFocus<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"id\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbseek<span style=\"color: #000000;\">(</span> cId <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> found<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> .and. <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> rLock<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> delete<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <br /><span style=\"color: #00C800;\">return</span> oEvent<br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #B900B9;\">//aParms[ 1 ] contains a datetime value. This function should return all the events found on </span><br /><span style=\"color: #B900B9;\">//calendar.dbf for that date. To extract only the date portion, we convert the datetime </span><br /><span style=\"color: #B900B9;\">//value to string and then pullout the first 8 chars asin YYYYMMDD.</span><br /><span style=\"color: #B900B9;\">//keep in mind that the control calls this function each time the control changes dates,</span><br /><span style=\"color: #B900B9;\">//or changes views or just about any time the control feels it needs to load data from </span><br /><span style=\"color: #B900B9;\">//file. So it gets called a lot!</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> RetrieveDayEvents<span style=\"color: #000000;\">(</span> aParms <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><br /> <span style=\"color: #00C800;\">local</span> oEvents := aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <br /> <span style=\"color: #00C800;\">local</span> oEvent<br /> <span style=\"color: #00C800;\">local</span> cDate := <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">(</span> TtoS<span style=\"color: #000000;\">(</span> aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdSetFocus<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"StartTime\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbSeek<span style=\"color: #000000;\">(</span> cDate <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">While</span> !<span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> eof<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> .and. <span style=\"color: #0000ff;\">left</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>->StartTime, <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">)</span> == cDate<br /> <br /> oEvent := ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">DataProvider</span>:<span style=\"color: #000000;\">CreateEvent</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <br /> With Object oEvent<br /> :<span style=\"color: #0000ff;\">Subject</span> := <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>->Subject<br /> :<span style=\"color: #000000;\">StartTime</span> := StoT<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>->StartTime <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">EndTime</span> := StoT<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>->EndTime <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">body</span> := <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>->body<br /><br /> <span style=\"color: #B900B9;\">//custom property \"id\" will hold the contents of field \"id\" on calendar.dbf</span><br /> <span style=\"color: #B900B9;\">//to help us match each event displayed on the calendar to a unique record </span><br /> <span style=\"color: #B900B9;\">//on the calendar table. </span><br /> :<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"id\"</span>, <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>->id <span style=\"color: #000000;\">)</span><br /><br /> End<br /> <br /> oEvents:<span style=\"color: #000000;\">add</span><span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbSkip<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> end<br /> <br />Retur <span style=\"color: #00C800;\">Nil</span><br /> <br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> BuildCalex<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><span style=\"color: #00C800;\">local</span> oErr<br /><span style=\"color: #00C800;\">local</span> cIni := <span style=\"color: #ff0000;\">\"patients.ini\"</span><br /><br /> <span style=\"color: #00C800;\">TRY</span> <br /> ::<span style=\"color: #000000;\">oCalex</span> := tActiveX<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oPanelCalex</span>, <span style=\"color: #ff0000;\">\"Codejock.CalendarControl.13.4.2\"</span> <span style=\"color: #000000;\">)</span><br /> CATCH oErr<br /> MsgStop<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Missing installation Components\"</span>, <span style=\"color: #ff0000;\">\"Aborting\"</span> <span style=\"color: #000000;\">)</span><br /> Quit<br /> END <br /> <br /> with object ::<span style=\"color: #000000;\">oCalex</span><br /> <br /> :<span style=\"color: #000000;\">VisualTheme</span><span style=\"color: #000000;\">(</span> xtpCalendarThemeOffice2007 <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">bOnEvent</span> = <span style=\"color: #000000;\">{</span> | event, aParms | ::<span style=\"color: #000000;\">xTrmCalTriggeredEvents</span><span style=\"color: #000000;\">(</span> Event, aParms <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> <br /> :<span style=\"color: #000000;\">SetDataProvider</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Provider=custom\"</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">DataProvider</span>:<span style=\"color: #000000;\">open</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> :<span style=\"color: #000000;\">ShowCaptionBar</span><span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">ShowCaptionBarSwitchViewButtons</span><span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//switch from day, week, month view on capbar</span><br /> <br /> :<span style=\"color: #000000;\">ViewType</span><span style=\"color: #000000;\">(</span> xtpCalendarDayView <span style=\"color: #000000;\">)</span><br /><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">TimeScaleMinTime</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">8</span>:<span style=\"color: #000000;\">00</span>:<span style=\"color: #000000;\">00</span> AM<span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">TimeScaleMaxTime</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">6</span>:<span style=\"color: #000000;\">00</span>:<span style=\"color: #000000;\">00</span> PM<span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">TimeScale</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">15</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">ScrollToWorkDayBegin</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//scroll the view to the work day starting time</span><br /><br /> :<span style=\"color: #000000;\">Options</span>:<span style=\"color: #000000;\">DayViewTimeScaleShowMinutes</span><span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /><br /> end<br /><br /> ::<span style=\"color: #000000;\">oPanelCalex</span>:<span style=\"color: #000000;\">oClient</span> = ::<span style=\"color: #000000;\">oCalex</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> BuildDatePicker<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><span style=\"color: #00C800;\">local</span> nTmp<br /><span style=\"color: #00C800;\">local</span> oPanel, oErr, oWnd<br /><br /> <span style=\"color: #00C800;\">TRY</span><br /> ::<span style=\"color: #000000;\">oDtPick</span> := tActiveX<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oPanelExplorer</span>,<span style=\"color: #ff0000;\">\"Codejock.DatePicker.13.4.2\"</span> <span style=\"color: #000000;\">)</span><br /> <br /> With Object ::<span style=\"color: #000000;\">oDtPick</span><br /> :<span style=\"color: #000000;\">Enabled</span><span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">ShowWeekNumbers</span><span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">VisualTheme</span><span style=\"color: #000000;\">(</span> xtpCalendarThemeOffice2007 <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">AttachToCalendar</span><span style=\"color: #000000;\">(</span> TOleAuto<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> ActXPdisp<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">hActiveX</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> End <br /> <br /> ::<span style=\"color: #000000;\">oPanelExplorer</span>:<span style=\"color: #000000;\">oClient</span> := ::<span style=\"color: #000000;\">oDtPick</span><br /><br /> CATCH oErr<br /> <br /> END <br /> <br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> BuildPanels<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><span style=\"color: #00C800;\">local</span> oBrush<br /><span style=\"color: #00C800;\">local</span> nHeight := ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">nHeight</span><br /><br /> ::<span style=\"color: #000000;\">oPanelCalex</span> = TPanel<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">175</span>, nHeight, ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">nWidth</span>, ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWndClient</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oPanelExplorer</span> = TPanel<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, nHeight, ::<span style=\"color: #000000;\">oPanelCalex</span>:<span style=\"color: #000000;\">nLeft</span>, ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWndClient</span> <span style=\"color: #000000;\">)</span><br /> <br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> SetSize<span style=\"color: #000000;\">(</span> nType, nWidth, nHeight <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> MpCal<br /><br /> <span style=\"color: #00C800;\">if</span> nWidth != <span style=\"color: #00C800;\">nil</span> <br /> ::<span style=\"color: #000000;\">oPanelExplorer</span>:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> , , , nHeight <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oPanelCalex</span>:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> , , nWidth - ::<span style=\"color: #000000;\">oPanelExplorer</span>:<span style=\"color: #000000;\">nRight</span>, nHeight <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /><br />*-------------------------------------------------------------------------------------------------------------------------------<br />procedure RddInit<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><br /> Set Century <span style=\"color: #0000ff;\">On</span><br /> Set Deleted <span style=\"color: #0000ff;\">On</span><br /> Set SoftSeek <span style=\"color: #0000ff;\">On</span><br /> Set Date Format <span style=\"color: #ff0000;\">\"MM/DD/YYYY\"</span><br /> set epoch <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">1950</span><br /><br /> rddsetdefault<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"ADS\"</span> <span style=\"color: #000000;\">)</span><br /> REQUEST HB_LANG_EN<br /> REQUEST DBFCDX, DBFFPT<br /> <br /><span style=\"color: #00C800;\">return</span><br /><br />*-------------------------------------------------------------------------------------------------------------------------------<br /><span style=\"color: #B900B9;\">//I would recommend a better unique value to id each event saved to calendar.dbf</span><br /><span style=\"color: #B900B9;\">//A better choice of unique Id would be ADS's field defaulting to NewIdString( 'M' )</span><br /><span style=\"color: #B900B9;\">//but this will do for the this short sample</span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">Function</span> GetUniqueId<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">local</span> cJulian := StrZero<span style=\"color: #000000;\">(</span> DoY<span style=\"color: #000000;\">(</span> date<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">Local</span> cId := <span style=\"color: #0000ff;\">Right</span><span style=\"color: #000000;\">(</span> StrZero<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Year</span><span style=\"color: #000000;\">(</span> Date<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> + cJulian + StrTran<span style=\"color: #000000;\">(</span> StrZero<span style=\"color: #000000;\">(</span> Seconds<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #ff0000;\">\".\"</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">(</span> cId <span style=\"color: #000000;\">)</span><br /> </div>[/code:3e5jiijk]\n\nRegards;\n\n\nReinaldo.",
"time": "17:58",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo\n\nThanks for sharing the code, this is very helpful\n\nCan this control be used in a network environment ?\n\nRichard",
"time": "08:56",
"topic": "Codejock Calendar Samples?",
"username": "Richard Chidiak"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Richard;\n\nIn a network environment you'd have to find when a new appointment (\"event\") has been saved to disk in order update (refresh()) the calendar on alll the other workstations. Many SQLs have configurable services that may broadcast a message to all clients connected. The message could inform that a new appointment has been added/changed or deleted. You'd have to have a loop that processes messages and act accordingly.\n\nADS has such service so that when something is added/updated/deleted on a table, it broadcasts a message (in ADS nomenclature: \"event notification\") to all clients connected to the table with information about the event. With out this, you'd have to implement your own messaging system. As you see, it is a little bit tricky -not impossible, but tricky and it has little to do with the calendar control it self. \n\nYou could also have a timer to \"poll\" the table or poll a messages table and force a refresh. But still... I don't see a simpler way of doing it than the centralized notification system on the SQL engine itself -which you find in ADS starting with version 9.\n\nIn the absence of ADS, maybe someone has a better idea. I hope this helps.\n\n\nReinaldo.",
"time": "15:45",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Richard;\n\nAnother thought; you could periodically call the method <!-- s:P --><img src=\"{SMILIES_PATH}/icon_razz.gif\" alt=\":P\" title=\"Razz\" /><!-- s:P -->opulate() to force a sync between the data source (dbfs) and the calendar. That should work, but again not as efficient has a notification from the sql engine itself.\n\nJust another idea.\n\n\nReinaldo.",
"time": "16:40",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I highly recommend this control.\n\nJust another screen shot:\n[img:8b99dkq5]http://ssfl.dynalias.com/temp_files/2011-01-17_1614.png[/img:8b99dkq5]\n\n[img:8b99dkq5]http://ssfl.dynalias.com/temp_files/2011-01-17_1618.png[/img:8b99dkq5]\n\nReinaldo.",
"time": "22:19",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "ON YOUR CLASS \nHOW CREATE EXPLORER CONTROL CAN i SEE THE TEST SOURCE ?",
"time": "11:18",
"topic": "Codejock Calendar Samples?",
"username": "MdaSolution"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "MdaSolution;\n\nThe source is on this same thread, read 4 or 5 messages above. It is a reduced sample, but it does contain the code that creates the explorer control exactly as you see on the images. \n\nReinaldo.",
"time": "16:08",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Reinaldo.\n2 little questions.\nIs this control available in Italian language ?\nIf you want to distribute an application that is using this control, how can you make the installation\nregistering the component ?\nThanks a lot.\nMassimo.",
"time": "15:39",
"topic": "Codejock Calendar Samples?",
"username": "Massimo Linossi"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Massimo;\n\nThere is very little fixed text on the control. They call it \"Labels\". All labels have a property where you can set the text that should be displayed and it can change at any time. I'm not sure if labels are predefined in other languages, I think you should email CodeJock sales people with that question.\n\nRegarding the auto-installation of the OCX, CodeJock has a few sample codes that shows how to automate the OCX registration. I haven't looked into that just yet, since I'm confident that it will not be an issue. At this moment I'm trying to learn how to use their other controls such as the Grid and report control which just looks fantastic!\n\nReinaldo.",
"time": "16:09",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks Reinaldo for your answer.",
"time": "16:13",
"topic": "Codejock Calendar Samples?",
"username": "Massimo Linossi"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Massimo Linossi\":2ikktqm1]Thanks Reinaldo for your answer.[/quote:2ikktqm1]\nYou can use this code below:\n[code=fw:2ikktqm1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oBF:<span style=\"color: #000000;\">GlobalSettings</span>:<span style=\"color: #000000;\">ResourceFile</span>:= <span style=\"color: #ff0000;\">\"SuitePro.ResourceIt.dll\"</span><br /> </div>[/code:2ikktqm1]",
"time": "17:03",
"topic": "Codejock Calendar Samples?",
"username": "richard-service"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo,\n\nPerdón por el castellano.. pero me interesaba comentarle una cosa.\nÉn general, fuera del tema del Calendar, el tema del envio de mensajes o eventos sobre la modificacion de datos, a mi modo de ver es intesante pero más allá de la modificación de datos.\nEventos ejemplo que pueden ser enviados a otros usuarios:\n\n- Usuario ingresado (programa abierto)\n- Usuario dado de baja\n- usuario haciendo proceso exclusivo\n- Usuario quiere hace proceso exclusivo\n- Documento (ejemplo factura) creada: Un documento puede estar compuesto de mas de una tabla y solamente se notificara la creacion del documento una vez finalizado.\n\n- etc...\n\nNo se que le parecerá todo esto que comento... pienso que se puede programar todo esto con codigo .prg..\n\nSaludos\n\n[quote=\"reinaldocrespo\":35b7r6ob]Richard;\n\nIn a network environment you'd have to find when a new appointment (\"event\") has been saved to disk in order update (refresh()) the calendar on alll the other workstations. Many SQLs have configurable services that may broadcast a message to all clients connected. The message could inform that a new appointment has been added/changed or deleted. You'd have to have a loop that processes messages and act accordingly.\n\nADS has such service so that when something is added/updated/deleted on a table, it broadcasts a message (in ADS nomenclature: \"event notification\") to all clients connected to the table with information about the event. With out this, you'd have to implement your own messaging system. As you see, it is a little bit tricky -not impossible, but tricky and it has little to do with the calendar control it self. \n\nYou could also have a timer to \"poll\" the table or poll a messages table and force a refresh. But still... I don't see a simpler way of doing it than the centralized notification system on the SQL engine itself -which you find in ADS starting with version 9.\n\nIn the absence of ADS, maybe someone has a better idea. I hope this helps.\n\n\nReinaldo.[/quote:35b7r6ob]",
"time": "23:37",
"topic": "Codejock Calendar Samples?",
"username": "hmpaquito"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hmpaquito;\n\nRealmente aqui hablo de notifiaciones y se trata de notificaciones que el ADS ya envia sin que tengas que programar nada de .prg. O sea, si quieres saber cuando una factura se crea; solo tienes que decir a ADS que genere una notificación cuando la tabla de factura recibe un \"Insert\". Igual puedes pedir a ADS que envie notificaciones cuando algo cambia en una tabla, cuando se borra algo, cuando se añade algo, cuando un usuario se logea, cuando se des-logea... Cuando cualquiera de estas cosas suceda, entonces ADS (el server) envia la notificacion al respecto a todos los clientes (aplicaciones) conectados al server. Nada que programar. Y funciona muy bien.\n\nPor ejemplo yo tengo un server que envia una notificacion cada vez que una habitacion del hospital es ocupada o desocupada y de esta manera las aplicaciones saben que habitaciones ofrecer a una nueva admision o transferencia de habitacion.\n\nEspero se entienda.\n\n\nUn saludo,\n\n\nReinaldo.",
"time": "00:45",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo,\n\nSolamente planteaba algo ya ya tiempo me ronda la cabeza y que me lo recordó su comentario: un sistema de eventos o notificaciones que una aplicación puede enviar a sus aplicaciones \"hermanas\" de la red. Las notificaciones pueden ser diversas y no solamente por modificaciones en los datos. En cualquier caso, no se como funciona en ADS las notificaciones, pero si por ejemplo\n\n// Incio de documento\nSELECT Factura\nAPPEND BLANK\n\nOtra codigo\n\nSELECT OtroFichero\nAPPEND BLANK // ADS aqui ??\n\n\n// fin de documento\n\nSeria en // fin de documento donde se tendria que realizar la notificacion de nuevo documento. ADS lo haria, segun entiendo, mal.\n\n\nSaludos",
"time": "15:57",
"topic": "Codejock Calendar Samples?",
"username": "hmpaquito"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hmpaquito;\n\nLet's move this thread over to the spanish forum. ...y evitamos incomodar a los que no entienden. In the mean while; please excuse me for answering in English. \n\nI will attempt to explain ADS Notifications:\n\nNotifications provide a mechanism for communicating to a client that something has occurred. For example, notifications can be used to inform a client application that data in a critical table has changed. The client application can then use this information to refresh() an xbrowse (or some other control) of that table and thus provide the user with more up to date information (without having to \"poll\" the table).\n\nA Notification might be used to signal a client that a record has been added to a special table created for purpose of communicating messages from the system administrator to the end users. The client application can then read the latest message and display it within its interface.\n\nA Notification might be used to signal a client that a record has changed. The client app my make a decision based on what changed on that particular record. Perhaps create an entry on a queue to send some information via email. Then a client app listening for such notifications can take care of sending the email. \n\nThese are all typical situations where an ADS Notification might be used. No coding. No .prg. ADS provides an API to create a notification, to listen for notifications, to know if a notification has been issued while the app was not listening. etc...\n\nSpecifically ADS API provides \"sp_SignalEvent()\" to create a Notification based on some condition. That part can be stored on the ADS Data Dictionary as a trigger so that you never have to tell the server again to issue a Notification based on that condition. The server always knows because you saved that as a \"trigger\" info on the Data Dictionary. Then API function \"sp_WaitForEvent()\" will inform the client application if an event has occurred. \n\nOn a single threaded app, you test for notifications by using a repeated periodic call with short timeouts -i.e. \"polling\". But not polling the table but rather polling for the event notification. Due to its nature, polling will not actually notify the client app when a change has occurred, but rather notifies the client that a change HAS occurred sometime between now and the last check. But that works just fine.\n\nSo, In essence, with ADS notifications you take care of \"events\" on any table without having to write or \"invent the wheel\". The wheel is already invented and running smoothly. For more information about ADS notifications; please visit <!-- m --><a class=\"postlink\" href=\"http://devzone.advantagedatabase.com\">http://devzone.advantagedatabase.com</a><!-- m -->.\n\nHope that helps,\n\n\n\nReinaldo.",
"time": "17:06",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo,\n\nRE: WaitForEvent()\n\nSo it seems that if we were using a DBF for a group calendar, then all we need to monitor for a calendar update, is to check to see if the date and time of the DBF has been changed? This could be done with a simple polling routine as you mentioned.\n\nTo check for an update, we could store the date and time as statics in a function, then just call the function in the polling routine.\n\nOne concern is that disk read/write buffering could create a delay of an unknown and variable time.\n\nRegards,\nJames",
"time": "17:40",
"topic": "Codejock Calendar Samples?",
"username": "James Bott"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James;\n\nYou really don't need to check for anything. What you really do is listen (sp_waitforevent(0) zero wait time), for the notification from the server that something has happened. You then make a decision as to what to do about it. The server will only send notifications to all clients if there is a \"trigger\" created to notify about it.\n\nThe server takes care of issuing the \"notification\". In the case of a multi-user calendar; a trigger on the table needs to be set so that the server issues a notification anytime a calendar event is \"updated\", deleted, or \"inserted\". \n\nThen, In a single threaded app, you would need to issue the API function (\"sp_waitforevent(0)\") with zero wait time to learn of any notification. BTW- the notification can also add information about what happened such as record #, info changed, etc... Listening for a notification can be done as part of a main loop, when taking some action, or by simply placing the command on a timer. If using a timer, then you'd have to execute some codeblock to update the calendar's data set.\n\nI still have not implemented notifications on my calendar app. I don't think it will be hard. I have implemented ADS notifications in the past. For example: to alert the user that the current xbrowse needs to be refreshed. For example, when viewing the current hospital census on an xbrowse, a new patient may be admitted. At that moment a \"normally\" green dot turns yellow. That way the user knows that the census has changed and needs to press the refresh button. Optionally the user may \"turn-on\" the automatic refresh option. In that case, the xbrowse autorefreshes anytime a notification that affects the census is received.\n\nAs you see here, there is no disk-read-write-buffering of any kind. The polling is for messages not the actual table. The message is issued by the server as a response to an update/delete/insert operation. Furthermore, to refresh the current view you could simply use the information that's included with the notification (only after version 10 of the Server). If you do that, then there is zero read from disk. ...and you must know that ADS implements notifications for dbfs as well as adt table types.\n\nThe subject of Notifications from the sql-server is somewhat alien to our (moslty single user) dbf world. But ADS makes it available to DBFs. And it just makes life easier.\n\n\nReinaldo.",
"time": "19:01",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo,\n\nSorry, I wasn't clear. I was referring to when using DBFs without ADS.\n\nJames",
"time": "19:14",
"topic": "Codejock Calendar Samples?",
"username": "James Bott"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I envy Mr. Reinaldo that he is fortunate to be working with ADS. I personally love ADS. Unfortunately, in India, ADS is not popular. Those who can afford go to Oracle or MSSql and others insist on free solutions like MySql. I am sad I lost the opportunity to work with ADS now.",
"time": "19:22",
"topic": "Codejock Calendar Samples?",
"username": "nageswaragunupudi"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo,\n\nWithout doubts, ADS is great, but expensive.\nThank you very much for your explication.\n\nRegards\n\n\n[quote=\"reinaldocrespo\":2012dhid]hmpaquito;\n\nLet's move this thread over to the spanish forum. ...y evitamos incomodar a los que no entienden. In the mean while; please excuse me for answering in English. \n\nI will attempt to explain ADS Notifications:\n\nNotifications provide a mechanism for communicating to a client that something has occurred. For example, notifications can be used to inform a client application that data in a critical table has changed. The client application can then use this information to refresh() an xbrowse (or some other control) of that table and thus provide the user with more up to date information (without having to \"poll\" the table).\n\nA Notification might be used to signal a client that a record has been added to a special table created for purpose of communicating messages from the system administrator to the end users. The client application can then read the latest message and display it within its interface.\n\nA Notification might be used to signal a client that a record has changed. The client app my make a decision based on what changed on that particular record. Perhaps create an entry on a queue to send some information via email. Then a client app listening for such notifications can take care of sending the email. \n\nThese are all typical situations where an ADS Notification might be used. No coding. No .prg. ADS provides an API to create a notification, to listen for notifications, to know if a notification has been issued while the app was not listening. etc...\n\nSpecifically ADS API provides \"sp_SignalEvent()\" to create a Notification based on some condition. That part can be stored on the ADS Data Dictionary as a trigger so that you never have to tell the server again to issue a Notification based on that condition. The server always knows because you saved that as a \"trigger\" info on the Data Dictionary. Then API function \"sp_WaitForEvent()\" will inform the client application if an event has occurred. \n\nOn a single threaded app, you test for notifications by using a repeated periodic call with short timeouts -i.e. \"polling\". But not polling the table but rather polling for the event notification. Due to its nature, polling will not actually notify the client app when a change has occurred, but rather notifies the client that a change HAS occurred sometime between now and the last check. But that works just fine.\n\nSo, In essence, with ADS notifications you take care of \"events\" on any table without having to write or \"invent the wheel\". The wheel is already invented and running smoothly. For more information about ADS notifications; please visit <!-- m --><a class=\"postlink\" href=\"http://devzone.advantagedatabase.com\">http://devzone.advantagedatabase.com</a><!-- m -->.\n\nHope that helps,\n\n\n\nReinaldo.[/quote:2012dhid]",
"time": "23:09",
"topic": "Codejock Calendar Samples?",
"username": "hmpaquito"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hmpaquito;\n\nI usually don't answer this type of comments because I have no idea what it is like outside North America. Just for the record, in the US I find ADS to be the least expensive SQL in the market. ...that's including mysql.\n\nReinaldo.",
"time": "23:20",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo, please don't take it the wrong way, what we don't know is like what we don't see...\n\nIn my country Guatemala, minimum wage is less than US$200 a month, that is for the very few people that are lucky enough to have a job... \n\nOther country's are not as lucky as Guatemala... we have good salary's compared to other country's...\n\nThat not being enough, a gallon of gas here is US$4.20 just 2 hours ago when I filled my tank...",
"time": "01:33",
"topic": "Codejock Calendar Samples?",
"username": "Bayron"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Bayron;\n\nStill that doesn't make ADS any more expensive than ms-Sql (in Gatemala or not) or any other sql for that matter. Notice I'm comparing SQL prices. The only SQL less expensive than ADS is NO SQL. So in a vertical market, when I compete with other vendors that sell/installs ms-sql with their software, I already have a price advantage.\n\nReinaldo.",
"time": "01:41",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please help me to create this <!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=20710\">viewtopic.php?f=3&t=20710</a><!-- l -->\nIf we 'llwork together we can create it",
"time": "14:38",
"topic": "Codejock Calendar Samples?",
"username": "MdaSolution"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "MdaSolution;\n\nHi.\n\nI already tried that. AMOF; the code will be released soon and it's not bad. I think you will enjoy this Calendar class very much. But for myself, I finally decided to go with CodeJock because I felt that for the price you save a lot of time and furthermore I didn't think that fw users would be willing to pay for the class so it made no financial sense.\n\n\nReinaldo.",
"time": "14:47",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Back in my VB6 times I used some components of Codejock,\nespecially ribbonbar and also the calendar.\nIn my opinion there are too many setup possibilities, designers, etc.\nYou never come to an end with your application development. If you are nearly ready \na new release is available. \nI feel it is much easier to use FW own ribbonbar. Also speed behavior is much better.\nIf you really want to use all the stuff from the components you have to have an own specialist in your company who does this work.\n\nI think if you implement all the options codejock calendar offers like in your screen shot you could use Outlook and not an own calendar.\nCodejock components are rock solid but I made the experiences that it is hard to trace errors if you use many components.\n\nBest regards,\nOtto",
"time": "17:13",
"topic": "Codejock Calendar Samples?",
"username": "Otto"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I looked at Codejock several years ago, and I corresponded with their staff. I was very impressed but didn't want to deal with the work around for the .DBFs I use.\n\nRecently I started working with Reinaldo and James to implement the Calendar class into my own application. I've had other solutions but felt the need to match Outlook for competitive reasons. My clients will be thrilled with the results. It has also been an incentive for me to take a \"learning step\" in transitioning from the typical xBase coding to a full class implementation. \n\nWe have discussed and prototyped a FW calendar control for several years but time is limited and I think many other priorities exist. It will probably take a couple of years after it is introduced to refine it ( think about how the xBase control gets better and better over time ), so a useful production model may be a long time away. In this case, I needed a better \"appearance\" to my appointment scheduler a long time ago.\n\nBecause of an incentive they offered, I did invest in the full library. I'm not sure how much I will use, but time will tell !\n\nOn ADS, I incorporated that many years ago. As a reseller of it to my clients, I get my developer license for free, so I have a full test copy of the latest version. My clients decide if they need it. My software recognises it automatically, thus they can be in DBF/CDX mode naturally, and if it is present, they are in Client Server mode. I recommend it for more then two workstations. Frankly, if a company needs more then 2 workstations, it can afford an ADS license. Your cost to develope for it is free. Thats pretty affordable.",
"time": "17:13",
"topic": "Codejock Calendar Samples?",
"username": "TimStone"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Tim,\n\nI can’t imagine what your calendar is doing. Would you be so kind to tell us more maybe you can post a screenshot.\nIs it a standalone or do you work together with outlook?\nI am curious to hear in 6 month about your experiences. \nBest regards,\nOtto",
"time": "18:44",
"topic": "Codejock Calendar Samples?",
"username": "Otto"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Friends;\n\nI don't wish to convince anybody about CodeJock. I only want to share information for everyone's benefit. It is true that the calendar control is huge and extremely configurable. Yes, you can use outlook data, or any other source of data as well as a combination of data sources including google calendar. By any source, I mean, xml, dbf, mdb, sql, mysql, ads, outlook, arrays, objects, memory, oracle, flat files, ....\n\nThe control is well worth its cost and they are always running special deals where you can get the control for about $100. It is totally the outlook look and feel. I always avoided writing a calendar for my customers and instead always told them to use outlook. But the fact of the matter is that outlook could not tell them if the patient with an appointment got serviced or not. Outlook does not pickup insurance information and will not integrate with my other tables.\n\nAs complete and configurable as the control is, you don't have to implement every single feature. Tim got the calendar up an running in two days, yes there were some kinks, but still -he only started working with the calendar last Friday and I already saw a screen shot of his app -it blew me away. \n\nThese screen shots are from my calendar app developed in a little over a week and it is already installed as a beta at a customer site:\n\nHere I'm selecting more than one day:\n[img:o1gljj5e]http://ssfl.dynalias.com/temp_files/2011-01-24_1321.png[/img:o1gljj5e]\n\nHere I'm displaying a custom form to enter specific data:\n[img:o1gljj5e]http://ssfl.dynalias.com/temp_files/2011-01-24_1326.png[/img:o1gljj5e]\n\nAgain, I'm only sharing what I trust to be valuable information and I hope it helps some.\n\nregards,\n\n\nReinaldo.",
"time": "19:40",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Otto,\n\nAs part of my App, I have an appointment scheduler that must handle multiple events for each day/time. I used a browse to list them on a particular day, and also a Gantt type chart to show available times. However, the look and feel ( which inherited from the old Grumpfish DOS calendar ) was just not modern and clients wanted an Outlook type of appearance. However, my clients do not necessarily use Outlook ( most have no idea what it is even ).\n\nI also track a lot of info per appointment, but the main issue was the interface. The Codejock calendar will allow me to get the job done now. I hope I am right because I already invested in it, and funds are very precious right now. However, the initial results do look promising.\n\nYes there are a lot of things we could set, but so far my code has been fairly minimal and yet I'm getting what I need.\n\nMy comments about the pending FWH calendar class were not in any way a criticism. We all know that a new class takes a long time to iron out all the issues and expand to meet all the needs. We've seen how much the many FWH classes have improved and expanded over the years. I just needed something now to get this done. I don't tie in a lot of external controls so I don't think the effect will be negative at all.\n\nTim",
"time": "19:49",
"topic": "Codejock Calendar Samples?",
"username": "TimStone"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "One other point about Outlook. Unless you use Exc hange Server ( not usually found in smaller installations ), it is essentially single user. You can manually sync from one computer to another, but not live. Also Reinaldo is right on about the not linking to other data that needs to be updated.\n\nIn my case, I link a vehicle, client, estimate, and notes to the calendar and all must be visible on a click with the popup dialog. I'd be a lot further along if I'd really gotten into programming classes ( instead of just using them ) as James has encouraged me to do for years ... but the urgent stuff kept my focus elsewhere.",
"time": "19:54",
"topic": "Codejock Calendar Samples?",
"username": "TimStone"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote:1753cekx]but the urgent stuff kept my focus elsewhere.[/quote:1753cekx]\n\nThere was a TV ad years ago about car repairs that said \"You can pay me now, or you can pay me later.\" Of course, paying later always ends up costing more.\n\nConverting to using business classes will save tons of time (and money). Converting legacy applications can best be done a little at a time. As you need to work on specific routines you can start to convert just those routines to objects while leaving other routines untouched.\n\nThere is also a technique called \"object wrapping.\" This is just done by defining a class and encapsulating legacy code into methods of that class. Then as time permits, each method containing legacy code is converted to a true method.\n\nThese techniques can make converting to OOP much less painful and you start to gain some of the productivity of OOP almost immediately.\n\nRegards,\nJames",
"time": "20:50",
"topic": "Codejock Calendar Samples?",
"username": "James Bott"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo,\n\n>I only want to share information for everyone's benefit.\nBenefit for me is judgmental - I think you should use option. Is an option.\n\nUsing all those components I came to a point where I had so many unfinished projects and every new release – how long will they support activeX, etc.- were really painful.\n\n>Outlook does not pickup insurance information and will not integrate with my other tables.\nThere are many examples here how you can interact from FW with outlook which I use.\n\n>Tim got the calendar up and running in two days\nI know and made the same experience. But if you need a special feature you can’t overcome if you don’t have the source code. \n\n>Because of an incentive they offered, I did invest in the full library. I'm not sure how much I will use, but time will tell !\nThis was the same here. you always try more and more and you end with a source code which you can’t handle anymore.\nAlso to distribute such components is difficult. Sometimes admins don’t let you install the DLLs and OCXs you need.\nEspecially if you want to show a demo of your software. Then if you install your dlls and ocx files some other programs don’t work any longer because of a version conflict.\n\n>There was a TV ad years ago about car repairs that said \"You can pay me now, or you can pay me later.\" Of course, paying later always ends up costing more.\n>Converting to using business classes will save tons of time (and money). Converting legacy applications can best be done a little at a time. As you need to work on specific routines you can start to convert just those routines to objects while leaving other routines untouched.\n>There is also a technique called \"object wrapping.\" This is just done by defining a class and encapsulating legacy code into methods of that class. Then as time permits, each method containing legacy code is converted to a true method.\n\n>These techniques can make converting to OOP much less painful and you start to gain some of the productivity of OOP almost immediately.\n\nI am so thankful that James helped me to convert my app to OOP style and having James as a teacher.\n\n\nMy opinion:\nIf we are fulltime Fivewinners we should try to find solutions using pure Fivewin. Otherwise the advantages this language has are lost.\n\nFor example using codejock with VB6 is so much easier than with FIVEWIN all the designers are and debugging is working you could also use\nApollo embedded database engine for managing CA-Clipper files which is working well and the syntax for Apollo is in VB6 similar to xBase.\nBut VB6 is no longer supported. \n\nIf you calculate yours, Tims and James time the money you paid a FW own class would be ready since days.\nBest regards,\nOtto",
"time": "21:37",
"topic": "Codejock Calendar Samples?",
"username": "Otto"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Otto; I see your point. I stand corrected.\n\nThe only part that I'm missing here is who do you pay for a CodeJock-type class in FW? If I have the choice of paying CodeJock or I pay a FWner; I pay the fwiner. But couldn't find it. Do you?\n\nRegards;\n\n\nReinaldo.",
"time": "21:45",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo what is your email?\nBest regards,\nOtto",
"time": "21:48",
"topic": "Codejock Calendar Samples?",
"username": "Otto"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi.\n\nYou can email me at:\n\nreinaldo dot crespo at gmail\n\nI'll be glad to read from you,\n\n\nReinaldo.",
"time": "22:09",
"topic": "Codejock Calendar Samples?",
"username": "reinaldocrespo"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Now I found the post from 2007.\n\nI didn’t knew before that paid support from Fivewin is possible.\nSince that time I am satisfied. If I have really a complicated issue and no time to wait\nfor an answer in the forum I have the possibility to get support from Fivewin directly\nor Antonio knows someone who can help.\n\nBest regards,\nOtto\n\n\n[quote:1f102mhg]Report this postReply with quoteby Antonio Linares » Sat Sep 22, 2007 6:14 pm \n\nOtto,\n\nWhy don't you consider to do it yourself ? \nI am sure that you have the technical skills to complete it.\n\nIf you want me to do it, send me an email and we will talk about the timeframe and priceregards, saludos\n\nAntonio Linares\n<!-- m --><a class=\"postlink\" href=\"http://www.fivetechsoft.com\">http://www.fivetechsoft.com</a><!-- m -->\nAntonio Linares \nSite Admin\n \nPosts: 20093\nJoined: Thu Oct 06, 2005 5:47 pm\nLocation: Spain\nWebsiteTop\n--------------------------------------------------------------------------------\n\n[/quote:1f102mhg]",
"time": "22:11",
"topic": "Codejock Calendar Samples?",
"username": "Otto"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim\n\nI have purchased the codejock control calendar also\n\nI am working on it's integration to my application this week \n\nHope we can share some code or ideas,\n\nRichard",
"time": "09:51",
"topic": "Codejock Calendar Samples?",
"username": "Richard Chidiak"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nI am agree with Otto. It is much better to have FWH own controls rather than 3rd party without source code.\n\nI am interested in an Agenda for FWH like Outlook´s and I can paid for it to Antonio, Daniel or who can provide it.\n\nThank you.",
"time": "10:26",
"topic": "Codejock Calendar Samples?",
"username": "ukservice"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "ukservice\n\nOf course we all prefer a native fwh control and i am ready to pay for that also\n\nI asked for it several times , Daniel started the job but there is a very long way to go in order to have a similar control as codejock's. \n\nPlease take a small time to download a trial version (free) and you will quickly understand what i mean . this control is \"extremely\" professional and has a lot a capabilities.\n\nI made the decision to purchase the control when Reinaldo published the code to manipulate it.\n\nI have started working on integrating it to my software. i will publish screen shots when finished , hopefully by the end of the week.\n\nHth\n\nRichard",
"time": "11:10",
"topic": "Codejock Calendar Samples?",
"username": "Richard Chidiak"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr Chidiak,\n\nYes, I am agree that Codejock is too much professional.\n\nI think a more simple Agenda will be enough. Mr. Otto´s class is very good. Just something a bit more complex.\n\nThe problems about using 3rd party tools have been described by Mr. Otto above. I don´t think it worths as they will cause too much support trouble.\n\nA more simple but rocky stable Agenda is much better in my opinion that Codejock´s one.\n\nMr. Daniel, what is the status of your Agenda?.\n\nThank you.",
"time": "17:05",
"topic": "Codejock Calendar Samples?",
"username": "ukservice"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Otto, I'd like to clear up something. I've been a FW user since the early days. If you look at my posts over the years, you will see that I'm very supportive of the work, assistance, and even the friendships that come about here. I use FW because I believe in it, and it allows me to do things I can't traditionally do otherwise.\n\nWith that as a basis, I believe that sometimes the things we want will take a long time. I used the xBrowse control as an example of something that just keeps getting better and better. Of course, it has been under development for years.\n\nA full calendar class has been suggested for several years with FW, but it hasn't been a priority in the past, or the work involved was too much. As Daniel pointed out in another post, there are so many things to do with his time, and he doesn't have enough right now to complete this class. That is a very welcome statement because he is being honest with us, and I appreciate it. Others may step in to help, and that is great.\n\nThe point is my customers wanted something like Outlook two years ago. I don't want to risk losing them over this. So I got Codejock. It works, it solves my problems, and I'm pleased.\n\nAs for 3rd party libraries, I actually use one for spell checking, another for graphing, and another for PDF creation. They all work fine. If they get replaced one day by FW classes, that would be wonderful. But why make my clients wait ? They have needs now which my competitors answer.\n\nAs for the class that you have, it may be perfect for your needs, and it is similar to what I use now, but its just not enough for my clients. Hopefully Codejock will be a viable solution until that time when FW has a full class of its own.",
"time": "00:19",
"topic": "Codejock Calendar Samples?",
"username": "TimStone"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim\n\n[quote=\"TimStone\":85ot3x63]As Daniel pointed out in another post, there are so many things to do with his time, and he doesn't have enough right now to complete this class. That is a very welcome statement because he is being honest with us, and I appreciate it. Others may step in to help, and that is great.[/quote:85ot3x63]\n\nThanks for understand me and for the trust",
"time": "13:34",
"topic": "Codejock Calendar Samples?",
"username": "Daniel Garcia-Gil"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-01-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Daniel,\n\nI've been doing xBase programming since 1982. I know how long it can take to complete projects, and how fast new ones get on our calendar. The people on this forum also have personal lives with families and friends. It is important to keep a balance and enjoy the precious time we are granted. We can't do it all at once.\n\nYou've made some nice contributions to FW as have others on this forum. They are appreciated.\n\nTim",
"time": "16:46",
"topic": "Codejock Calendar Samples?",
"username": "TimStone"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-02-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please see\n\n[url:neic1sqz]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=20732&start=45[/url:neic1sqz]\n\nFIVEWIN power - thank you Daniel.\nBest regards,\nOtto\n\ndownload sample here: [url:neic1sqz]http://www.sitasoft.net/fivewin/samples/calex1.zip[/url:neic1sqz]\n\n[img:neic1sqz]http://www.sitasoft.net/fivewin/screen/calex1.png[/img:neic1sqz]\n\n[img:neic1sqz]http://www.sitasoft.net/fivewin/screen/calex2.png[/img:neic1sqz]",
"time": "03:23",
"topic": "Codejock Calendar Samples?",
"username": "Otto"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-02-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please Reinaldo Crespo, I try to download de codejock calendar just to test and no way. Allways It link to me to the [url:10t6jfh5]http://www.codejock.com/downloads/[/url:10t6jfh5] and is anything about calendars. Could you send me the correct link or send me the file. I'm following both samples and the one from Daniel and theseone. Please could you help me. If you can send to me a funtional sample I'll apreciate. \n\nThanks Reinaldo.",
"time": "09:52",
"topic": "Codejock Calendar Samples?",
"username": "Andrés González"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-02-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Andres,\n\nSorry for the delay in responding. You want to download and install the complete Active X Codejock controls demo from the website. It provides all of the controls for testing. Then if you want to order just the Calendar control, they will do that for you. For testing, do the complete download. \n\nIt should install, and register, the controls and be useable from the start. At this point we have been very successful at integrating it with both DBF and SQL databases. Reinaldo has led the way, and others have added various FWH capabilities tied to the control. In my case, it will be used by my clients as an appointment scheduler. I am able to track additional data, assign them to various groups ( colors ), move them from one day to another with drag and drop, change the times by dragging them, or extend it by pulling the lines on the control ... all instantly. Printouts are automatic, and its easy to add custom controls. You can see any range of dates, or the normal Outlook views. It can even interact with your Outlook calendar, do recurring items, and it has a reminder capability just like Outlook. Time spacing is defineable, views are defineable, and the list goes on. Its pretty amazing. We've just begun to build out all we can do. \n\nSo I hope you do get the download, and you do work with it.\n\nTim",
"time": "19:23",
"topic": "Codejock Calendar Samples?",
"username": "TimStone"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-02-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Tim!\n\n[quote=\"TimStone\":2gv4gdre]\nAs for 3rd party libraries, I actually use one for spell checking, another for graphing, and another for PDF creation. They all work fine.\n[/quote:2gv4gdre]\n\nWhat 3rd party libraries do you use exactly?\n\nThanks.",
"time": "20:56",
"topic": "Codejock Calendar Samples?",
"username": "IBTC"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-02-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sorry Tim for the delay. I have installed it like you say an no way. The sample don't work, just in the line about the activex [code=fw:2n4aaiyy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//create the object</span><br />::<span style=\"color: #000000;\">oCalex</span> := tActiveX<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oPanelCalex</span>, <span style=\"color: #ff0000;\">\"Codejock.CalendarControl.13.4.2\"</span> <span style=\"color: #000000;\">)</span></div>[/code:2n4aaiyy]. May be a problem with the codejock.calendar.control name ? I'm not good in Activex.",
"time": "09:00",
"topic": "Codejock Calendar Samples?",
"username": "Andrés González"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-02-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Andrés\n\nYo have to register the ocx , did you do it ?\n\nRichard",
"time": "09:24",
"topic": "Codejock Calendar Samples?",
"username": "Richard Chidiak"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-04-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I would like to be able to integrate Codejock Calendar with Google Calendar.\n\nCan anyone assist?\n\nHow is it done.\n\nthanks in advance <!-- s:o --><img src=\"{SMILIES_PATH}/icon_surprised.gif\" alt=\":o\" title=\"Surprised\" /><!-- s:o -->",
"time": "09:26",
"topic": "Codejock Calendar Samples?",
"username": "lozmoz"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-04-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Codejock calendar can interact easilly with \"mapi\" compliant calendars \n\nMs Outlook is Ok for this , i don't know about google calendar if it is compliant with Mapi, if yes then it is feasable .\n\nYou will find more help on codejock's forum \n\n <!-- m --><a class=\"postlink\" href=\"https://forum.codejock.com/\">https://forum.codejock.com/</a><!-- m -->\n\nI highly recommend codejock calendar, it is a fantastic tool. \n\nHth\n\nRichard",
"time": "13:21",
"topic": "Codejock Calendar Samples?",
"username": "Richard Chidiak"
}
] | Codejock Calendar Samples? |
[
{
"date": "2011-04-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks for the info.\n\nI have purchased and integrated Codejock Calendar into my software, and I have used it to also talk to MS Outlook.\n\nI really need to know how to link up with Google Calendar, if anyone has done this before.\n\nAny assistance is appreciated.",
"time": "23:34",
"topic": "Codejock Calendar Samples?",
"username": "lozmoz"
}
] | Codejock Calendar Samples? |
[
{
"date": "2012-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Codejockers <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> \n\nAny advise how to start a project with xHarbour and Codejock ActiveX?",
"time": "08:35",
"topic": "Codejock Calendar Samples?",
"username": "fraxzi"
}
] | Codejock Calendar Samples? |
[
{
"date": "2012-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Frances\n\nThe easiest way is to build a class \n\nLet me know what email you use, i will send you a copy of the class i use for my application since quite a while , working like a charm.\n\nHth\n\nRichard",
"time": "14:53",
"topic": "Codejock Calendar Samples?",
"username": "Richard Chidiak"
}
] | Codejock Calendar Samples? |
[
{
"date": "2012-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Frances,\n\nPlease, look at:\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=20732&p=110045&hilit=calex#p110045\">viewtopic.php?f=3&t=20732&p=110045&hilit=calex#p110045</a><!-- l -->\n\nIt is almost finished. Missing reports functions and alerts.\n\nBest regards",
"time": "21:46",
"topic": "Codejock Calendar Samples?",
"username": "lucasdebeltran"
}
] | Codejock Calendar Samples? |
[
{
"date": "2012-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Lucas,\n\nI saw this project but it's unfinished project and no completely publish. I cannot even build the sample01. It shows and error.\nfunction and class is missing.\n\"Calex_Setfirstdate\"\n\"TCalex\"\n\nI would like to see this project has done.\n\nThanks,\nDutch\n[quote=\"lucasdebeltran\":39grqwa2]Frances,\n\nPlease, look at:\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=20732&p=110045&hilit=calex#p110045\">viewtopic.php?f=3&t=20732&p=110045&hilit=calex#p110045</a><!-- l -->\n\nIt is almost finished. Missing reports functions and alerts.\n\nBest regards[/quote:39grqwa2]",
"time": "19:13",
"topic": "Codejock Calendar Samples?",
"username": "dutch"
}
] | Codejock Calendar Samples? |
[
{
"date": "2012-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Richard,\n\nCould you send me this sample class also.\n\nThanks in advance,\nDutch\n[quote=\"Richard Chidiak\":1rd3dco6]Frances\n\nThe easiest way is to build a class \n\nLet me know what email you use, i will send you a copy of the class i use for my application since quite a while , working like a charm.\n\nHth\n\nRichard[/quote:1rd3dco6]",
"time": "19:14",
"topic": "Codejock Calendar Samples?",
"username": "dutch"
}
] | Codejock Calendar Samples? |
[
{
"date": "2012-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dutch,\n\nI don´t get any errors.\n\nThis is function Calex_SetFirstDate( nFirst )\n\n//----------------------------------------------------------------------------//\n\nFUNCTION Calex_SetFirstDate( nFirst )\n \n local nOldValue\n \n static nFirstDate := 0\n \n nOldValue = nFirstDate\n \n if PCount() > 0\n nFirstDate = Min( Max( 1, nFirst ), 7 ) - 1\n endif \n \nreturn nOldValue\n\n//----------------------------------------------------------------------------//\n\n\nMaybe you are using an old version??",
"time": "19:53",
"topic": "Codejock Calendar Samples?",
"username": "lucasdebeltran"
}
] | Codejock Calendar Samples? |
[
{
"date": "2012-04-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Richard, can send to me too? thanks <!-- e --><a href=\"mailto:[email protected]\">[email protected]</a><!-- e -->",
"time": "00:43",
"topic": "Codejock Calendar Samples?",
"username": "norberto"
}
] | Codejock Calendar Samples? |
[
{
"date": "2012-04-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Richard Chidiak\":izjf2b6o]Frances\n\nThe easiest way is to build a class \n\nLet me know what email you use, i will send you a copy of the class i use for my application since quite a while , working like a charm.\n\nHth\n\nRichard[/quote:izjf2b6o]\n\nDear Mr. Richard,\n\nMy email is vichezzz at yahoo dot com.\n\nThank!",
"time": "02:43",
"topic": "Codejock Calendar Samples?",
"username": "fraxzi"
}
] | Codejock Calendar Samples? |
[
{
"date": "2012-04-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Frances Dutch and Norberto\n\nYou can download it from <!-- w --><a class=\"postlink\" href=\"http://www.cbati.com/tcodejock.zip\">www.cbati.com/tcodejock.zip</a><!-- w --> if any one else wants to download he is welcome, of course you will need to have the license from codejock and insert your own license number.\n\nThe class was made to fit my needs, i use it for scheduling , version 15.0.2 of the control installed one year ago.\n\nYou will find all the elements to get started with, i have joined the resources and images i use also.\n\nIf you need help, let me know , codejock is a fantastic product while their support is very bad... unfortunately. Initially the class was set by Reinaldo Crespo and Tim Stone and highly updated by me.\nSpecial thanks also to Daniel Garcia Gil who helped me also getting stated a year ago.\n\nHaving more fivewinners using this control is good, we may share more expertise.\n\nLooking forward for your comments,\n\nTo Lucas , there is no way to compare the calex class to codejock, there is a lot to do for the same functions. I have joined some images of what can be done with codejock, it is self explaining\n\nRegards",
"time": "05:36",
"topic": "Codejock Calendar Samples?",
"username": "Richard Chidiak"
}
] | Codejock Calendar Samples? |
[
{
"date": "2012-04-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Mr. Richard,\n\n\nThank you for your positive support. I'm looking forward to start using this class and throw useful feedback for someone to catch..",
"time": "01:40",
"topic": "Codejock Calendar Samples?",
"username": "fraxzi"
}
] | Codejock Calendar Samples? |
[
{
"date": "2012-04-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks Richard,\n\nI will see from your samples and let you know.\n\nRegards,\nDutch",
"time": "05:49",
"topic": "Codejock Calendar Samples?",
"username": "dutch"
}
] | Codejock Calendar Samples? |
[
{
"date": "2013-05-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Richard.\nI'm trying to download your sample but the zip file is not downloadable anymore.\nIs it possible to have a new link to test your Codejock example ?\nThanks a lot.\nMassimo",
"time": "09:47",
"topic": "Codejock Calendar Samples?",
"username": "Massimo Linossi"
}
] | Codejock Calendar Samples? |
[
{
"date": "2013-05-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Massimo,\n\nThis codejock example has been sent from Richard Chidiak to me, I am copying it here without any licence infos:\n\nRichard, if there is any objection to publish it here, please let me know it and I will remove it, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[code=fw:1l2a9t71]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#INCLUDE</span> <span style=\"color: #ff0000;\">\"FIVEWIN.CH\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"dtpicker.ch\"</span><br /><span style=\"color: #00D7D7;\">#INCLUDE</span> <span style=\"color: #ff0000;\">\"REPORT.CH\"</span><br /><br /><span style=\"color: #B900B9;\">//---------- theme constants</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarThemeOffice2000 <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarThemeOfficeXP <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarThemeOffice2003 <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarThemeOffice2007 <span style=\"color: #000000;\">3</span><br /><br /><span style=\"color: #B900B9;\">//----------- views</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarDayView <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarWorkWeekView <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarWeekView <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarMonthView <span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarFullWeekView <span style=\"color: #000000;\">4</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarTimeLineView <span style=\"color: #000000;\">5</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarEO_Unknown <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">//Unknown operation value.</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarEO_DragCopy <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">//Drag copy event.</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarEO_DragMove <span style=\"color: #000000;\">2</span> <span style=\"color: #B900B9;\">//Drag move event.</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarEO_DragResizeBegin <span style=\"color: #000000;\">3</span> <span style=\"color: #B900B9;\">//Drag Resizing event begin.</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarEO_DragResizeEnd <span style=\"color: #000000;\">4</span> <span style=\"color: #B900B9;\">//Drag Resizing event end.</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarEO_EditSubject_ByF2 <span style=\"color: #000000;\">5</span> <span style=\"color: #B900B9;\">//In-place edit event by pressing F2 key.</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarEO_EditSubject_ByMouseClick <span style=\"color: #000000;\">6</span> <span style=\"color: #B900B9;\">//In-place edit event by mouse click.</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarEO_EditSubject_ByTab <span style=\"color: #000000;\">7</span> <span style=\"color: #B900B9;\">//In-place edit event tab key.</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarEO_EditSubject_AfterEventResize <span style=\"color: #000000;\">8</span> <span style=\"color: #B900B9;\">//In-place edit event after resizing an event.</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarEO_Cut <span style=\"color: #000000;\">9</span> <span style=\"color: #B900B9;\">//Cut events.</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarEO_Copy <span style=\"color: #000000;\">10</span> <span style=\"color: #B900B9;\">//Copy events.</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarEO_Paste <span style=\"color: #000000;\">11</span> <span style=\"color: #B900B9;\">//Paste event.</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarEO_DeleteSelectedEvents <span style=\"color: #000000;\">12</span> <span style=\"color: #B900B9;\">//Delete selected events.</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarEO_DeleteEvent <span style=\"color: #000000;\">13</span> <span style=\"color: #B900B9;\">//Delete event. Sent for a single event or for each selected event.</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpCalendarEO_InPlaceCreateEvent <span style=\"color: #000000;\">14</span> <span style=\"color: #B900B9;\">//In-place event creation.</span><br /><br />REQUEST DBFCDX,DBFFPT<br />REQUEST DESCEND<br />REQUEST ORDKeyno, ORDKeycount,ORDKEYGOTO<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">LOCAL</span> TPAR := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span>, ;<br /> I := <span style=\"color: #000000;\">0</span>, ;<br /> TSEL := <span style=\"color: #0000ff;\">SELECT</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, ;<br /> DDATE<br /><br /><span style=\"color: #00C800;\">PUBLIC</span> WDATE,AAMMJJ,JJMMAA<br /><br />RDDSETDEFAULT<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"DBFCDX\"</span><span style=\"color: #000000;\">)</span><br /><br />SET DATE FRENCH<br />SET CENTURY <span style=\"color: #0000ff;\">ON</span><br />SET FIXED <span style=\"color: #0000ff;\">ON</span><br />SET DELETE <span style=\"color: #0000ff;\">ON</span><br />SET DBFLOCKSCHEME <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #B900B9;\">// clp53</span><br />SET AUTOPEN <span style=\"color: #0000ff;\">ON</span><br />SET STRICTREAD OFF <span style=\"color: #B900B9;\">// pour accélérer la réorg dbfcdx</span><br /><br />set<span style=\"color: #000000;\">(</span>_SET_INSERT, .T.<span style=\"color: #000000;\">)</span><br /><br />SET EPOCH <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #0000ff;\">YEAR</span><span style=\"color: #000000;\">(</span>DATE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> - <span style=\"color: #000000;\">80</span><br /><br />WDATE := DTOC<span style=\"color: #000000;\">(</span>DATE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />JJMMAA := SUBS<span style=\"color: #000000;\">(</span>WDATE,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> + SUBS<span style=\"color: #000000;\">(</span>WDATE,<span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> + SUBS<span style=\"color: #000000;\">(</span>WDATE,<span style=\"color: #000000;\">7</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">)</span><br />AAMMJJ := SUBS<span style=\"color: #000000;\">(</span>WDATE,<span style=\"color: #000000;\">7</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">)</span> + SUBS<span style=\"color: #000000;\">(</span>WDATE,<span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> + SUBS<span style=\"color: #000000;\">(</span>WDATE,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span><br /><br />CREPLANTAB<span style=\"color: #000000;\">(</span>@TPAR<span style=\"color: #000000;\">)</span><br />DDATE := CTOD<span style=\"color: #000000;\">(</span>TRNDATE<span style=\"color: #000000;\">(</span>AAMMJJ<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">IF</span> ! NETOPEN<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"PLANPREF\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> OWND <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">24</span>,<span style=\"color: #000000;\">78</span> ;<br /> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"I am the main window\"</span> ;<br /> COLORS CLR_WHITE, CLR_WHITE<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> OBAR <span style=\"color: #0000ff;\">OF</span> Ownd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">80</span> <span style=\"color: #000000;\">2010</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> OBTN1 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"CODEJOCK\"</span> <span style=\"color: #0000ff;\">of</span> OBAR ;<br /> ToolTip <span style=\"color: #ff0000;\">\"CODEJOCK\"</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> TPLANCJ<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span>TPAR,DDATE<span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> OBTN2 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"EXIT\"</span> <span style=\"color: #0000ff;\">OF</span> OBAR;<br /> ToolTip <span style=\"color: #ff0000;\">\"EXIT\"</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">(</span> MSGYESNO<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Want to quit ?\"</span>,<span style=\"color: #ff0000;\">\"please confirmr\"</span> <span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">(</span>OWND:<span style=\"color: #000000;\">end</span> <span style=\"color: #000000;\">)</span> , <span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Quit\"</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> OWND <span style=\"color: #0000ff;\">MAXIMIZED</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> PLANCJ<span style=\"color: #000000;\">(</span>TPAR,DDATE<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">local</span> oApp,hWnd, ;<br /> TSEL := <span style=\"color: #0000ff;\">SELECT</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br />hWnd := FINDWINDOW<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"Planning Visuel\"</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 1 seule instance acceptée</span><br /><span style=\"color: #00C800;\">IF</span> hWnd != <span style=\"color: #000000;\">0</span><br /> BringWindowToTop<span style=\"color: #000000;\">(</span> hWnd <span style=\"color: #000000;\">)</span><br /> CLOSEWINDOW<span style=\"color: #000000;\">(</span>hWnd<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// fermer instance pour bien initialiser</span><br /> SENDMESSAGE<span style=\"color: #000000;\">(</span> hWnd, <span style=\"color: #000000;\">16</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Fais quitter</span><br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />oApp := TPLANCJ<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span>TPAR,DDATE,TSEL<span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><br /> <span style=\"color: #00C800;\">DATA</span> oWndPL<br /> <span style=\"color: #00C800;\">DATA</span> oBar<br /> <span style=\"color: #00C800;\">DATA</span> oDtPick<br /> <span style=\"color: #00C800;\">DATA</span> oCalex<br /> <span style=\"color: #00C800;\">DATA</span> oPanelCalex<br /> <span style=\"color: #00C800;\">DATA</span> oPanelDtp<br /> <span style=\"color: #00C800;\">DATA</span> oCalexStdDlgs<br /> <span style=\"color: #00C800;\">DATA</span> oGlbSettings<br /> <span style=\"color: #00C800;\">DATA</span> OCATEG <span style=\"color: #B900B9;\">// Table désignation libellés catégories pour assigner les couleurs</span><br /> <span style=\"color: #00C800;\">DATA</span> ORAPMIN <span style=\"color: #B900B9;\">// Table rappel minutes</span><br /> <span style=\"color: #00C800;\">DATA</span> MENOUTILS <span style=\"color: #B900B9;\">// MENU OUTILS</span><br /> <span style=\"color: #00C800;\">DATA</span> MENPRINT <span style=\"color: #B900B9;\">// MENU IMPRESSION</span><br /> <span style=\"color: #00C800;\">DATA</span> TPAR <span style=\"color: #B900B9;\">// TABLE DEPANNAGES</span><br /> <span style=\"color: #00C800;\">DATA</span> Oclientid <span style=\"color: #B900B9;\">// client's id unique set from ini file , 1 per client</span><br /> <span style=\"color: #00C800;\">DATA</span> lDoInsert <span style=\"color: #B900B9;\">// Flag for inserting new events : .F. for repeat objects</span><br /> <span style=\"color: #00C800;\">DATA</span> lviewafterinsert <span style=\"color: #B900B9;\">// Flag for allowing view appdetails when inserted default True</span><br /> <span style=\"color: #00C800;\">DATA</span> ONOTIFIED <span style=\"color: #B900B9;\">// ARRAY FOR ID EVENTS ADDED BY ANOTHER CLIENT AND ALREADY NOTIFIED SO WE DON'T ADD TWICE THE SAME EVENTS</span><br /> <span style=\"color: #00C800;\">DATA</span> lNOTIFy <span style=\"color: #B900B9;\">// TRUE (default) for notifications, false when called from notification updates (recursivity)</span><br /> <span style=\"color: #00C800;\">DATA</span> lCut <span style=\"color: #B900B9;\">// set when cut is asked at context menu</span><br /> <span style=\"color: #00C800;\">DATA</span> lPaste <span style=\"color: #B900B9;\">// set when Paste is asked at context menu</span><br /> <span style=\"color: #00C800;\">DATA</span> lCutcopyID <span style=\"color: #B900B9;\">// set when cut or Copy is asked at context menu id of the CUT event in order to allow database delete</span><br /> <span style=\"color: #00C800;\">DATA</span> lPastedid <span style=\"color: #B900B9;\">// New ID after Paste</span><br /> <span style=\"color: #00C800;\">DATA</span> lnbPers <span style=\"color: #B900B9;\">// Nombre de personnes à afficher</span><br /> <span style=\"color: #00C800;\">DATA</span> ltSel <span style=\"color: #B900B9;\">// SELECT FICHIER</span><br /><br /> <span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">METHOD</span> ApptDetail<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> BuildCalex<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> BuildDatePicker<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> BuildPanels<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> build1Schedule<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> build1grSchedule<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> buildMultiSchedule<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> BuildStdDialogs<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> DeleteEvent<span style=\"color: #000000;\">(</span> oEvent, cId <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> EditEvent<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> GETENDTIME<span style=\"color: #000000;\">(</span>OTIME<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> GetUniqueId<br /> <span style=\"color: #00C800;\">METHOD</span> handleEvent<span style=\"color: #000000;\">(</span> Event, aParms, pParams <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> Histrecur<span style=\"color: #000000;\">(</span>OEVENT,DREPETER,DREPOK,DMSG,OSAY<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> InsertEvent<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> NotifyClients<span style=\"color: #000000;\">(</span>lCodenotify<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> PLANMENU<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> PREFCALEX<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> RECURRAPPT<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> RetrieveDayEvents<span style=\"color: #000000;\">(</span> dtDate, oEvents <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> RetrieveDocinit<span style=\"color: #000000;\">(</span> dtDate, oEvents <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> SetSize<span style=\"color: #000000;\">(</span> nType, nWidth, nHeight <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> UpdatefromEvent<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> UpdatetoEvent<span style=\"color: #000000;\">(</span> oEvent<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> Updatetpar<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">ENDCLASS</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span>TPAR,DDATE,TSEL<span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">local</span> oSelf := <span style=\"color: #00C800;\">Self</span>, ;<br /> n := <span style=\"color: #000000;\">0</span>, ;<br /> cId := SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">)</span>, ;<br /> oMenu,oEvent,FICO<br /><br />::<span style=\"color: #000000;\">lTsel</span> := TSEL<br /><br />::<span style=\"color: #000000;\">lDoInsert</span> := .t. <span style=\"color: #B900B9;\">// Add event flag</span><br />::<span style=\"color: #000000;\">lviewafterinsert</span> := .t.<br />::<span style=\"color: #000000;\">lNotify</span> := .t.<br />::<span style=\"color: #000000;\">lcut</span> := .f.<br />::<span style=\"color: #000000;\">lPaste</span> := .f.<br />::<span style=\"color: #000000;\">lcutcopyid</span> := SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">)</span><br />::<span style=\"color: #000000;\">lPastedid</span> := SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">)</span><br />::<span style=\"color: #000000;\">OCATEG</span> := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br />::<span style=\"color: #000000;\">Oclientid</span> := <span style=\"color: #000000;\">01</span> <span style=\"color: #B900B9;\">// VAL(GETUSERNUM()) // Retreive the client userid from ini file , each terminal has a different id</span><br />::<span style=\"color: #000000;\">ONOTIFIED</span> := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// IniTIALIZE array for Notified events</span><br /><br /><span style=\"color: #00C800;\">IF</span> ! NETOPEN<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"PLANPREF\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">IF</span> DTOS<span style=\"color: #000000;\">(</span>TPAR<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">04</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span> = SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">)</span><br /> TPAR<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">04</span><span style=\"color: #000000;\">]</span> := CTOD<span style=\"color: #000000;\">(</span>WDATE<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />TPAR<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">31</span><span style=\"color: #000000;\">]</span> := .F. <span style=\"color: #B900B9;\">// Initialize</span><br />::<span style=\"color: #000000;\">TPAR</span> := TPAR<br /><br /><span style=\"color: #00C800;\">IF</span> LEN<span style=\"color: #000000;\">(</span>ALLTRIM<span style=\"color: #000000;\">(</span>::<span style=\"color: #000000;\">TPAR</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">17</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">0</span><br /> ::<span style=\"color: #000000;\">TPAR</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">17</span><span style=\"color: #000000;\">]</span> := ::<span style=\"color: #000000;\">TPAR</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">05</span><span style=\"color: #000000;\">]</span> <span style=\"color: #B900B9;\">// Nom du client</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />::<span style=\"color: #000000;\">ORAPMIN</span> := <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"0\"</span>, <span style=\"color: #ff0000;\">\"5\"</span>, <span style=\"color: #ff0000;\">\"10\"</span>, <span style=\"color: #ff0000;\">\"15\"</span>, <span style=\"color: #ff0000;\">\"30\"</span>, <span style=\"color: #ff0000;\">\"45\"</span>, <span style=\"color: #ff0000;\">\"60\"</span>, <span style=\"color: #ff0000;\">\"90\"</span>, <span style=\"color: #ff0000;\">\"120\"</span>, <span style=\"color: #ff0000;\">\"180\"</span>, <span style=\"color: #ff0000;\">\"240\"</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// Minutes reminder</span><br /><br /><span style=\"color: #0000ff;\">MENU</span> oMenu<br /><span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> ::<span style=\"color: #000000;\">oWndPL</span> <span style=\"color: #0000ff;\">MDI</span> <span style=\"color: #0000ff;\">MENU</span> oMenu <span style=\"color: #0000ff;\">Title</span> <span style=\"color: #ff0000;\">\"Planning Visuel\"</span> <span style=\"color: #0000ff;\">VSCROLL</span> <span style=\"color: #0000ff;\">HSCROLL</span> <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">800</span>, <span style=\"color: #000000;\">1150</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br /><span style=\"color: #00C800;\">IF</span> ! isActiveX<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Codejock.CalendarControl.15.0.2\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// fichier pas enregistré</span><br /> RegisterServer<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Codejock.Calendar.v15.0.2.ocx\"</span> <span style=\"color: #000000;\">)</span><br /> SYSREFRESH<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">MSGINFO</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Composant enregistré sur cet ordinateur\"</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">TRY</span><br /> ::<span style=\"color: #000000;\">oGlbSettings</span> := CreateObject<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Codejock.CalendarGlobalSettings.15.0.2\"</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oGlbSettings</span>:<span style=\"color: #000000;\">License</span> = <span style=\"color: #ff0000;\">\"Calendar Control Copyright (c) 2003-2011 Codejock Software\"</span> + CRLF + ;<br /> <span style=\"color: #ff0000;\">\"PRODUCT-ID: Codejock.Calendar.ActiveX.v15.0\"</span> + CRLF +<span style=\"color: #ff0000;\">\"VALIDATE-CODE: 000-000-000-000\"</span><br /> CATCH oErr<br /> MsgStop<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Section globalSettings inaccessible ! \"</span> <span style=\"color: #000000;\">)</span><br />END<br /><br />::<span style=\"color: #000000;\">oGlbSettings</span>:<span style=\"color: #000000;\">ResourceFile</span> = <span style=\"color: #ff0000;\">\"Calendar.ResourceFr.dll\"</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> ::<span style=\"color: #000000;\">oBar</span> <span style=\"color: #0000ff;\">OF</span> ::<span style=\"color: #000000;\">oWndPL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">2010</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"PREF\"</span> <span style=\"color: #0000ff;\">OF</span> ::<span style=\"color: #000000;\">oBar</span> <span style=\"color: #0000ff;\">MENU</span> ::<span style=\"color: #000000;\">PLANMENU</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> ToolTip <span style=\"color: #ff0000;\">\"Préférences\"</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"EXIT\"</span> <span style=\"color: #0000ff;\">OF</span> ::<span style=\"color: #000000;\">oBar</span> ;<br /> <span style=\"color: #0000ff;\">Action</span> <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">(</span>::<span style=\"color: #000000;\">oWndPL</span> # <span style=\"color: #00C800;\">nil</span>,::<span style=\"color: #000000;\">oWndPL</span>:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">)</span> ToolTip <span style=\"color: #ff0000;\">\"Quitter\"</span><br /><br />::<span style=\"color: #000000;\">BuildPanels</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//two panels -left and right</span><br />::<span style=\"color: #000000;\">BuildCalex</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//CodeJock calendar on the right</span><br />::<span style=\"color: #000000;\">BuildDatePicker</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//CodeJock DatePicker on the left</span><br />::<span style=\"color: #000000;\">BuildStdDialogs</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">)</span><br /><br />WNDCENTER<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWndPL</span>:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> ::<span style=\"color: #000000;\">oWndPL</span> <span style=\"color: #0000ff;\">MAXIMIZED</span> ;<br /> <span style=\"color: #0000ff;\">ON</span> RESIZE oSelf:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">(</span> nSizeType, nWidth, nHeight <span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWndPL</span> := <span style=\"color: #00C800;\">nil</span> ,;<br /> ::<span style=\"color: #000000;\">TPAR</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">31</span><span style=\"color: #000000;\">]</span> := .T. ,;<br /> .T. <span style=\"color: #000000;\">)</span><br /><br />StopUntil<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">{</span> || ::<span style=\"color: #000000;\">TPAR</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">31</span><span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> PLANMENU<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #0000ff;\">MENU</span> ::<span style=\"color: #000000;\">MENOUTILS</span> <span style=\"color: #0000ff;\">POPUP</span> <span style=\"color: #000000;\">2010</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Préférences Générales\"</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> ::<span style=\"color: #000000;\">PREFCALEX</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #0000ff;\">ENDMENU</span><br /><span style=\"color: #00C800;\">RETURN</span> ::<span style=\"color: #000000;\">MENOUTILS</span><br /><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> handleEvent<span style=\"color: #000000;\">(</span> Event, aParms, pParams <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">LOCAL</span> opParms,oRes,oTime,cId,OEVENT<br /><span style=\"color: #00C800;\">if</span> valType<span style=\"color: #000000;\">(</span> Event <span style=\"color: #000000;\">)</span> == <span style=\"color: #ff0000;\">\"C\"</span><br /><br /> <span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">Case</span><br /><br /> <span style=\"color: #00C800;\">Case</span> Event == <span style=\"color: #ff0000;\">\"DoRetrieveDayEvents\"</span><br /> ::<span style=\"color: #000000;\">lDoInsert</span> := .f.<br /> ::<span style=\"color: #000000;\">RetrieveDayEvents</span><span style=\"color: #000000;\">(</span> aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aParms<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">lDoInsert</span> := .T. <span style=\"color: #B900B9;\">// Bypass the InsertEvent Method because we put the data in here.</span><br /><br /> <span style=\"color: #00C800;\">Case</span> Event == <span style=\"color: #ff0000;\">\"DblClick\"</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">ViewType</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> < xtpCalendarMonthView .OR. ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">ViewType</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> = xtpCalendarFullWeekView <span style=\"color: #B900B9;\">//day or week view only</span><br /> <span style=\"color: #00C800;\">IF</span> <span style=\"color: #000000;\">(</span> oEvent := ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">ActiveView</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">HitTest</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">ViewEvent</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> != <span style=\"color: #00C800;\">nil</span> <span style=\"color: #B900B9;\">// EVENEMENT EXISTANT</span><br /> oEvent := oEvent:<span style=\"color: #000000;\">Event</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">EditEvent</span><span style=\"color: #000000;\">(</span> oEvent<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Else</span> <span style=\"color: #B900B9;\">// new EVENt</span><br /> <span style=\"color: #B900B9;\">// oday := ::oCalex:ActiveView():HitTest():Viewday():date // EX 31/03/2011 type = date</span><br /> oTIME := ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">ActiveView</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">HitTest</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">HitDateTime</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// DATE time EX 31/03/2011 12.30.00.00</span><br /> ::<span style=\"color: #000000;\">lDoInsert</span> := .T. <span style=\"color: #B900B9;\">// Bypass the InsertEvent Method because we put the data in here.</span><br /> cid := ::<span style=\"color: #000000;\">getuniqueid</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oEvent := ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">DataProvider</span>:<span style=\"color: #000000;\">CreateEventex</span><span style=\"color: #000000;\">(</span>CID<span style=\"color: #000000;\">)</span><br /> oevent:<span style=\"color: #000000;\">customproperties</span>:_Property<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"id\"</span>,CID<span style=\"color: #000000;\">)</span><br /><br /> oevent:<span style=\"color: #000000;\">StartTime</span> := oTIME<br /> oevent:<span style=\"color: #000000;\">EndTime</span> := ::<span style=\"color: #000000;\">GETENDTIME</span><span style=\"color: #000000;\">(</span>oTIME<span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">IF</span> PLANPREF->MULTIPERS<br /> ORES = ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">MultipleResources</span>:<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span>::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">ActiveView</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Selection</span>:<span style=\"color: #000000;\">GroupIndex</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">IF</span> ORES:<span style=\"color: #000000;\">SCHEDULEIDS</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #0000ff;\">COUNT</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// scheduleid for 1 person else it will be a group of persons and we need to add a function to retreive the id wanted</span><br /> oEvent:<span style=\"color: #000000;\">Scheduleid</span> := ORES:<span style=\"color: #000000;\">SCHEDULEIDS</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">item</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> ::<span style=\"color: #000000;\">InsertEvent</span><span style=\"color: #000000;\">(</span> oEvent<span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">lDoInsert</span> := .f.<br /> ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">DataProvider</span>:<span style=\"color: #000000;\">AddEvent</span><span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">lDoInsert</span> := .f.<br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"BeforeEditOperation\"</span> <span style=\"color: #B900B9;\">// occurs before insertevent</span><br /> OpParms := aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span><br /> <span style=\"color: #B900B9;\">// OpParms:EventViews:ViewEvent( 0 ) = oevent</span><br /><br /> <span style=\"color: #B900B9;\">// aparms[ 1 ] holds a pointer to CalendarEditOperationParameters object.</span><br /> <span style=\"color: #B900B9;\">// This object is referred to as opParms on documentation.</span><br /> <span style=\"color: #B900B9;\">// OpParms:Operation is the edit operation taking place from Enumeration list</span><br /> <span style=\"color: #B900B9;\">// OpParms:EventViews is an Object acting as an array with all event objects</span><br /> <span style=\"color: #B900B9;\">// marked for editing on the calendar control.</span><br /> <span style=\"color: #B900B9;\">// OpParms:EventViews:Count() length of the array</span><br /> <span style=\"color: #B900B9;\">// OpParms:EventViews:ViewEvent( n ) returns the nth event in EventViews.</span><br /> <span style=\"color: #B900B9;\">// aparms[ 2 ] sent by ref to inform .t. to cancel the operation of .f. to allow it.</span><br /><br /> <span style=\"color: #00C800;\">if</span> OpParms:<span style=\"color: #000000;\">Operation</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> == xtpCalendarEO_EditSubject_ByF2<br /> aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> := .T.<br /><br /> <span style=\"color: #00C800;\">if</span> OpParms:<span style=\"color: #000000;\">EventViews</span>:<span style=\"color: #0000ff;\">Count</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> > <span style=\"color: #000000;\">0</span><br /> ::<span style=\"color: #000000;\">EditEvent</span><span style=\"color: #000000;\">(</span> OpParms:<span style=\"color: #000000;\">EventViews</span>:<span style=\"color: #000000;\">ViewEvent</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">IF</span> OpParms:<span style=\"color: #000000;\">Operation</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> == xtpCalendarEO_DeleteEvent <span style=\"color: #B900B9;\">// Intercepté avant delete !!! pouvoir inverser delete, comment ???</span><br /><span style=\"color: #B900B9;\">// msginfo(\"DELETE\")</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"DoCreateEvent\"</span> <span style=\"color: #B900B9;\">// \"EventAddedEx\"</span><br /> <span style=\"color: #00C800;\">IF</span> ::<span style=\"color: #000000;\">lDoInsert</span><br /> ::<span style=\"color: #000000;\">InsertEvent</span><span style=\"color: #000000;\">(</span> aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, @aParms<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span>, @aParms<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// oEvent, nId, lResult</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"DoUpdateEvent\"</span> .and. aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"id\"</span> <span style=\"color: #000000;\">)</span> != <span style=\"color: #00C800;\">Nil</span><br /> ::<span style=\"color: #000000;\">UpdatefromEvent</span><span style=\"color: #000000;\">(</span> aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"DoDeleteEvent\"</span> .and. aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"id\"</span> <span style=\"color: #000000;\">)</span> != <span style=\"color: #00C800;\">Nil</span><br /> <span style=\"color: #B900B9;\">// ::oCalex:ActiveView():UNDO()</span><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"EventDeletedEx\"</span> .and. aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"id\"</span> <span style=\"color: #000000;\">)</span> != <span style=\"color: #00C800;\">Nil</span><br /> <span style=\"color: #B900B9;\">// ::DeleteEvent( aParms[ 1 ] ) // delete from ::appdetail and prompt for delete more secure</span><br /> <span style=\"color: #00C800;\">Case</span> Event == <span style=\"color: #ff0000;\">\"MouseMove\"</span> .OR. Event == <span style=\"color: #ff0000;\">\"MouseDown\"</span> <span style=\"color: #B900B9;\">// aParms[ 3] = x , aParms[ 4] = y</span><br /> <span style=\"color: #00C800;\">IF</span> aParms<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> = <span style=\"color: #000000;\">2</span> <span style=\"color: #B900B9;\">// 1 = left click , 2 = right click</span><br /> <span style=\"color: #00C800;\">IF</span> ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">ViewType</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> < xtpCalendarMonthView .OR. ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">ViewType</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> = xtpCalendarFullWeekView <span style=\"color: #B900B9;\">//day or week view only</span><br /> cId := SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">)</span><br /> oEvent := ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">ActiveView</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">HitTest</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">ViewEvent</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">IF</span> oEvent # <span style=\"color: #00C800;\">nil</span><br /> oEvent := oEvent:<span style=\"color: #000000;\">Event</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> CID := oEvent:<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"id\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">Case</span> Event == <span style=\"color: #ff0000;\">\"MouseDown\"</span><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"KeyDown\"</span><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"IsEditOperationDisabled\"</span><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"IsEditOperationDisabledV\"</span><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"SelectionChanged\"</span><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"PrePopulate\"</span><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"PrePopulateDay\"</span><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"ViewChanged\"</span><br /> <span style=\"color: #00C800;\">case</span> Event == <span style=\"color: #ff0000;\">\"OptionsChanged\"</span><br /> End<br /><span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> GETENDTIME<span style=\"color: #000000;\">(</span>OTIME<span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ <span style=\"color: #B900B9;\">// DATE time EX 31/03/2011 12.30.00.00</span><br /><span style=\"color: #00C800;\">LOCAL</span> ONEWTIME,CDATE, ;<br /> CTIME := SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">)</span>, ;<br /> CMIN := <span style=\"color: #ff0000;\">\" \"</span>, ;<br /> CHRS := <span style=\"color: #ff0000;\">\" \"</span> , ;<br /> CWORK := <span style=\"color: #000000;\">0</span><br /><br />cDate := StoD<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">(</span> TtoS<span style=\"color: #000000;\">(</span> OTime <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />cTime := <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">(</span> TtoS<span style=\"color: #000000;\">(</span> OTime <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">)</span><br />CMIN := STRTRAN<span style=\"color: #000000;\">(</span><span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">(</span> cTime, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>,<span style=\"color: #ff0000;\">\" \"</span>,<span style=\"color: #ff0000;\">\"0\"</span><span style=\"color: #000000;\">)</span><br />CHRS := <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">(</span> cTime, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span><br />CWORK := VAL<span style=\"color: #000000;\">(</span>CMIN<span style=\"color: #000000;\">)</span> + PLANPREF->MINUTES<br /><br /><span style=\"color: #00C800;\">IF</span> CWORK >= <span style=\"color: #000000;\">60</span><br /> CWORK -= <span style=\"color: #000000;\">60</span><br /> CMIN := STR<span style=\"color: #000000;\">(</span>CWORK,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span><br /> CWORK := VAL<span style=\"color: #000000;\">(</span>CHRS<span style=\"color: #000000;\">)</span> + <span style=\"color: #000000;\">1</span><br /> CHRS := STR<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>VAL<span style=\"color: #000000;\">(</span>CHRS<span style=\"color: #000000;\">)</span> + <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> CMIN := STRTRAN<span style=\"color: #000000;\">(</span><span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">(</span> cTime, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>,<span style=\"color: #ff0000;\">\" \"</span>,<span style=\"color: #ff0000;\">\"0\"</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">ENDIF</span><br />cTime := cHRS + CMIN + <span style=\"color: #ff0000;\">\"00\"</span><br />Onewtime := StoT<span style=\"color: #000000;\">(</span> DTOS<span style=\"color: #000000;\">(</span>cDate<span style=\"color: #000000;\">)</span> + cTime <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">RETURN</span> ONEWTIME<br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> InsertEvent<span style=\"color: #000000;\">(</span> oEvent, nId, lResult <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">LOCAL</span> CID := ::<span style=\"color: #000000;\">GetUniqueId</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">Return</span> oEvent<br /><br /><span style=\"color: #00C800;\">METHOD</span> EditEvent<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">Local</span> cid := oEvent:<span style=\"color: #000000;\">CustomProperties</span>:<span style=\"color: #000000;\">Property</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"id\"</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> UpdatetoEvent<span style=\"color: #000000;\">(</span> oEvent<span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> UpdatefromEvent<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><br /><span style=\"color: #00C800;\">return</span> oEvent<br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> DeleteEvent<span style=\"color: #000000;\">(</span> oEvent,LId <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">return</span> oEvent<br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> retrieveDayEvents<span style=\"color: #000000;\">(</span> dtDate, oEvents<span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br />Retur <span style=\"color: #00C800;\">Nil</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> BuildCalex<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">local</span> oErr<br /><span style=\"color: #00C800;\">LOCAL</span> objResource, pRCDesc, n<br /><span style=\"color: #00C800;\">Local</span> cfile<br /><br /><span style=\"color: #00C800;\">TRY</span><br /> ::<span style=\"color: #000000;\">oCalex</span> := tActiveX<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oPanelCalex</span>, <span style=\"color: #ff0000;\">\"Codejock.CalendarControl.15.0.2\"</span> <span style=\"color: #000000;\">)</span><br /> CATCH oErr<br /> MsgStop<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Installation Composant OCX manquante\"</span>, <span style=\"color: #ff0000;\">\"Abandon\"</span> <span style=\"color: #000000;\">)</span><br /> Quit<br />END<br /><br />with object ::<span style=\"color: #000000;\">oCalex</span><br /><br /> :<span style=\"color: #000000;\">VisualTheme</span> = <span style=\"color: #000000;\">(</span> xtpCalendarThemeOffice2007 <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">bOnEvent</span> = <span style=\"color: #000000;\">{</span> | event, aParms, pParams | ::<span style=\"color: #000000;\">handleEvent</span><span style=\"color: #000000;\">(</span> Event, aParms, pParams <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> :<span style=\"color: #000000;\">SetDataProvider</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Provider=custom\"</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> ! :<span style=\"color: #000000;\">DataProvider</span>:<span style=\"color: #000000;\">open</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">DataProvider</span>:<span style=\"color: #000000;\">Create</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> :<span style=\"color: #000000;\">ShowCaptionBar</span> = <span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">ShowCaptionBarSwitchViewButtons</span> = <span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//switch from day, week, month view on capbar</span><br /> :<span style=\"color: #000000;\">ShowTimelineButton</span> = <span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">TimeLineView</span>:<span style=\"color: #000000;\">BackgroundColor</span> := <span style=\"color: #000000;\">(</span> RGB<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">176</span>, <span style=\"color: #000000;\">216</span>, <span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">TimeLineView</span>:<span style=\"color: #000000;\">SeparateGroup</span> := <span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">MarkupEnabled</span> := <span style=\"color: #000000;\">(</span> .T. <span style=\"color: #000000;\">)</span><br /><br /> :<span style=\"color: #000000;\">ShowCaptionBarDateLabel</span> = <span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">ShowCaptionBarScrollDateButtons</span> = <span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">TimeScaleMinTime</span> := <span style=\"color: #000000;\">(</span> SUBS<span style=\"color: #000000;\">(</span>PLANPREF->HDEBUT,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\":\"</span> + SUBS<span style=\"color: #000000;\">(</span>PLANPREF->HDEBUT,<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\":00\"</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">TimeScaleMaxTime</span> := <span style=\"color: #000000;\">(</span> SUBS<span style=\"color: #000000;\">(</span>PLANPREF->HFIN,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\":\"</span> + SUBS<span style=\"color: #000000;\">(</span>PLANPREF->HFIN,<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\":00\"</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">TimeScale</span> := <span style=\"color: #000000;\">(</span> PLANPREF->MINUTES <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">Showday</span><span style=\"color: #000000;\">(</span>::<span style=\"color: #000000;\">TPAR</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">04</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">Options</span>:<span style=\"color: #000000;\">DayViewTimeScaleShowMinutes</span> = <span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /><br /> :<span style=\"color: #000000;\">OneLineCaptionBar</span> := <span style=\"color: #000000;\">(</span>.t.<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//captionbar defaults to two lines eating up too much space.</span><br /> :<span style=\"color: #000000;\">EnableToolTips</span><span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /><br /> :<span style=\"color: #000000;\">MonthView</span>:<span style=\"color: #000000;\">DayHeaderFormatShort</span> := <span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"d\"</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">MonthView</span>:<span style=\"color: #000000;\">DayHeaderFormatMiddle</span> := <span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"ddd, dd MMM yy\"</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">MonthView</span>:<span style=\"color: #000000;\">DayHeaderFormatLong</span> := <span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"ddd, dd MMMM yyyy\"</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">MonthView</span>:<span style=\"color: #000000;\">DayHeaderFormatShortest</span> := <span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"d\"</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">SetLongDayHeaderFormat</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"ddd, dd MMMM\"</span><span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">WeekView</span>:<span style=\"color: #000000;\">DayHeaderFormatLong</span> = <span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"ddd, dd MMMM\"</span> <span style=\"color: #000000;\">)</span><br /><br /> :<span style=\"color: #000000;\">Options</span>:<span style=\"color: #000000;\">MonthViewShowEndDate</span> := <span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">Options</span>:<span style=\"color: #000000;\">MonthViewShowTimeAsClocks</span> := <span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">Options</span>:<span style=\"color: #000000;\">MonthViewCompressWeekendDays</span> := <span style=\"color: #000000;\">(</span> .t.<span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">SwitchToDayViewIfPickedSingleDay</span> := <span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">EnableReminders</span><span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">Options</span>:<span style=\"color: #000000;\">EnableInPlaceCreateEvent</span> := <span style=\"color: #000000;\">(</span>.f.<span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">Options</span>:<span style=\"color: #000000;\">EnableInPlaceEditEventSubject_ByMouseClick</span> := <span style=\"color: #000000;\">(</span>.f.<span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">IF</span> SUBS<span style=\"color: #000000;\">(</span>PLANPREF->PARAM,<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> = <span style=\"color: #ff0000;\">\"O\"</span><br /> ::<span style=\"color: #000000;\">OCALEX</span>:<span style=\"color: #000000;\">printoptions</span>:<span style=\"color: #000000;\">PrintDateHeader</span> = <span style=\"color: #000000;\">(</span>.T.<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> ::<span style=\"color: #000000;\">OCALEX</span>:<span style=\"color: #000000;\">printoptions</span>:<span style=\"color: #000000;\">PrintDateHeader</span> = <span style=\"color: #000000;\">(</span>.F.<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> <span style=\"color: #00C800;\">IF</span> VAL<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>PLANPREF->PARAM,<span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> > <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// NOMBRE DE PIXELS MINIMUM PAR CELLULE</span><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">MinColumnWidth</span> = <span style=\"color: #000000;\">(</span>VAL<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>PLANPREF->PARAM,<span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> :<span style=\"color: #000000;\">UseMultiColumnWeekMode</span> = <span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /><br /> :<span style=\"color: #000000;\">ViewType</span> = <span style=\"color: #000000;\">(</span>PLANPREF->VUEDEBUT<span style=\"color: #000000;\">)</span><br />end<br /><br />::<span style=\"color: #000000;\">oPanelCalex</span>:<span style=\"color: #000000;\">oClient</span> = ::<span style=\"color: #000000;\">oCalex</span><br /><br />::<span style=\"color: #000000;\">buildMultiSchedule</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> buildMultiSchedule<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">local</span> objResources, oSchedules ,oRes1, ;<br /> oRes := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span> , ;<br /> n := <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> build1Schedule<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> build1grSchedule<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> BuildDatePicker<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">local</span> oErr<br /><span style=\"color: #00C800;\">TRY</span><br /> ::<span style=\"color: #000000;\">oDtPick</span> := tActiveX<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oPaneldtp</span>,<span style=\"color: #ff0000;\">\"Codejock.DatePicker.15.0.2\"</span> <span style=\"color: #000000;\">)</span><br /><br /> With Object ::<span style=\"color: #000000;\">oDtPick</span><br /> :<span style=\"color: #000000;\">Enabled</span> = <span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">ShowWeekNumbers</span> := <span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">MaxSelectionCount</span> := <span style=\"color: #000000;\">7</span><br /> :<span style=\"color: #000000;\">VisualTheme</span> := <span style=\"color: #000000;\">(</span> xtpCalendarThemeOffice2007 <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">AttachToCalendar</span><span style=\"color: #000000;\">(</span> TOleAuto<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">oOleAuto</span>:__hObj <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #B900B9;\">//:ShowTodayButton(.f.)</span><br /> :<span style=\"color: #000000;\">ShowNoneButton</span> := <span style=\"color: #000000;\">(</span>.f.<span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">TextTodayButton</span> := <span style=\"color: #ff0000;\">\"Aujourd'hui\"</span><br /> <span style=\"color: #B900B9;\">//CalendarControl.CaptionButtonTitle 6, \"Hello\"</span><br /> End<br /> ::<span style=\"color: #000000;\">oPaneldtp</span>:<span style=\"color: #000000;\">oClient</span> := ::<span style=\"color: #000000;\">oDtPick</span><br /> CATCH oErr<br />END<br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> BuildPanels<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">local</span> nHeight := ::<span style=\"color: #000000;\">oWndPL</span>:<span style=\"color: #000000;\">nHeight</span>, ;<br /> nDepl := <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #00C800;\">IF</span> ::<span style=\"color: #000000;\">OWNDPL</span>:<span style=\"color: #000000;\">nHorzRes</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> > <span style=\"color: #000000;\">1600</span><br /> ndepl := <span style=\"color: #000000;\">30</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />::<span style=\"color: #000000;\">oPanelCalex</span> = TPanel<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">175</span> + ndepl, nHeight, ::<span style=\"color: #000000;\">oWndPL</span>:<span style=\"color: #000000;\">nWidth</span>, ::<span style=\"color: #000000;\">oWndPL</span>:<span style=\"color: #000000;\">oWndClient</span> <span style=\"color: #000000;\">)</span><br />::<span style=\"color: #000000;\">oPaneldtp</span> = TPanel<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">(</span>nHeight<span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">oPanelCalex</span>:<span style=\"color: #000000;\">nLeft</span>, ::<span style=\"color: #000000;\">oWndPL</span>:<span style=\"color: #000000;\">oWndClient</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------//</span><br /><span style=\"color: #00C800;\">METHOD</span> BuildStdDialogs<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">local</span> oErr<br /><span style=\"color: #00C800;\">TRY</span><br /> ::<span style=\"color: #000000;\">oCalexStdDlgs</span> := CreateObject<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Codejock.CalendarDialogs.15.0.2\"</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oCalexStdDlgs</span>:<span style=\"color: #000000;\">Calendar</span> = TOleAuto<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">oOleAuto</span>:__hObj <span style=\"color: #000000;\">)</span><br /><br /> ::<span style=\"color: #000000;\">oCalexStdDlgs</span>:<span style=\"color: #000000;\">RemindersWindowShowInTaskBar</span> = .t.<br /> ::<span style=\"color: #000000;\">oCalexStdDlgs</span>:<span style=\"color: #000000;\">CreateRemindersWindow</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> CATCH oErr<br /> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Manque composants dialogues Standard\"</span><span style=\"color: #000000;\">)</span><br />END<br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> SetSize<span style=\"color: #000000;\">(</span> nType, nWidth, nHeight <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">if</span> nWidth != <span style=\"color: #00C800;\">nil</span><br /> nHeight -= <span style=\"color: #000000;\">60</span><br /> ::<span style=\"color: #000000;\">oPaneldtp</span>:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> , , , nHeight <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oPanelCalex</span>:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> , , nWidth - ::<span style=\"color: #000000;\">oPaneldtp</span>:<span style=\"color: #000000;\">nRight</span>, nHeight <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /><br />*-------------------------------------------------------------------------------------------------------------------------------<br /><span style=\"color: #00C800;\">METHOD</span> GetUniqueId <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">LOCAL</span> CID := SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">)</span> , ;<br /> NUID := <span style=\"color: #000000;\">0</span>, ;<br /> TSEL := <span style=\"color: #0000ff;\">SELECT</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br />LOCKENR<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"PLANPREF\"</span><span style=\"color: #000000;\">)</span><br />PLANPREF->SEQID++<br />PLANPREF-><span style=\"color: #000000;\">(</span>DBUNLOCK<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />NUID := PLANPREF->SEQID<br /><br />cId := <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">(</span> STR<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1000000000000</span> + NUID , <span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #0000ff;\">SELECT</span><span style=\"color: #000000;\">(</span>TSEL<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">(</span> cId <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> UpDATETPAR<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> NotifyClients<span style=\"color: #000000;\">(</span>lCodenotify<span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> ApptDetail<span style=\"color: #000000;\">(</span> oEvent <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> GETCOLORTACHE<span style=\"color: #000000;\">(</span>ITACHE,TOBJ,DCOLOR,ICOLOR<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> RetrieveDocinit<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> RECURRAPPT<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> HISTRECUR<span style=\"color: #000000;\">(</span>OEVENT,DREPETER,DREPOK,DMSG,OSAY<span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> PREFCALEX<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TPLANCJ<br /><span style=\"color: #00C800;\">LOCAL</span> LSAVE := .F., ;<br /> DHDEB := SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">04</span><span style=\"color: #000000;\">)</span>, ;<br /> DHFIN := SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">04</span><span style=\"color: #000000;\">)</span>, ;<br /> DMINUTES := <span style=\"color: #000000;\">0</span>, ;<br /> DHDEBI := SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">04</span><span style=\"color: #000000;\">)</span>, ;<br /> DIMAGE := SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">04</span><span style=\"color: #000000;\">)</span>, ;<br /> DHFINI := SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">04</span><span style=\"color: #000000;\">)</span>, ;<br /> DMINUTESI := <span style=\"color: #000000;\">0</span>, ;<br /> DPIXELS := <span style=\"color: #000000;\">0</span>, ;<br /> OITEM := <span style=\"color: #000000;\">0</span>, ;<br /> OITEMI := <span style=\"color: #000000;\">0</span>, ;<br /> DMULTI := .F., ;<br /> OCHK1 := .F., ;<br /> OCHK2 := .F., ;<br /> OCHK3 := .F., ;<br /> DGROUPE := .F., ;<br /> DENC := .F. , ;<br /> TABIMAGE := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span>, ;<br /> DHIMP := <span style=\"color: #000000;\">0</span>, ;<br /> DLIMP := <span style=\"color: #000000;\">0</span>, ;<br /> ADRBMP1 := <span style=\"color: #000000;\">0</span>, ;<br /> ODLG,OBJ1,OBJ2,ORAD,OSAY<br /><br />::<span style=\"color: #000000;\">Oclientid</span> := <span style=\"color: #000000;\">01</span> <span style=\"color: #B900B9;\">// VAL(GETUSERNUM()) // Retreive the client userid from ini file , each terminal has a different id</span><br /><br /><span style=\"color: #00C800;\">IF</span> ! NETOPEN<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"PLANPREF\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><span style=\"color: #00C800;\">ENDIF</span><br />DHDEB := PLANPREF->HDEBUT<br />DHFIN := PLANPREF->HFIN<br />DMINUTES := PLANPREF->MINUTES<br />DHDEBI := PLANPREF->HDEBUT<br />DHFINI := PLANPREF->HFIN<br />DMINUTESI := PLANPREF->MINUTES<br />DMULTI := PLANPREF->MULTIPERS<br />DGROUPE := PLANPREF->GROUPPERS <span style=\"color: #B900B9;\">// Regrouper le personnel en groupes</span><br />OITEM := PLANPREF->VUEDEBUT + <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// Vue démarre de 0 à 3</span><br />OITEMI := OITEM<br /><br />OCHK1 := TRNLOG<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>PLANPREF->PARAM,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Reporter la désignation de la tache Planning dans fiche Intervention</span><br />OCHK2 := TRNLOG<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>PLANPREF->PARAM,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Reporter la désignation de la tache Planning dans la Case Commentaires</span><br />OCHK3 := TRNLOG<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>PLANPREF->PARAM,<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Ne pas imprimer calendrier avec les documents</span><br />DPIXELS := VAL<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>PLANPREF->PARAM,<span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// NOMBRE DE PIXELS MINIMUM PAR CELLULE</span><br />DHIMP := VAL<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>PLANPREF->PARAM,<span style=\"color: #000000;\">9</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">100</span> <span style=\"color: #B900B9;\">// Hauteur Impression logo</span><br />DLIMP := VAL<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>PLANPREF->PARAM,<span style=\"color: #000000;\">13</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">100</span> <span style=\"color: #B900B9;\">// Largeur Impression logo</span><br />DENC := TRNLOG<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>PLANPREF->PARAM,<span style=\"color: #000000;\">17</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Encadrer Fiche impression</span><br />ADRBMP1 := VAL<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>PLANPREF->PARAM,<span style=\"color: #000000;\">18</span>,<span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Adresse image logo</span><br /><br /><span style=\"color: #B900B9;\">/*<br />IF ! NETOPEN(\"DEVIMAGE\",,5,\"IMA\")<br /> RETURN NIL<br />ENDIF<br />SET INDEX TO DEVIMAGE<br /><br />INITIMAGE(@TABIMAGE)<br />TABIMAGE[01] := ADRBMP1<br />TABIMAGE[10] := .T.<br />LOADTIMA(@TABIMAGE)<br />*/</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> ODLG <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"PREFPLAN\"</span> <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK,COULDLG<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"TD\"</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// TRANSPARENT</span><br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> DHDEB <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">201</span> <span style=\"color: #0000ff;\">OF</span> ODLG<br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> DHFIN <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">202</span> <span style=\"color: #0000ff;\">OF</span> ODLG<br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> DMINUTES <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">203</span> <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@Z 999\"</span> <span style=\"color: #0000ff;\">VALID</span><span style=\"color: #000000;\">(</span>DMINUTES > <span style=\"color: #000000;\">0</span> .AND. DMINUTES < <span style=\"color: #000000;\">240</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">CHECKBOX</span> DMULTI <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">204</span> <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #B900B9;\">// Planning MULTI PERSONNEL</span><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">RADIO</span> ORAD <span style=\"color: #0000ff;\">VAR</span> OITEM <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">205</span>,<span style=\"color: #000000;\">206</span>,<span style=\"color: #000000;\">207</span>,<span style=\"color: #000000;\">208</span> <span style=\"color: #0000ff;\">OF</span> ODLG<br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">CHECKBOX</span> OBJ1 <span style=\"color: #0000ff;\">VAR</span> OCHK1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">209</span> <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #B900B9;\">// reporter désignation tache planning dans fiche intervention</span><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">CHECKBOX</span> OBJ2 <span style=\"color: #0000ff;\">VAR</span> OCHK2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">210</span> <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #B900B9;\">// reporter tache planning dans commentaires</span><br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> ::<span style=\"color: #000000;\">Oclientid</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">211</span> <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@Z 999\"</span> READONLY <span style=\"color: #0000ff;\">COLOR</span> CLR_GREEN,COULDLG<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"TD\"</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">CHECKBOX</span> DGROUPE <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">212</span> <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #0000ff;\">COLOR</span> CLR_GREEN <span style=\"color: #0000ff;\">WHEN</span> DMULTI <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #B900B9;\">// Regrouper le personnel en groupes</span><br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">CHECKBOX</span> OCHK3 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">213</span> <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #B900B9;\">// Imprimer calendrier sur documents imprimés</span><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> DPIXELS <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">214</span> <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"99999\"</span> <span style=\"color: #B900B9;\">// Nombre de pixels minimum</span><br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> DIMAGE <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">215</span> <span style=\"color: #0000ff;\">OF</span> ODLG READONLY <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">COLOR</span> CLR_GREEN,CLR_WHITE<br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">CHECKBOX</span> DENC <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">216</span> <span style=\"color: #0000ff;\">OF</span> ODLG<br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> DHIMP <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">217</span> <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@Z 99.99\"</span><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> DLIMP <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">218</span> <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@Z 99.99\"</span><br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP BITMAP <span style=\"color: #ff0000;\">\"IMAGE.BMP\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">03</span> <span style=\"color: #0000ff;\">OF</span> ODLG ;<br /> ToolTip <span style=\"color: #ff0000;\">\"Associer une image\"</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1</span> = <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// VISUIMAGE(@TABIMAGE,\"Logo Haut de page\"),ODLG:UPDATE()</span><br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">01</span> <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span>LSAVE := .T., ODLG:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">02</span> <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span>LSAVE := .F., ODLG:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br />DEFSAY<span style=\"color: #000000;\">(</span>ODLG,<span style=\"color: #000000;\">401</span>,<span style=\"color: #000000;\">408</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> OSAY <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">409</span> <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #0000ff;\">COLOR</span> CLR_HRED,CLR_WHITE<br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> OSAY <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">410</span> <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #0000ff;\">COLOR</span> CLR_HRED,CLR_WHITE<br /><br />DEFSAY<span style=\"color: #000000;\">(</span>ODLG,<span style=\"color: #000000;\">411</span>,<span style=\"color: #000000;\">414</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> ODLG <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">IF</span> ! LSAVE<br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #B900B9;\">// CLOSEFIC(\"IMA\",\"DEVIMAGE\")</span><br /><br /><span style=\"color: #00C800;\">IF</span> VAL<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>DHDEB,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> > <span style=\"color: #000000;\">24</span> .OR. VAL<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>DHDEB,<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> > <span style=\"color: #000000;\">60</span><br /> MSGSTOP<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Heure début Erronée \"</span> + DHDEB + <span style=\"color: #ff0000;\">\" , valeur 0800 par défaut \"</span><span style=\"color: #000000;\">)</span><br /> DHDEB := <span style=\"color: #ff0000;\">\"0800\"</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">IF</span> VAL<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>DHFIN,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> > <span style=\"color: #000000;\">24</span> .OR. VAL<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>DHFIN,<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> > <span style=\"color: #000000;\">60</span><br /> MSGSTOP<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Heure Fin Erronée \"</span> + DHDEB + <span style=\"color: #ff0000;\">\" , valeur 1800 par défaut \"</span><span style=\"color: #000000;\">)</span><br /> DHFIN := <span style=\"color: #ff0000;\">\"1800\"</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />LOCKENR<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"PLANPREF\"</span><span style=\"color: #000000;\">)</span><br />PLANPREF->HDEBUT := DHDEB<br />PLANPREF->HFIN := DHFIN<br />PLANPREF->MINUTES := DMINUTES<br />PLANPREF->MULTIPERS := DMULTI<br />PLANPREF->GROUPPERS := DGROUPE<br />PLANPREF->VUEDEBUT := OITEM <span style=\"color: #000000;\">-1</span><br />PLANPREF->PARAM := LOGTRN<span style=\"color: #000000;\">(</span>OCHK1<span style=\"color: #000000;\">)</span> + LOGTRN<span style=\"color: #000000;\">(</span>OCHK2<span style=\"color: #000000;\">)</span> + LOGTRN<span style=\"color: #000000;\">(</span>OCHK3<span style=\"color: #000000;\">)</span> + STR<span style=\"color: #000000;\">(</span>DPIXELS,<span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">)</span> + STR<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>DHIMP * <span style=\"color: #000000;\">100</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">)</span> + STR<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>DLIMP * <span style=\"color: #000000;\">100</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">)</span> + LOGTRN<span style=\"color: #000000;\">(</span>DENC<span style=\"color: #000000;\">)</span> + ;<br /> SUBS<span style=\"color: #000000;\">(</span>PLANPREF->PARAM,<span style=\"color: #000000;\">23</span>,<span style=\"color: #000000;\">78</span><span style=\"color: #000000;\">)</span><br />PLANPREF-><span style=\"color: #000000;\">(</span>DBUNLOCK<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">IF</span> DHDEB = DHDEBI .AND. DHFIN = DHFINI .AND. DMINUTES = DMINUTESI .AND. OITEM = OITEMI<br /> <span style=\"color: #00C800;\">ELSE</span><br /> with object ::<span style=\"color: #000000;\">oCalex</span><br /> :<span style=\"color: #000000;\">ViewType</span> := PLANPREF->VUEDEBUT <span style=\"color: #B900B9;\">//:ViewType( xtpCalendarDayView )</span><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">TimeScaleMinTime</span> := <span style=\"color: #000000;\">(</span> SUBS<span style=\"color: #000000;\">(</span>PLANPREF->HDEBUT,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\":\"</span> + SUBS<span style=\"color: #000000;\">(</span>PLANPREF->HDEBUT,<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\":00\"</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">TimeScaleMaxTime</span> := <span style=\"color: #000000;\">(</span> SUBS<span style=\"color: #000000;\">(</span>PLANPREF->HFIN,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\":\"</span> + SUBS<span style=\"color: #000000;\">(</span>PLANPREF->HFIN,<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\":00\"</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">DayView</span>:<span style=\"color: #000000;\">TimeScale</span> := <span style=\"color: #000000;\">(</span> PLANPREF->MINUTES <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oCalex</span>:<span style=\"color: #000000;\">redrawcontrol</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> end<br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">IF</span> SUBS<span style=\"color: #000000;\">(</span>PLANPREF->PARAM,<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> = <span style=\"color: #ff0000;\">\"O\"</span><br /> ::<span style=\"color: #000000;\">OCALEX</span>:<span style=\"color: #000000;\">printoptions</span>:<span style=\"color: #000000;\">PrintDateHeader</span> = <span style=\"color: #000000;\">(</span>.T.<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> ::<span style=\"color: #000000;\">OCALEX</span>:<span style=\"color: #000000;\">printoptions</span>:<span style=\"color: #000000;\">PrintDateHeader</span> = <span style=\"color: #000000;\">(</span>.F.<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> RECHCLIPL<span style=\"color: #000000;\">(</span>DREFCLI,DNOM,ODLG,TOBJ<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> CREPLANTAB<span style=\"color: #000000;\">(</span>TPAR<span style=\"color: #000000;\">)</span><br />TPAR := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 01 = DREFCLI ID CLIENT</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 02 = Tache ID TACHE</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 03 = HEURE RDV</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,CTOD<span style=\"color: #000000;\">(</span>WDATE<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 04 = DATE RDV</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">60</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 05 = NOM DU CLIENT</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 06 = ID (AGPERS) OUVRIER->AGPERSID</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">30</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 07 = LIBELLE TACHE</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 08 = NUMERO CONTRAT ID</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 09 = NUMERO SITE ID</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 10 = NUMERO FEUILLE DEPANNAGE</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,.F.<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 11 = si TRUE quitte le planning dès selection cellule (APPEL PAR CTRDEPAN)</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 12 = ADRSITE</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 13 = NUMPRO</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 14 = ID DEPANNAGE SAVDEPAN</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 15 = CONTRAT</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 16 = ID SAVPVIS</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">80</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 17 = AFFICHAGE NOM CLIENT + VILLE</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,.F.<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 18 = TRUE = Nouveau dépannage, évite retour au dépannage (récursivité)</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR, <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 19 = TABSEC</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,.F.<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 20 = TRUE = Reporter libellé tache dépannage dans feuille intervention</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,.F.<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 21 = TRUE = Reporter libellé tache dépannage dans CASE COMMENTAIRES</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 22 = OBJ DTPICKER SAISIE AMONT PLANNING</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 23 = OBJ GET HEURE SAISIE AMONT PLANNING</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 24 = OBJ GET TEXTE DEPANNAGE SAISIE AMONT PLANNING</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 25 = OBJ combobox ouvrier DEPANNAGE SAISIE AMONT PLANNING</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 26 = OBJ combobox tache DEPANNAGE SAISIE AMONT PLANNING</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">01</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 27 = texte depannage</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 28 = INDICE COMBO OUVRIERS</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 29 = INDICE COMBO TACHES</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 30 = ID PLANPERS</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,.F.<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 31 = TRUE = on Quitte le planning</span><br />AADD<span style=\"color: #000000;\">(</span>TPAR,SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">05</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 32 = Masque heure affichée dans dépannages ex 09:30</span><br /><br /><span style=\"color: #00C800;\">IF</span> FILE<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"PLANPREF.DBF\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">IF</span> ! NETOPEN<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"PLANPREF\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> TPAR<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">]</span> := TRNLOG<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>PLANPREF->PARAM,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Reporter la désignation de la tache Planning dans fiche Intervention</span><br /> TPAR<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">21</span><span style=\"color: #000000;\">]</span> := TRNLOG<span style=\"color: #000000;\">(</span>SUBS<span style=\"color: #000000;\">(</span>PLANPREF->PARAM,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Reporter la désignation de la tache Planning dans la Case Commentaires</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> NETOPEN<span style=\"color: #000000;\">(</span> cFile, lMode, nSeconds, cAlias, lNewArea,cDriver, lReadOnly <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">local</span> nWaitTime, ;<br /> lContinue := .t., ;<br /> lSuccess := .f., ;<br /> TSEL := <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #00C800;\">DEFAULT</span> lMode := .f. <span style=\"color: #B900B9;\">// shared mode</span><br /><span style=\"color: #00C800;\">DEFAULT</span> nSeconds := <span style=\"color: #000000;\">3</span><br /><span style=\"color: #00C800;\">DEFAULT</span> cAlias := cFile<br /><span style=\"color: #00C800;\">DEFAULT</span> lNewArea := .t.<br /><span style=\"color: #00C800;\">DEFAULT</span> cDriver := <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br /><span style=\"color: #00C800;\">DEFAULT</span> lReadOnly := .f.<br />nWaitTime := nSeconds<br /><br /><span style=\"color: #00C800;\">IF</span> ! FILE<span style=\"color: #000000;\">(</span>CFILE<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">IF</span> ! FILE<span style=\"color: #000000;\">(</span> cFile + <span style=\"color: #ff0000;\">\".DBF\"</span> <span style=\"color: #000000;\">)</span><br /> MSGSTOP<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Fichier \"</span> + CFILE + <span style=\"color: #ff0000;\">\".DBF Absent\"</span><span style=\"color: #000000;\">)</span><br /> lContinue := .f.<br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">(</span>.F.<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">IF</span> CALIAS == <span style=\"color: #00C800;\">nil</span> <span style=\"color: #B900B9;\">// harbour bug</span><br /> CALIAS := ALLTRIM<span style=\"color: #000000;\">(</span>CFILE<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #B900B9;\">// Verifier que fichier pas deja ouvert</span><br /><span style=\"color: #B900B9;\">// Alors ouvrir dans meme zone</span><br /><br /><span style=\"color: #00C800;\">IF</span> <span style=\"color: #0000ff;\">SELECT</span><span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span> # <span style=\"color: #000000;\">0</span><br /> TSEL := <span style=\"color: #0000ff;\">SELECT</span><span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">SELECT</span><span style=\"color: #000000;\">(</span>TSEL<span style=\"color: #000000;\">)</span><br /> lContinue := .t.<br /> lNewArea := .f.<br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #B900B9;\">// verify driver is valid</span><br /><br /><span style=\"color: #00C800;\">if</span> ascan<span style=\"color: #000000;\">(</span> RddList<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, cDriver <span style=\"color: #000000;\">)</span> == <span style=\"color: #000000;\">0</span><br /> MSGSTOP<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Driver \"</span> + Cdriver + <span style=\"color: #ff0000;\">\" Absent\"</span><span style=\"color: #000000;\">)</span><br /> lContinue := .f.<br /><span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #B900B9;\">// while continuing to attempt open</span><br /><span style=\"color: #00C800;\">while</span> lContinue<br /> <span style=\"color: #B900B9;\">// while .not. timed-out</span><br /> <span style=\"color: #00C800;\">while</span> nSeconds > <span style=\"color: #000000;\">0</span> .and. lContinue<br /> dbUseArea<span style=\"color: #000000;\">(</span> lNewArea, Cdriver, cFile, cAlias, <span style=\"color: #000000;\">(</span> .not. lMode <span style=\"color: #000000;\">)</span>, lReadOnly <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #B900B9;\">// check for success/failure</span><br /> <span style=\"color: #00C800;\">IF</span> neterr<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> nSeconds--<br /> lSuccess := .F.<br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #B900B9;\">// open successful</span><br /> nSeconds := <span style=\"color: #000000;\">0</span><br /> lSuccess := .t.<br /> lContinue := .f.<br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">ENDDO</span><br /> <span style=\"color: #00C800;\">IF</span> ! lSuccess<br /> nSeconds := nWaitTime<br /> MSGSTOP<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Fichier \"</span> + CFILE + <span style=\"color: #ff0000;\">\" Ouvert par un autre utilisateur\"</span> + CRLF + CRLF + ;<br /> <span style=\"color: #ff0000;\">\"Veuillez impérativement refermer tous vos postes\"</span> + CRLF + ;<br /> <span style=\"color: #ff0000;\">\"avant de continuer\"</span><span style=\"color: #000000;\">)</span><br /> lSuccess := .F.<br /> lContinue := .T.<br /> lNewArea := .T.<br /> <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">ENDDO</span><br /><span style=\"color: #00C800;\">return</span> lSuccess<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> AJENR<span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span><br />DBSELECTAREA<span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">WHILE</span> .T.<br /> <span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span>DBAPPEND<span style=\"color: #000000;\">(</span>.F.<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">IF</span> ! <span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span>NETERR<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> EXIT<br /> <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">ENDDO</span><br />LOCKENR<span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> LOCKENR<span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span><br />DBSELECTAREA<span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">WHILE</span> .T.<br /> <span style=\"color: #00C800;\">IF</span> <span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span>DBRLOCK<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span>RECNO<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> EXIT<br /> <span style=\"color: #00C800;\">ELSE</span><br /> MSGSTOP<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Fichier \"</span> + <span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"Verrouillé\"</span> + CRLF + <span style=\"color: #ff0000;\">\"Attente déverrouillage\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">IF</span> MSGYESNO<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Voulez-vous forcer le fichier à être déverouillé ?\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span>DBUNLOCK<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">ENDDO</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> LOCKFIC<span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span><br />DBSELECTAREA<span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span>DBGOTOP<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> .T.<br /> <span style=\"color: #00C800;\">IF</span> <span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span>FLOCK<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> EXIT<br /> <span style=\"color: #00C800;\">ELSE</span><br /> MSGSTOP<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Fichier \"</span> + <span style=\"color: #000000;\">(</span>FALIAS<span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"Verrouillé\"</span> + CRLF + <span style=\"color: #ff0000;\">\"Attente déverrouillage\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">ENDDO</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> TRNLOG<span style=\"color: #000000;\">(</span>DVAL<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">IF</span> DVAL = <span style=\"color: #ff0000;\">\"O\"</span><br /> <span style=\"color: #00C800;\">RETURN</span> .T.<br /> <span style=\"color: #00C800;\">ELSE</span><br /> <span style=\"color: #00C800;\">RETURN</span> .F.<br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">RETURN</span> .F.<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> LOGTRN<span style=\"color: #000000;\">(</span>DVAL<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Transformation valeur logique en \"O\" ou \"N\"</span><br /><span style=\"color: #00C800;\">IF</span> DVAL<br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #ff0000;\">\"O\"</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #ff0000;\">\"N\"</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #ff0000;\">\" \"</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> TRNDATE<span style=\"color: #000000;\">(</span>DDATE,DSEP<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">IF</span> DSEP == <span style=\"color: #00C800;\">NIL</span><br /> DSEP := <span style=\"color: #ff0000;\">\".\"</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> DDATE # SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">08</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">RETURN</span> SUBS<span style=\"color: #000000;\">(</span>DDATE,<span style=\"color: #000000;\">7</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> + DSEP + SUBS<span style=\"color: #000000;\">(</span>DDATE,<span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> + DSEP + SUBS<span style=\"color: #000000;\">(</span>DDATE,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> <span style=\"color: #00C800;\">RETURN</span> SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> COULDLG<span style=\"color: #000000;\">(</span>DTYPE<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">LOCAL</span> DCOUL := <span style=\"color: #000000;\">0</span><br /><br />DTYPE := UPPER<span style=\"color: #000000;\">(</span>DTYPE<span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">//DCOUL := VAL(GetPvProfString(\"COULEUR\",DTYPE,,INILOGI() ) )</span><br /><span style=\"color: #B900B9;\">//IF DCOUL = 0 .AND. SUBS(DTYPE,2,1) = \"D\" // Uniquement pour les boites de dialogue</span><br /> DCOUL := nRgb<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">215</span>,<span style=\"color: #000000;\">235</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #B900B9;\">//ENDIF</span><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span>DCOUL<span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> DEFSAY<span style=\"color: #000000;\">(</span>ODLG,IDSDEB,IDSFIN,DFONT,DCOLOR<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">LOCAL</span> I := <span style=\"color: #000000;\">0</span>, ;<br /> TABSAY := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #00C800;\">IF</span> DCOLOR == <span style=\"color: #00C800;\">NIL</span><br /> DCOLOR := CLR_WHITE<br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">IF</span> IDSFIN == <span style=\"color: #00C800;\">NIL</span><br /> IDSFIN := IDSDEB<br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />I := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">WHILE</span> IDSDEB <= IDSFIN <span style=\"color: #B900B9;\">// Statics 500</span><br /> I++<br /> AADD<span style=\"color: #000000;\">(</span>TABSAY,<span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">IF</span> DFONT # <span style=\"color: #00C800;\">NIL</span><br /> <span style=\"color: #00C800;\">try</span><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> TABSAY<span style=\"color: #000000;\">[</span>I<span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">ID</span> IDSDEB <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #0000ff;\">FONT</span> DFONT <span style=\"color: #0000ff;\">COLOR</span> CLR_HBLUE,DCOLOR <span style=\"color: #B900B9;\">// TRANSPARENT ADJUST</span><br /> catch<br /> end<br /> <span style=\"color: #00C800;\">ELSE</span><br /> <span style=\"color: #00C800;\">try</span><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> TABSAY<span style=\"color: #000000;\">[</span>I<span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">ID</span> IDSDEB <span style=\"color: #0000ff;\">OF</span> ODLG <span style=\"color: #0000ff;\">COLOR</span> CLR_HBLUE,DCOLOR <span style=\"color: #B900B9;\">// TRANSPARENT ADJUST</span><br /> catch<br /> end<br /> <span style=\"color: #00C800;\">ENDIF</span><br /> IDSDEB++<br /><span style=\"color: #00C800;\">ENDDO</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /> </div>[/code:1l2a9t71]",
"time": "10:19",
"topic": "Codejock Calendar Samples?",
"username": "Antonio Linares"
}
] | Codejock Calendar Samples? |
[
{
"date": "2013-05-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Antonio.\nI have an error linking on this function RegisterServer( \"Codejock.Calendar.v15.0.2.ocx\" ) and there is no \"Calendar.ResourceFr.dll\" file on any Codejock folder.\nI temporary deleted it and now I'm trying to build the files, because there is no function that creates them.\nThanks a lot.\nMassimo.",
"time": "10:51",
"topic": "Codejock Calendar Samples?",
"username": "Massimo Linossi"
}
] | Codejock Calendar Samples? |
[
{
"date": "2013-05-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "RegisterServer() and UnRegisterServer() are in FWH/source/winapi/ocx.c so you should have them in your FWH\n\nComment out the line about the DLL, I think it is just for French language support.",
"time": "11:13",
"topic": "Codejock Calendar Samples?",
"username": "Antonio Linares"
}
] | Codejock Calendar Samples? |
[
{
"date": "2013-05-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello again Antonio.\nI give up the tests.\n\n:VisualTheme = ( xtpCalendarThemeOffice2007 ) Error in runtime\n:bOnEvent = { | event, aParms, pParams | ::handleEvent( Event, aParms, pParams ) }\n:SetDataProvider( \"Provider=custom\" ) Error in runtime\n\nI don't know if is a problem with Xharbour commercial, but in few days I'll start to convert all the enormous\napplication to your harbour. It's not possible that there is always something that is not working, and your\nexamples with your compiler are perfect.\n\nThanks a lot\nMassimo",
"time": "11:49",
"topic": "Codejock Calendar Samples?",
"username": "Massimo Linossi"
}
] | Codejock Calendar Samples? |
[
{
"date": "2013-05-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Massimo,\n\nThats a very clever desition <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nHarbour is simply great. xHarbour was usefull for pushing Harbour to evolve and improve. \n\nBut now there is no technical reason to continue using it.",
"time": "12:29",
"topic": "Codejock Calendar Samples?",
"username": "Antonio Linares"
}
] | Codejock Calendar Samples? |
[
{
"date": "2013-05-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":270z8o1s]Massimo,\n\nThats a very clever desition <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nHarbour is simply great. xHarbour was usefull for pushing Harbour to evolve and improve. \n\nBut now there is no technical reason to continue using it.[/quote:270z8o1s]\n\nI tried to use Harbour, you know. But I gave up due to the incompatibilities. As an example, HB_BACKGROUNDADD() function is not available in Harbour. <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( --> So, the technical reasons do exist. <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "13:17",
"topic": "Codejock Calendar Samples?",
"username": "Enrico Maria Giordano"
}
] | Codejock Calendar Samples? |
[
{
"date": "2013-05-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico,\n\nAre there any examples of use of function HB_BACKGROUNDADD() ? It looks to me as a threads manager.\n\nDo you use it on your apps ?",
"time": "14:56",
"topic": "Codejock Calendar Samples?",
"username": "Antonio Linares"
}
] | Codejock Calendar Samples? |
[
{
"date": "2013-05-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":1heqqf5h]Enrico,\n\nAre there any examples of use of function HB_BACKGROUNDADD() ? It looks to me as a threads manager.\n\nDo you use it on your apps ?[/quote:1heqqf5h]\n\nYes, I use it to let the system refresh some wait animations. This is the syntax:\n\n[code=fw:1heqqf5h]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">HB_BackGroundAdd<span style=\"color: #000000;\">(</span> <bAction>, <span style=\"color: #000000;\">[</span><nMillisecs><span style=\"color: #000000;\">]</span>, <span style=\"color: #000000;\">[</span><lActive><span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> --> nTaskHandle</div>[/code:1heqqf5h]\n\nEMG",
"time": "15:01",
"topic": "Codejock Calendar Samples?",
"username": "Enrico Maria Giordano"
}
] | Codejock Calendar Samples? |
[
{
"date": "2013-05-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico,\n\nCould you provide a small self contained example ? thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "16:12",
"topic": "Codejock Calendar Samples?",
"username": "Antonio Linares"
}
] | Codejock Calendar Samples? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.