老大,我更改了一下大概是这样的:
public bool AddcalMainRecords(string equipment_Name,int use_Place_ID, DateTime cal_Date, DateTime due_Date, string vender, string brand, string model, string serial_NO, string accuracy, string myclass, string status, string wI_NO, string drawing_NO, string remark)
{
// 新建一个calMainRecordsRow实例
cal.calMainRecordsDataTable mycals = new cal.calMainRecordsDataTable();
cal.calMainRecordsRow mycal = mycals.NewcalMainRecordsRow();
if (equipment_Name == null) mycal.SetEquipment_NameNull(); else mycal.Equipment_Name = equipment_Name;
mycal.use_Place_ID//正常这里是应该可以打入mycal.Use_Place_ID的,也就是在mycal后面打个.之后会出来Use_Place_ID给我选择的,但是这里没有出来,而我又在参数那里定义了的。
public bool AddcalMainRecords(string equipment_Name,int use_Place_ID, DateTime cal_Date, DateTime due_Date, string vender, string brand, string model, string serial_NO, string accuracy, string myclass, string status, string wI_NO, string drawing_NO, string remark)
{
// 新建一个calMainRecordsRow实例
cal.calMainRecordsDataTable mycals = new cal.calMainRecordsDataTable();
cal.calMainRecordsRow mycal = mycals.NewcalMainRecordsRow();
if (equipment_Name == null) mycal.SetEquipment_NameNull(); else mycal.Equipment_Name = equipment_Name;
mycal.use_Place_ID//正常这里是应该可以打入mycal.Use_Place_ID的,也就是在mycal后面打个.之后会出来Use_Place_ID给我选择的,但是这里没有出来,而我又在参数那里定义了的。