strNewLeave = \"insert into [Leave]([ID],[EmployeeNo],[AgentID],[LeaveType],[StartDate],[EndDate],[Hours],[LeaveReason],[ReportTime],[ReportID],[ImageName],[ImageData]) \";
strNewLeave += \"values(@LeaveNo,@EmpNo,@AgentName,@LeaType,@StartDate,@EndDate,@Hours,@Reason,getdate(),@Admin,@ImageName,@Image) \";
sqlPara = new SqlParameter[] {
new SqlParameter(\"@LeaveNo\",strLeaNo),
new SqlParameter(\"@EmpNo\",strEmpNo),
new SqlParameter(\"@AgentName\",strAgentID),
new SqlParameter(\"@LeaType\",strLeaType),
new SqlParameter(\"@StartDate\",strDateSt),
new SqlParameter(\"@EndDate\",strDateEnd),
new SqlParameter(\"@Hours\",strHours),
new SqlParameter(\"@Reason\",strReason),
new SqlParameter(\"@Admin\",strAdmin),
new SqlParameter(\"@ImageName\",strImageName),
new SqlParameter(\"@Image\",FileByteArray)
};
StreamObject.Close();
}
本文地址:https://www.stayed.cn/item/2801
转载请注明出处。
本站部分内容来源于网络,如侵犯到您的权益,请 联系我