private void AddInfo() { conserVation.T_OA_CONSERVATION = frmM._lst[0]; conserVation.CHECKSTATE = conserVation.CHECKSTATE; conserVation.CONSERVATYPE = ((SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY)cmbConserVationName.SelectedItem).DICTIONARYNAME.ToString(); conserVation.CONSERVATIONRECORDID = conserVation.CONSERVATIONRECORDID; conserVation.TEL = txtTel.Text; conserVation.CONTENT = txtContent.Text; conserVation.REMARK = txtReMark.Text; conserVation.CONSERVATIONRANGE = txtCONSERVATIONRANGE.Text.Trim() == "" ? 0 : int.Parse(txtCONSERVATIONRANGE.Text); conserVation.REPAIRDATE = DateTime.Parse(dateREPAIRDATE.Text); conserVation.RETRIEVEDATE = DateTime.Parse(dateRETRIEVEDATE.Text); conserVation.ISCHARGE = ckbHasFee.IsChecked == true ? "1" : "0"; // conserVation.CHARGEMONEY = ckbHasFee.IsChecked == true ? fbCtr.Order.TOTALMONEY : 0; conserVation.CHARGEMONEY = ckbHasFee.IsChecked != true ? 0 : decimal.Parse(txtFee.Text.Trim()); conserVation.CREATEDATE = System.DateTime.Now; conserVation.CREATECOMPANYID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; conserVation.CREATEDEPARTMENTID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; conserVation.CREATEPOSTID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; conserVation.CREATEUSERID = Common.CurrentLoginUserInfo.EmployeeID; conserVation.CREATEUSERNAME = Common.CurrentLoginUserInfo.EmployeeName; conserVation.OWNERCOMPANYID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; conserVation.OWNERDEPARTMENTID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; conserVation.OWNERPOSTID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; conserVation.OWNERID = Common.CurrentLoginUserInfo.EmployeeID; conserVation.OWNERNAME = Common.CurrentLoginUserInfo.EmployeeName; conserVation.UPDATEDATE = System.DateTime.Now; conserVation.UPDATEUSERID = Common.CurrentLoginUserInfo.EmployeeID; conserVation.UPDATEUSERNAME = Common.CurrentLoginUserInfo.EmployeeName; _VM.Add_VCRecordAsync(conserVation); }