Admin_BillType abt = Admin_BillTypeBLL.GetEntity(AFBPConvertor.IntParse(BillType.SelectedItem.Value));
Admin_BillType abt = Admin_BillTypeBLL.GetEntity(AFBPConvertor.IntParse(BillType.SelectedItem.Value)); object[] obj = new object[1]; obj[0] = new object[]{ "Admin_BillType","Code",abt!=null?abt.Code:"" }; BillCode.Value = Ulti.EncodeString("Purchasing_Contract", "BillCode", obj);