Ejemplo n.º 1
0
        public PayReceiptForm(PayReceiptTypeConf conf, ProductCirculationDao cd)
        {
            InitializeComponent();

            openMode     = 0;
            payReceiptID = 0;

            this.conf = conf;

            if (conf.type == PayReceipt.BillType.BuyPay || conf.type == PayReceipt.BillType.SellReceipt)
            {
                this.panel_sum.Visible = false;
            }
            else if (conf.type == PayReceipt.BillType.BuyRefund || conf.type == PayReceipt.BillType.SellRefund)
            {
                this.label_pay_need.Visible = false;
            }

            this.Text                = conf.name + "单";
            this.label_title.Text    = this.Text;
            this.label_customer.Text = conf.customer;

            this.label_date.Text = "开单时间:";

            if (conf.type == PayReceipt.BillType.BuyRefund || conf.type == PayReceipt.BillType.SellRefund)
            {
                this.label_needPayed.Text = conf.cashDirection == -1 ? "退点金额(应付):" : "退点金额(应收):";
            }
            this.label_thisPayed.Text    = conf.cashDirection == -1 ? "本单已付:" : "本单已收:";
            this.label_arrears.Text      = conf.arrearDirection == 1 ? "以上欠款(应付):" : "以上欠款(应收):";
            this.label_accumulative.Text = conf.arrearDirection == 1 ? "累计欠款(应付):" : "累计欠款(应收):";

            this.cirDao = cd;
        }
Ejemplo n.º 2
0
        public PayReceiptOtherForm(PayReceiptTypeConf conf) : base(conf, null)
        {
            this.panel_history.Visible = false;
            this.label_tip.Text        = "*该单不会自动核销债务,如需核销,请采用采购或销售收付款单";

            this.panel_customer.Visible = false;
            this.panel_sum.Visible      = false;

            this.panel1.Location = new Point(this.panel1.Location.X, this.panel_sum.Location.Y);
        }