private void LoadData() { try { Farmer m_Base = new FarmerDAL().Get(Request.QueryString["id"]); txtFarmarCode.Text = m_Base.FarmarCode;//烟农编码 txtFarmerRfid.Text = m_Base.FarmerRfid;//烟农RFID标识 txtFarmerName.Text = m_Base.FarmerName;//烟农名称 txtFarmerPy.Text = m_Base.FarmerPy;//烟农拼音缩写 txtFarmerPhone.Text = m_Base.FarmerPhone;//烟农电话 txtFarmerEmail.Text = m_Base.FarmerEmail;//烟农电子邮箱 txtFarmerAddress.Text = m_Base.FarmerAddress;//烟农地址 txtFarmerRmark.Text = m_Base.FarmerRmark;//备注 dpdFarmerSex.Text = m_Base.FarmerSex;//性别 txtFarmerBirth.Text = m_Base.FarmerBirth.HasValue ? m_Base.FarmerBirth.Value.ToString("yyyy-MM-dd") : "";//出生日期 txtFarmerCardId.Text = m_Base.FarmerCardId;//身份证 //txtFarmerIsDeleted.Text = m_Base.FarmerIsDeleted;//是否删除 } catch (Exception e) { Alert(e); } }
private void LoadData() { try { Farmer m_Base = new FarmerDAL().Get(Request.QueryString["id"]); txtFarmarCode.Text = m_Base.FarmarCode; //烟农编码 txtFarmerRfid.Text = m_Base.FarmerRfid; //烟农RFID标识 txtFarmerName.Text = m_Base.FarmerName; //烟农名称 txtFarmerPy.Text = m_Base.FarmerPy; //烟农拼音缩写 txtFarmerPhone.Text = m_Base.FarmerPhone; //烟农电话 txtFarmerEmail.Text = m_Base.FarmerEmail; //烟农电子邮箱 txtFarmerAddress.Text = m_Base.FarmerAddress; //烟农地址 txtFarmerRmark.Text = m_Base.FarmerRmark; //备注 dpdFarmerSex.Text = m_Base.FarmerSex; //性别 txtFarmerBirth.Text = m_Base.FarmerBirth.HasValue ? m_Base.FarmerBirth.Value.ToString("yyyy-MM-dd") : ""; //出生日期 txtFarmerCardId.Text = m_Base.FarmerCardId; //身份证 //txtFarmerIsDeleted.Text = m_Base.FarmerIsDeleted;//是否删除 } catch (Exception e) { Alert(e); } }