Beispiel #1
0
    private void SetData(PlanOrderData data)
    {
        this.lblStatus.Text = data.STATUS;
        this.lblProductName.Text = data.PRODUCTNAME;
        this.lblUnitName.Text = data.UNITNAME;
        this.lblMonthName.Text = data.MONTHNAME;
        if (this.btnSave.Visible) this.btnSave.Visible = (data.STATUS == Constz.Requisition.Status.Waiting.Code);
        this.chkCopyAll.Visible = (data.STATUS == Constz.Requisition.Status.Waiting.Code && this.btnSave.Visible);

        SetGrvItem(this.lblStatus.Text);
    }
Beispiel #2
0
        public PlanOrderData GetPlanOrderData(double planOrder, int month)
        {
            PlanOrderData data = new PlanOrderData();
            DataTable dt = SaleDAL.GetPlanOrderData(planOrder);
            if (dt.Rows.Count == 1)
            {
                DataRow dRow = dt.Rows[0];
                data.PLAN = Convert.ToDouble(dRow["PLAN"]);
                data.PRODUCTNAME = dRow["PRODUCTNAME"].ToString();
                data.STATUS = dRow["STATUS"].ToString();
                data.UNITNAME = dRow["UNITNAME"].ToString();
                switch (month.ToString())
                {
                    case "1" :
                        data.MONTHNAME = "Á¡ÃÒ¤Á";
                        break;

                    case "2":
                        data.MONTHNAME = "¡ØÁÀҾѹ¸ì";
                        break;

                    case "3":
                        data.MONTHNAME = "ÁÕ¹Ò¤Á";
                        break;

                    case "4":
                        data.MONTHNAME = "àÁÉÒ¹";
                        break;

                    case "5":
                        data.MONTHNAME = "¾ÄÉÀÒ¤Á";
                        break;

                    case "6":
                        data.MONTHNAME = "ÁԶعÒ¹";
                        break;

                    case "7":
                        data.MONTHNAME = "¡Ã¡®Ò¤Á";
                        break;

                    case "8":
                        data.MONTHNAME = "ÊÔ§ËÒ¤Á";
                        break;

                    case "9":
                        data.MONTHNAME = "¡Ñ¹ÂÒ¹";
                        break;

                    case "10":
                        data.MONTHNAME = "µØÅÒ¤Á";
                        break;

                    case "11":
                        data.MONTHNAME = "¾ÄȨԡÒ¹";
                        break;

                    case "12":
                        data.MONTHNAME = "¸Ñ¹ÇÒ¤Á";
                        break;
                }
            }
            return data;
        }