FarmTrace.QRCode/index.aspx.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using DataBaseLibrary.Utility;
using Model;
using Repository.impl;
using Repository.interfaces;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Script.Serialization;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FarmTrace.QRCode
{
public partial class index : System.Web.UI.Page
{
#region 自定义变量
public ViewBaseSheepModel ViewSheepModel = new ViewBaseSheepModel();
ICommonRepository CommBll = new CommonRepository();
public StringBuilder XMContent = new StringBuilder();
public StringBuilder TZContent = new StringBuilder();
public StringBuilder WLContent = new StringBuilder();
ViewOrderProducRecordBySheepCodeModel ViewRecordBySheepCode = new ViewOrderProducRecordBySheepCodeModel();
public ViewOrderSlaughterBySheepIDModel ViewSlaughterBySheepID = new ViewOrderSlaughterBySheepIDModel();
public ViewOrderInvoiceBySheepIDModel ViewInvoiceBySheepID = new ViewOrderInvoiceBySheepIDModel();
#endregion
#region 自定义方法
#region 获取基本信息
/// <summary>
/// 获取基本信息
/// </summary>
/// <param name="code"></param>
private void GetSheepInfo(string code)
{
ViewSheepModel = CommBll.GetModelByWhere<ViewBaseSheepModel>(ViewSheepModel, string.Format("SheepCode='{0}' or SheepECode='{0}'", code));
}
#endregion
#region 获取畜牧过程
/// <summary>
/// 获取畜牧过程
/// </summary>
private void GetXM(string SheepCode)
{
DataTable dt = CommBll.GetList<ViewOrderProducRecordBySheepCodeModel>(ViewRecordBySheepCode, string.Format("SheepCode='{0}'", SheepCode));
if (dt != null && dt.Rows.Count > 0)
{
foreach (DataRow row in dt.Rows)
{
// <li><span style="font-weight: bold">养 殖 户:</span>养 殖 户</li>
//<li><span style="font-weight: bold">兽医编号:</span>兽医编号</li>
//<li><span style="font-weight: bold">检疫次数:</span>检疫次数</li>
XMContent.AppendFormat(" <li><span style=\"font-weight: bold\">记录名称:</span>{0}</li> \n", row["DisplayName"]);
XMContent.AppendFormat(" <li><span style=\"font-weight: bold\">记录日期:</span>{0}</li> \n", Convert.ToDateTime(row["ProductionRecordTime"]).ToShortDateString());
后面还有 224 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
