当前位置: 首页>>代码示例>>C#>>正文


C# Service.loadDbs方法代码示例

本文整理汇总了C#中Service.loadDbs方法的典型用法代码示例。如果您正苦于以下问题:C# Service.loadDbs方法的具体用法?C# Service.loadDbs怎么用?C# Service.loadDbs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Service的用法示例。


在下文中一共展示了Service.loadDbs方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: 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----------------");
        }
    }
开发者ID:nguy2261,项目名称:codingChallenge,代码行数:32,代码来源:ServiceUI.aspx.cs

示例2: 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----------------");
     }
 }
开发者ID:nguy2261,项目名称:codingChallenge,代码行数:40,代码来源:ServiceUI.aspx.cs


注:本文中的Service.loadDbs方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。