在时间表中使用单独的WebPart输入时间 [英] Enter Time with a seperated WebPart in the timesheet

查看:73
本文介绍了在时间表中使用单独的WebPart输入时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我遇到了以下问题。我得到了一个激活了单一输入模式的时间表,无法以编程方式在时间表中输入时间。如果时间表因为被发送给管理员而被锁定,或者单一输入模式被取消激活,则可以通过编程方式将时间输入
到时间表中。

I got following problem. I got a timesheet with single entry mode activated and can't enter time in the timesheet programmatically. If the timesheet is locked because it was sended to the manager or the single entry mode is deactivated, the time can be entered programmatically into the timesheet.

必须考虑时间单一输入模式是否为时间表激活?使用以下代码,我尝试在时间表中写下我的时间:

Must something be considered when single entry mode is activated for the timesheet? With the following code I try to write my time in the timesheet:

阅读时间表:


timesheetDs = timeSheetSvc.ReadTimesheetByPeriod(myUid, periodUid, TimeSheetWebSvc.Navigation.Current);

推荐答案

您好,

我在SDK中找到了以下属性:TimesheetDataSet.StatusingChangeLog("获取时间表单一输入模式的状态数据更改日志。) )。尝试了以下代码,但时间表中的值未更新。

I found the following property in the SDK: TimesheetDataSet.StatusingChangeLog ("Gets the statusing data change log for the timesheet single entry mode."). Tried the following code, but the value in the timesheet gets not updated.

      TimesheetDataSet.StatusingChangeLogRow row = timesheetDs.StatusingChangeLog.NewStatusingChangeLogRow();
      row.PROJ_UID = projUid;
      row.ENTITY_TYPE = 7; //assigment data
      row.ENTITY_UID = GetAssnUid(); //entity GUID
      row.PID = 184549384; //Project work time unit
      row.VALUE = "2";  //value

      timesheetDs.StatusingChangeLog.AddStatusingChangeLogRow(row);
      timeSheetSvc.QueueUpdateTimesheet(jobUid, tsUid, timesheetDs);

问候语,

Steven

 

 


这篇关于在时间表中使用单独的WebPart输入时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆