Asp.net源码专业站
首页->商务办公->热线球队财务管理系统源码>>cash_save.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:热线球队财务管理系统源码
当前文件:文件类型 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"> 4private 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>
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:热线球队财务管理系统源码
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146