本文整理汇总了C#中Utils.DeleteFile方法的典型用法代码示例。如果您正苦于以下问题:C# Utils.DeleteFile方法的具体用法?C# Utils.DeleteFile怎么用?C# Utils.DeleteFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utils
的用法示例。
在下文中一共展示了Utils.DeleteFile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnSave_Click
//.........这里部分代码省略.........
obj.Hour_6 = Convert.ToInt32(_dr["F7"].ToString());
}
if (_dr["F8"] != null && _dr["F8"] != DBNull.Value)
{
obj.Hour_7 = Convert.ToInt32(_dr["F8"].ToString());
}
if (_dr["F9"] != null && _dr["F9"] != DBNull.Value)
{
obj.Hour_8 = Convert.ToInt32(_dr["F9"].ToString());
}
if (_dr["F10"] != null && _dr["F10"] != DBNull.Value)
{
obj.Hour_9 = Convert.ToInt32(_dr["F10"].ToString());
}
if (_dr["F11"] != null && _dr["F11"] != DBNull.Value)
{
obj.Hour_10 = Convert.ToInt32(_dr["F11"].ToString());
}
if (_dr["F12"] != null && _dr["F12"] != DBNull.Value)
{
obj.Hour_11 = Convert.ToInt32(_dr["F12"].ToString());
}
if (_dr["F13"] != null && _dr["F13"] != DBNull.Value)
{
obj.Hour_12 = Convert.ToInt32(_dr["F13"].ToString());
}
if (_dr["F14"] != null && _dr["F14"] != DBNull.Value)
{
obj.Hour_13 = Convert.ToInt32(_dr["F14"].ToString());
}
if (_dr["F15"] != null && _dr["F15"] != DBNull.Value)
{
obj.Hour_14 = Convert.ToInt32(_dr["F15"].ToString());
}
if (_dr["F16"] != null && _dr["F16"] != DBNull.Value)
{
obj.Hour_15 = Convert.ToInt32(_dr["F16"].ToString());
}
if (_dr["F17"] != null && _dr["F17"] != DBNull.Value)
{
obj.Hour_16 = Convert.ToInt32(_dr["F17"].ToString());
}
if (_dr["F18"] != null && _dr["F18"] != DBNull.Value)
{
obj.Hour_17 = Convert.ToInt32(_dr["F18"].ToString());
}
if (_dr["F19"] != null && _dr["F19"] != DBNull.Value)
{
obj.Hour_18 = Convert.ToInt32(_dr["F19"].ToString());
}
if (_dr["F20"] != null && _dr["F20"] != DBNull.Value)
{
obj.Hour_19 = Convert.ToInt32(_dr["F20"].ToString());
}
if (_dr["F21"] != null && _dr["F21"] != DBNull.Value)
{
obj.Hour_20 = Convert.ToInt32(_dr["F21"].ToString());
}
if (_dr["F22"] != null && _dr["F22"] != DBNull.Value)
{
obj.Hour_21 = Convert.ToInt32(_dr["F22"].ToString());
}
if (_dr["F23"] != null && _dr["F23"] != DBNull.Value)
{
obj.Hour_22 = Convert.ToInt32(_dr["F23"].ToString());
}
if (_dr["F24"] != null && _dr["F24"] != DBNull.Value)
{
obj.Hour_23 = Convert.ToInt32(_dr["F24"].ToString());
}
if (_dr["F25"] != null && _dr["F25"] != DBNull.Value)
{
obj.Hour_24 = Convert.ToInt32(_dr["F25"].ToString());
}
Chart24hBSO chart24hBSO = new Chart24hBSO();
chart24hBSO.CreateChart24h(obj);
_check = true;
Utils objUtil = new Utils();
string _path = ResolveUrl("~/") + "Upload/Chart";
DateTime _date = obj.ChartPostDate;
objUtil.DeleteFile(Server.MapPath(_path), _path, _date.ToString("dd_MM_yyyy") + ".png");
}
catch { }
#endregion
}
}
}
if (_check == true)
{
Response.Write("<script language='javascript'> {window.close(); window.opener.SubmitForm(); }</script>");
}
}