コード例 #1
0
 // 修改资产信息
 private void buttonOK_Click(object sender, EventArgs e)
 {
     if (assetDetail == null)
     {
         MessageBox.Show("获取资产信息失败。");
         return;
     }
     ModifyAssetInfo assetInfo = new ModifyAssetInfo();
     assetInfo.assetId = assetId;
     assetInfo.assetIdSpecified = true;
     assetInfo.assetName = this.textBoxAssetName.Text;
     assetInfo.assetNumber = this.textBoxAssetNo.Text;
     assetInfo.computerType = this.comboBoxComputerType.SelectedItem.ToString();
     assetInfo.computerVariety = this.textBoxComputerVendor.Text;
     assetInfo.physicalPos = this.textBoxPosition.Text;
     assetInfo.remark = this.textBoxDescription.Text;
     assetInfo.type = this.textBoxModel.Text;
     assetInfo.responserId = assetDetail.responserId;
     assetInfo.responserIdSpecified = true;
     WSCommonResult result = damService.modifyAsset(assetInfo);
     if (result.errorCode == 0)
     {
         MessageBox.Show("修改资产信息成功。");
     }
     else
     {
         MessageBox.Show("修改资产信息失败,失败原因为:" + result.errorMsg);
     }
     this.Dispose(true);
 }
コード例 #2
0
 /// <remarks/>
 public void modifyAssetAsync(ModifyAssetInfo param0, object userState) {
     if ((this.modifyAssetOperationCompleted == null)) {
         this.modifyAssetOperationCompleted = new System.Threading.SendOrPostCallback(this.OnmodifyAssetOperationCompleted);
     }
     this.InvokeAsync("modifyAsset", new object[] {
                 param0}, this.modifyAssetOperationCompleted, userState);
 }
コード例 #3
0
 /// <remarks/>
 public void modifyAssetAsync(ModifyAssetInfo param0) {
     this.modifyAssetAsync(param0, null);
 }