温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:热线球队财务管理系统源码
当前文件:
SmallFinance/cash_save.aspx[1K,2009-6-12 11:54:22],打开代码结构图
SmallFinance/cash_save.aspx[1K,2009-6-12 11:54:22],打开代码结构图1<%@ Page language="c#" ContentType="text/html" ResponseEncoding="gb2312" %> 2
<!--#include file="config.inc.aspx"--> 3
<script runat="server"> 4
private void Page_Load(object sender, EventArgs e) 5
{ 6
CheckSession(); 7
8
if(Request.HttpMethod.ToLower()=="post") 9
{ 10
string post_data = Request.Form["post_data[]"]; 11
12
if(post_data==null||post_data=="") 13
return; 14
15
XmlDocument root = new XmlDocument(); 16
root.LoadXml(post_data); 17
XmlElement node = (XmlElement)root.DocumentElement.ChildNodes[0]; 18
19
string request_id = node.GetAttribute("id"); 20
21
string strsql = "if exists(Select * From TeamCash Where fchrCodeID='"+ request_id +"') Update TeamCash Set fdtmDate='"+ node.GetAttribute("date") +"', ftinType="+ node.GetAttribute("typeid") +", fchrType='"+ node.GetAttribute("type") +"', fchrIncExpID='"+ node.GetAttribute("reason") +"', flotAmount="+ node.GetAttribute("amount") +", fchrModifierID='"+ md5((string)Session["Operator"]) +"', fdtmModify=GetDate(), ftinPost=(ftinPost+1) Where fchrCodeID='"+ request_id +"' else Insert TeamCash(fchrCodeID, fdtmDate, ftinType, fchrType, fchrIncExpID, flotAmount, fbitIsCancel, fchrCreatorID, fdtmCreate, ftinPost) Values('"+ request_id +"', '"+ node.GetAttribute("date") +"', "+ node.GetAttribute("typeid") +", '"+ node.GetAttribute("type") +"', '"+ node.GetAttribute("reason") +"', "+ node.GetAttribute("amount") +", 0, '"+ md5((string)Session["Operator"]) +"', GetDate(), 0)"; 22
RetrieveCountWithSqlQuery(strsql); 23
24
25
Response.Write("<script language=\"javascript\">;\r\n"); 26
Response.Write("alert('数据保存成功啦!^_^');\r\n"); 27
Response.Write("window.parent.location.reload();\r\n"); 28
Response.Write("</"+"script>"); 29
} 30
} 31
</script>





private 

}
}