Ejemplo n.º 1
0
    private void Init_Load()
    {
        if (Request.QueryString["id"] != null)
        {
            hfBxId.Value = Request.QueryString["id"];
            Guid bxId = Guid.Empty;
            Guid.TryParse(hfBxId.Value, out bxId);
            Tiyi.JD.SQLServerDAL.BaoxiuBill bill = bll_bxdManage.GetBaoxiuBill(bxId);
            LoadAppInfo(bill.AppId);
            LoadBillInfo(bxId);

            if (bll_bxdManage.IsPaidang(bxId))
            {
                SEA_Paigong1.ChangeMode(FormViewMode.ReadOnly);
                Tiyi.JD.SQLServerDAL.PaigongBill pgBill = bll_bxdManage.GetPgBill_ByBxId(bxId);
                SEA_Paigong1.Init_Load(pgBill.PgId);
            }
            else
            {
                SEA_Paigong1.ChangeMode(FormViewMode.Insert);
                SEA_Paigong1.Init_LoadBxId(bxId);
            }
        }

        Load_Wxg();
    }
Ejemplo n.º 2
0
 private void SEA_Paigong1_BillCreated(object sender, BillInsertedEventArgs e)
 {
     SEA_Paigong1.ChangeMode(FormViewMode.ReadOnly);
 }
Ejemplo n.º 3
0
 private void SEA_Paigong1_Updated(object sender, EventArgs e)
 {
     SEA_Paigong1.ChangeMode(FormViewMode.ReadOnly);
 }