private void GetGridData()
{
MedicineBLL medicinebll = new MedicineBLL();//实例化对象
AspNetPager1RecordCount = medicinebllGetRecordCount("");//给AspNetPager1RecordCount赋值从medicinebllGetRecordCount("");方法获取
rptMedicineListDataSource= medicinebllGetEntity("", AspNetPager1PageSize, AspNetPager1CurrentPageIndex);//给Repeater添加数据源
rptMedicineListDataBind();//给Repeater绑定数据
}
发布药品信息
public void Save()
{
Medicine medicine = new Medicine();/实例化对象
MedicineBLL medicinebll = new MedicineBLL();/实例化对象
medicineName = txtNameText;//赋值到medicineName
medicineMedno = txtMednoText;//赋值到medicineMedno
medicineTupian = hidTupianValue;//赋值到medicineTupian
medicineChangjia = txtChangjiaText;//赋值到medicineChangjia
medicineGuige = txtGuigeText;//赋值到medicineGuige
medicineJiage = ConvertToDouble(txtJiageText);//赋值到medicineJiage
medicineHyjia = ConvertToDouble(txtHyjiaText);//赋值到medicineHyjia
medicinePzwenhao = txtPzwenhaoText;//赋值到medicinePzwenhao
medicinePingpai = ddlPingpaiText;//赋值到medicinePingpai
medicineXtype = ddlXtypeText;//赋值到medicineXtype
medicineDes = txtDesText;//赋值到medicineDes
medicinebllSave(medicine);//保存数据
ResponseRedirect("medicinemanageraspx");//重新定向到页面medicinemanageraspx
}
我也是个逗比啊直接给翻译了。。。
欢迎分享,转载请注明来源:品搜搜测评网