fqc
lu
2025-05-08 6b2f223d8fe4dd12aa64780b0dc742f5fc9bbf5e
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -2123,25 +2123,22 @@
                string t2 = box2.Text.Trim();
                if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric2(t1))
                    return;
                if (Gs.DevApp.ToolBox.UtilityHelper.ToDecimal(t1) <= 0)
                    return;
                decimal? dc = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(sum);
                decimal? dc1 = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(t1);
                int dividend = int.Parse(sum); // 被除数
                int divisor = int.Parse(t1);   // 除数
                int quotient = dividend / divisor; // 整数部分
                int remainder = dividend % divisor; // 余数
                decimal dividend = decimal.Parse(sum); // 被除数
                decimal divisor = decimal.Parse(t1);   // 除数
                decimal quotient = dividend / divisor; // 整数部分
                decimal remainder = dividend % divisor; // 余数
                box2.Text = quotient.ToString();
                if (rd.SelectedIndex == 0)
                    txt_yuliang.Text = remainder.ToString();
            }
            catch (Exception ex)
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError(ex.Message);
              Gs.DevApp.ToolBox.MsgHelper.ShowError("输入数据错误:"+ex.Message);
            }
        }
        public static void PrintAuto(DevExpress.XtraEditors.TextEdit txt_psnQty_1, DevExpress.XtraEditors.TextEdit txt_iCount_1, DevExpress.XtraEditors.RadioGroup radOut, DevExpress.XtraEditors.TextEdit txt_yuliang = null)
        {