xiangzi_camel

导航

test

test

<td class="TDQueryText">
 <input class=txtQueryText id="txtAPPLYDATE_FROM" readonly
  onclick="javascript:calendar(this);document.all('hdnAPPLYDATE_FROM').value=this.hideValue"
   onkeypress="javascript:ResponseEnter();"
  type=text maxLength=10 hideValue="" size=10 value="" name="txtAPPLYDATE_FROM" >
 <input type="hidden" value="" id="hdnAPPLYDATE_FROM" name="hdnAPPLYDATE_FROM">
</td>

/// <summary>
/// Get the full path of project file and remove its ReadOnly attribute.
/// </summary>

private string GetFilePath(string p_strFileName)
{
    
// get full file path on server.
    string strFilePath = new Common().GetFilePath(Resource.FileType.ProjectLog);
    strFilePath 
+= p_strFileName;

    
// file not exists.
    if (!File.Exists(strFilePath))
    
{
        
// write error log.
        string strErrorMsg = "Can not find the log file [" + strFilePath + "], please check !";
        
new LogHelp().WriteLog("LogOper.cs""GetFilePath()", strErrorMsg);
        
return String.Empty;
    }


    
// remove ReadOnly attribute.
    FileInfo fileInfo = new FileInfo(strFilePath);
    fileInfo.Attributes 
= FileAttributes.Normal;

    
return strFilePath;
}

posted on 2005-04-24 14:37  xiangzi  阅读(243)  评论(1编辑  收藏  举报