本文整理汇总了C#中Service.claimIndex方法的典型用法代码示例。如果您正苦于以下问题:C# Service.claimIndex方法的具体用法?C# Service.claimIndex怎么用?C# Service.claimIndex使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Service
的用法示例。
在下文中一共展示了Service.claimIndex方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadClaim_Click
protected void ReadClaim_Click(object sender, EventArgs e)
{
lstVehi.Items.Clear();
string claimNum = TextBox2.Text;
Service mysr = new Service();
if(!mysr.loadDbs())
return;
int index = mysr.claimIndex(claimNum);
if (index == -1)
{
claimNumlbl.Text = "Couldn't find the claim number";
return;
}
MitchellClaimType RClaim = mysr.backing_store[index];
claimNumlbl.Text = RClaim.ClaimNumber;
FName.Text = RClaim.ClaimFirstName;
LName.Text = RClaim.ClaimLastName;
Status.Text = RClaim.Status.ToString();
lossdate.Text = RClaim.LossDate.ToString();
CauseOfLossCode.Text = RClaim.LossInfo.CauseOfLoss.ToString();
reportDate.Text = RClaim.LossInfo.ReportedDate.ToString();
desResult.Text = RClaim.LossInfo.LossDescription;
aaID.Text = RClaim.AssignedAdjusterID.ToString();
for (int i = 0; i < RClaim.Vehicles.count;i++ )
{
VehicleInfoType vehi = RClaim.Vehicles.VehiclesDetails[i];
lstVehi.Items.Add("Model Year: " + vehi.ModelYear);
lstVehi.Items.Add("Make Description: " + vehi.MakeDescription);
lstVehi.Items.Add("Model Description: " + vehi.ModelDescription);
lstVehi.Items.Add("Engine Description: " + vehi.EngineDescription);
lstVehi.Items.Add("Exterior Color: " + vehi.ExteriorColor);
lstVehi.Items.Add("Vin: " + vehi.Vin);
lstVehi.Items.Add("License Plate: " + vehi.LicPlate);
lstVehi.Items.Add("License Plate State: " + vehi.LicPlateState);
lstVehi.Items.Add("License Plate Expiration Date: " + vehi.LicPlateExpDate);
lstVehi.Items.Add("Damage Description: " + vehi.DamageDescription);
lstVehi.Items.Add("Mileage: " + vehi.Mileage);
lstVehi.Items.Add("-----------------END----------------");
}
}
示例2: VehicleSearchByClaim_Click
protected void VehicleSearchByClaim_Click(object sender, EventArgs e)
{
lstVehiClaim.Items.Clear();
string claimNum = vehiClaim.Text;
Service mysr = new Service();
if(!mysr.loadDbs())
return;
int index = mysr.claimIndex(claimNum);
if (index == -1)
{
claimNumlbl.Text = "Couldn't find the claim number";
return;
}
MitchellClaimType RClaim = mysr.backing_store[index];
for (int i = 0; i < RClaim.Vehicles.count; i++)
{
VehicleInfoType vehi = RClaim.Vehicles.VehiclesDetails[i];
lstVehiClaim.Items.Add("Model Year: " + vehi.ModelYear);
lstVehiClaim.Items.Add("Make Description: " + vehi.MakeDescription);
lstVehiClaim.Items.Add("Model Description: " + vehi.ModelDescription);
lstVehiClaim.Items.Add("Engine Description: " + vehi.EngineDescription);
lstVehiClaim.Items.Add("Exterior Color: " + vehi.ExteriorColor);
lstVehiClaim.Items.Add("Vin: " + vehi.Vin);
lstVehiClaim.Items.Add("License Plate: " + vehi.LicPlate);
lstVehiClaim.Items.Add("License Plate State: " + vehi.LicPlateState);
lstVehiClaim.Items.Add("License Plate Expiration Date: " + vehi.LicPlateExpDate);
lstVehiClaim.Items.Add("Damage Description: " + vehi.DamageDescription);
lstVehiClaim.Items.Add("Mileage: " + vehi.Mileage);
lstVehiClaim.Items.Add("-----------------END----------------");
}
}