예제 #1
0
        private void UpdateOperationNumber()
        {
            DDGeneralParemeter newParam = new DDGeneralParemeter("ParamName", "OperationNumber");

            newParam.ParamValue = CaculateString(newParam.ParamValue.Trim());
            newParam.Save();
        }
예제 #2
0
        public void Insert(string ParamName, string ParamValue)
        {
            DDGeneralParemeter item = new DDGeneralParemeter();

            item.ParamName = ParamName;

            item.ParamValue = ParamValue;


            item.Save(UserName);
        }
예제 #3
0
        public void Update(int ParamID, string ParamName, string ParamValue)
        {
            DDGeneralParemeter item = new DDGeneralParemeter();

            item.MarkOld();
            item.IsLoaded = true;

            item.ParamID = ParamID;

            item.ParamName = ParamName;

            item.ParamValue = ParamValue;

            item.Save(UserName);
        }
예제 #4
0
        private void LoadCompanyInfo()
        {
            DDCompanyInfo      company  = new DDCompanyInfo("CompanyID", 1);
            DDGeneralParemeter newParem = new DDGeneralParemeter("ParamName", "CurrentTicketNumber");

            this.tbxCompanyName.Text             = company.CompanyName;
            this.tbxLicenseCode.Text             = company.LicenseCode;
            this.tbxSubCompanyNumber.Text        = company.SubCompanyNumber;
            this.tbxSubCompanyName.Text          = company.SubCompanyName;
            this.tbxCompanyAdd.Text              = company.Address;
            this.tbxCompanyPhone.Text            = company.PhoneNumber;
            this.tbxPostalCode.Text              = company.Postalcode;
            this.tbxShopHours.Text               = company.ShopHours;
            this.tbxSetupDate.Text               = company.SetupDate;
            this.tbxStartTicketNumber.Text       = company.StartTicketNumber;
            this.cbxAmountAccuracy.SelectedIndex = Convert.ToInt32(company.AmountAccuracy);
            this.cbxCountDayMode.SelectedIndex   = Convert.ToInt32(company.CountDayMode);
            this.tbxTicketNumber.Text            = newParem.ParamValue;
        }
예제 #5
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            DDCompanyInfo      company  = new DDCompanyInfo("CompanyID", 1);
            DDGeneralParemeter newParem = new DDGeneralParemeter("ParamName", "CurrentTicketNumber");

            company.CompanyName       = this.tbxCompanyName.Text;
            company.LicenseCode       = this.tbxLicenseCode.Text;
            company.SubCompanyNumber  = this.tbxSubCompanyNumber.Text;
            company.SubCompanyName    = this.tbxSubCompanyName.Text;
            company.Address           = this.tbxCompanyAdd.Text;
            company.PhoneNumber       = this.tbxCompanyPhone.Text;
            company.Postalcode        = this.tbxPostalCode.Text;
            company.ShopHours         = this.tbxShopHours.Text;
            company.SetupDate         = this.tbxSetupDate.Text;
            company.StartTicketNumber = this.tbxStartTicketNumber.Text;
            company.AmountAccuracy    = this.cbxAmountAccuracy.SelectedIndex.ToString();
            newParem.ParamValue       = this.tbxTicketNumber.Text;
            company.CountDayMode      = this.cbxCountDayMode.SelectedIndex;
            MainForm.AmountAccuracy   = this.cbxAmountAccuracy.SelectedIndex;
            MainForm.CountDayMode     = this.cbxCountDayMode.SelectedIndex;
            company.Save();
            newParem.Save();
            MessageBox.Show("典当行信息更新成功!");
        }
예제 #6
0
        private void LoadOperationNumber()
        {
            DDGeneralParemeter newParam = new DDGeneralParemeter("ParamName", "OperationNumber");

            m_OperationNumber = newParam.ParamValue.Trim();
        }
예제 #7
0
 public bool Destroy(object ParamID)
 {
     return(DDGeneralParemeter.Destroy(ParamID) == 1);
 }