示例#1
0
        void Get_VConserVationCompleted(object sender, Get_VConserVationCompletedEventArgs e)
        {
            if (e.Result != null)
            {
                conserVation = e.Result;

                if (conserVation != null)
                {
                    Utility.SetComboboxSelectByText(cmbConserVationName, conserVation.CONSERVATYPE, -1);
                    txtContent.Text     = conserVation.CONTENT;
                    txtFee.Text         = conserVation.CHARGEMONEY.ToString();
                    ckbHasFee.IsChecked = conserVation.ISCHARGE == "1" ? true : false;

                    txtContent.IsEnabled          = true;
                    txtFee.IsEnabled              = true;
                    cmbConserVationName.IsEnabled = false;

                    RefreshUI(RefreshedTypes.AuditInfo);
                    RefreshUI(RefreshedTypes.All);
                    //InitAudit(conserVation.CONSERVATIONID);
                    InitFBControl();
                    //viewApproval.XmlObject = DataObjectToXml<T_OA_CONSERVATION>.ObjListToXml(conserVation, "OA");
                }
            }
        }
示例#2
0
        void Get_VConserVationCompleted(object sender, Get_VConserVationCompletedEventArgs e)
        {
            if (e.Result != null)
            {
                conserVation = e.Result;

                if (conserVation != null)
                {
                    Utility.SetComboboxSelectByText(cmbConserVationName, conserVation.CONSERVATYPE, -1);
                    txtContent.Text = conserVation.CONTENT;
                    txtFee.Text = conserVation.CHARGEMONEY.ToString();
                    ckbHasFee.IsChecked = conserVation.ISCHARGE == "1" ? true : false;

                    txtContent.IsEnabled = true;
                    txtFee.IsEnabled = true;
                    cmbConserVationName.IsEnabled = false;

                    RefreshUI(RefreshedTypes.AuditInfo);
                    RefreshUI(RefreshedTypes.All);
                    //InitAudit(conserVation.CONSERVATIONID);
                    InitFBControl();
                    //viewApproval.XmlObject = DataObjectToXml<T_OA_CONSERVATION>.ObjListToXml(conserVation, "OA");
                }
            }
        }