Пример #1
0
        private void AddInfo()
        {
            conserVation.T_OA_MAINTENANCEAPP = frmM._lst[0];
            conserVation.MAINTENANCETYPE     = ((SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY)cmbRepairName.SelectedItem).DICTIONARYNAME.ToString();

            conserVation.TEL           = txtTel.Text;
            conserVation.CONTENT       = txtContent.Text;
            conserVation.REMARK        = txtReMark.Text;
            conserVation.REPAIRCOMPANY = txtREPAIRCOMPANY.Text;

            conserVation.ISCHARGE    = ckbHasFee.IsChecked == true ? "1" : "0";
            conserVation.CHARGEMONEY = ckbHasFee.IsChecked == true?Convert.ToDecimal(txtFee.Text) : 0;

            conserVation.REPAIRDATE   = DateTime.Parse(dateREPAIRDATE.Text);
            conserVation.RETRIEVEDATE = DateTime.Parse(dateRETRIEVEDATE.Text);

            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;

            _VM.Add_VMRecordAsync(conserVation);
        }